summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-03-02 09:01:55 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2020-03-02 09:06:03 +0100
commitccdd25a65393cbaf985ae6120a7d23897be325b3 (patch)
tree7e53989b19b18f1a314feddd538a3dd4a1711409 /firmware
parent5cf4c736c1625fe3b532bb2d1d8318f35a2034a7 (diff)
downloadbarebox-ccdd25a65393cbaf985ae6120a7d23897be325b3.tar.gz
barebox-ccdd25a65393cbaf985ae6120a7d23897be325b3.tar.xz
firmware: Fix dependencies for firmware in PBL
The object files for the PBL are not regenerated when the firmware files are updated. The dependency from the pbl-*.gen.o to the firmware files are missing, add them. Reported-by: Rouven Czerwinski <r.czerwinski@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'firmware')
-rw-r--r--firmware/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/Makefile b/firmware/Makefile
index 9581ee6116..8e8ce83e06 100644
--- a/firmware/Makefile
+++ b/firmware/Makefile
@@ -50,6 +50,9 @@ $(patsubst %,$(obj)/%.gen.S, $(fw-external-y)): %: $(wordsize_deps) \
# The .o files depend on the binaries directly; the .S files don't.
$(patsubst %,$(obj)/%.gen.o, $(fw-external-y)): $(obj)/%.gen.o: $(fwdir)/%
+# The same for pbl:
+$(patsubst %,$(obj)/pbl-%.gen.o, $(fw-external-y)): $(obj)/pbl-%.gen.o: $(fwdir)/%
+
obj-pbl-y += $(patsubst %,%.gen.o, $(fw-external-y))
ifeq ($(KBUILD_SRC),)