diff options
Diffstat (limited to 'nuttx/configs/shenzhou/nsh/Make.defs')
-rw-r--r-- | nuttx/configs/shenzhou/nsh/Make.defs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/nuttx/configs/shenzhou/nsh/Make.defs b/nuttx/configs/shenzhou/nsh/Make.defs index dd3db80de..130c73f6d 100644 --- a/nuttx/configs/shenzhou/nsh/Make.defs +++ b/nuttx/configs/shenzhou/nsh/Make.defs @@ -88,7 +88,13 @@ ifeq ($(CONFIG_STM32_BUILDROOT),y) MAXOPTIMIZATION = -Os endif -LDSCRIPT = ld.script +# Pick the linker script + +ifeq ($(CONFIG_STM32_DFU),y) + LDSCRIPT = ld.script.dfu +else + LDSCRIPT = ld.script +endif ifeq ($(WINTOOL),y) # Windows-native toolchains |