[loader] add option for bootloader

main-solar-only
Richard Meadows 2016-08-04 20:16:34 +01:00
rodzic e5f185b934
commit 02f71ee407
2 zmienionych plików z 10 dodań i 1 usunięć

Wyświetl plik

@ -120,7 +120,12 @@ SYSTEM += test/tmain.c
# Linker Scripts
#
#
ifdef BOOTLOADER
LINKERS ?= chip/$(shell echo $(TARGET_CHIP) | $(TR) A-Z a-z)_bootloader.ld
else
LINKERS ?= chip/$(shell echo $(TARGET_CHIP) | $(TR) A-Z a-z).ld chip/sections.ld
endif
LINKERS += chip/sections.ld
# Our compilation target
#
@ -162,7 +167,7 @@ all: $(TARGET).elf etags
# .d as a target, so that if they stop existing the corresponding
# object file will be re-compiled.
#
$(OUTPUT_PATH)%.o: %.c
$(OUTPUT_PATH)%.o: %.c Makefile config.mk
@$(ECHO)
@$(ECHO) 'Compiling $<...'
@$(MKDIR) $(OUTPUT_PATH)$(dir $<)

Wyświetl plik

@ -30,6 +30,10 @@ PROJECT_NAME := pico
#
TARGET_CHIP := SAMD20E18
# Build for bootloader?
#
#BOOTLOADER := true
# Compiliation Flags
#
# Use this to set the debug level