From a3b643fdc1efc8222f89f09cbe3ee23b78177dd7 Mon Sep 17 00:00:00 2001 From: liuhaitao Date: Tue, 19 May 2020 17:31:43 +0800 Subject: [PATCH] olimex-stm32-p407: update HAVE_MODSYMS judge for protected build Fix build break as below: arm-none-eabi-ld: stm32_bringup.c:(.text+0x50): undefined reference to `g_mod_exports' Signed-off-by: liuhaitao --- boards/arm/stm32/olimex-stm32-p407/src/olimex-stm32-p407.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/arm/stm32/olimex-stm32-p407/src/olimex-stm32-p407.h b/boards/arm/stm32/olimex-stm32-p407/src/olimex-stm32-p407.h index 32725132e0..f3abd4a97c 100644 --- a/boards/arm/stm32/olimex-stm32-p407/src/olimex-stm32-p407.h +++ b/boards/arm/stm32/olimex-stm32-p407/src/olimex-stm32-p407.h @@ -134,7 +134,7 @@ /* Module symbol table */ -#if !defined(CONFIG_EXAMPLES_MODULE) || defined(CONFIG_BUILD_FLAT) +#if !defined(CONFIG_EXAMPLES_MODULE) || !defined(CONFIG_BUILD_FLAT) # undef HAVE_MODSYMS #endif