summaryrefslogtreecommitdiffstats
path: root/bootloader/bootloader.make
diff options
context:
space:
mode:
Diffstat (limited to 'bootloader/bootloader.make')
-rw-r--r--bootloader/bootloader.make3
1 files changed, 2 insertions, 1 deletions
diff --git a/bootloader/bootloader.make b/bootloader/bootloader.make
index 0118235bb7..78b8b438c4 100644
--- a/bootloader/bootloader.make
+++ b/bootloader/bootloader.make
@@ -10,6 +10,7 @@
INCLUDES += -I$(APPSDIR)
SRC += $(call preprocess, $(APPSDIR)/SOURCES)
+CONFIGFILE := $(FIRMDIR)/export/config/$(MODELNAME).h
BOOTLDS := $(FIRMDIR)/target/$(CPU)/$(MANUFACTURER)/boot.lds
BOOTLINK := $(BUILDDIR)/boot.link
@@ -17,7 +18,7 @@ CLEANOBJS += $(BUILDDIR)/bootloader.*
.SECONDEXPANSION:
-$(BOOTLINK): $(BOOTLDS)
+$(BOOTLINK): $(BOOTLDS) $(CONFIGFILE)
$(call PRINTS,PP $(@F))
$(call preprocess2file,$<,$@,-DLOADADDRESS=$(LOADADDRESS))