From e8a35bc5676497ac86aa1d6563b78999657fe6bb Mon Sep 17 00:00:00 2001 From: TOKITA Hiroshi Date: Wed, 25 Dec 2024 08:31:17 +0900 Subject: [PATCH] modules: hal_rpi_pico: Make PICO_NO_BINARY_INFO configurable Use the definition of PICO_NO_BINARY_INFO if it already exists, set it as 1 if not so. Signed-off-by: TOKITA Hiroshi --- modules/hal_rpi_pico/pico/config_autogen.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/hal_rpi_pico/pico/config_autogen.h b/modules/hal_rpi_pico/pico/config_autogen.h index f5f79d8ca21..d1d12c396d1 100644 --- a/modules/hal_rpi_pico/pico/config_autogen.h +++ b/modules/hal_rpi_pico/pico/config_autogen.h @@ -29,8 +29,12 @@ /* Convert uses of asm, which is not supported in c99, to __asm */ #define asm __asm -/* Disable binary info */ +/* Configure binary info */ +#ifndef CONFIG_RPI_PICO_BINARY_INFO #define PICO_NO_BINARY_INFO 1 +#else +#define PICO_NO_BINARY_INFO 0 +#endif #ifdef CONFIG_DT_HAS_RASPBERRYPI_PICO_XOSC_ENABLED #include