From db1baa1141d46a2127089f4a52c6e740f04631ed Mon Sep 17 00:00:00 2001 From: XuGuohui Date: Tue, 26 Jul 2016 01:55:06 +0800 Subject: [PATCH] Fixes a potential bug when the build_linker.py is newer than the given linker scripts, the given linker scripts will be over written, which will result empty target files --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 1b22890682..2edb069df9 100755 --- a/Makefile +++ b/Makefile @@ -1916,6 +1916,7 @@ $(PININFOFILE).c $(PININFOFILE).h: scripts/build_pininfo.py $(Q)python scripts/build_pininfo.py $(BOARD) $(PININFOFILE).c $(PININFOFILE).h endif +ifndef REDBEARDUO # RedBear Duo use its own linker file ifndef NRF5X # nRF5x devices use their own linker files that aren't automatically generated. ifndef EFM32 $(LINKER_FILE): scripts/build_linker.py @@ -1923,6 +1924,7 @@ $(LINKER_FILE): scripts/build_linker.py $(Q)python scripts/build_linker.py $(BOARD) $(LINKER_FILE) $(BUILD_LINKER_FLAGS) endif # EFM32 endif # NRF5X +endif # REDBEARDUO $(PLATFORM_CONFIG_FILE): boards/$(BOARD).py scripts/build_platform_config.py @echo Generating platform configs