From 6220a37e6bc2282ee559a8d7f7a3b570c7ced955 Mon Sep 17 00:00:00 2001 From: Siddharth Chandrasekaran Date: Sun, 10 Nov 2024 21:11:03 +0100 Subject: [PATCH] libosdp-sys: Pull in __BARE_METAL__ target fix Signed-off-by: Siddharth Chandrasekaran --- libosdp-sys/build.rs | 5 +++++ libosdp-sys/vendor | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libosdp-sys/build.rs b/libosdp-sys/build.rs index e94ae86..e45567f 100644 --- a/libosdp-sys/build.rs +++ b/libosdp-sys/build.rs @@ -123,6 +123,10 @@ fn main() -> Result<()> { build = build.warnings_into_errors(true) } + if Os::target().unwarap() == Os::Other { + build = build.define("__BARE_METAL__", "1") + } + let source_files = vec![ "vendor/utils/src/list.c", "vendor/utils/src/queue.c", @@ -158,6 +162,7 @@ fn main() -> Result<()> { if cfg!(feature = "data_trace") { build = build .define("CONFIG_OSDP_DATA_TRACE", "1") + .define("__BARE_METAL__", "1") .file("vendor/utils/src/pcap_gen.c") .file("vendor/src/osdp_pcap.c"); } diff --git a/libosdp-sys/vendor b/libosdp-sys/vendor index 9e9301d..09d2509 160000 --- a/libosdp-sys/vendor +++ b/libosdp-sys/vendor @@ -1 +1 @@ -Subproject commit 9e9301d83f12779b297b0d325129bd5208fa935c +Subproject commit 09d250912a8aedf53c229473e2bb39be71c73e0b