Skip to content

Commit

Permalink
Fixes a potential bug when the build_linker.py is newer than the give…
Browse files Browse the repository at this point in the history
…n linker scripts, the given linker scripts will be over written, which will result empty target files
  • Loading branch information
XuGuohui committed Jul 25, 2016
1 parent d3e1fb4 commit db1baa1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1916,13 +1916,15 @@ $(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
@echo Generating linker scripts
$(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
Expand Down

0 comments on commit db1baa1

Please sign in to comment.