diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-03-02 09:01:55 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-03-02 09:06:03 +0100 |
commit | ccdd25a65393cbaf985ae6120a7d23897be325b3 (patch) | |
tree | 7e53989b19b18f1a314feddd538a3dd4a1711409 | |
parent | 5cf4c736c1625fe3b532bb2d1d8318f35a2034a7 (diff) | |
download | barebox-ccdd25a65393cbaf985ae6120a7d23897be325b3.tar.gz |
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>
-rw-r--r-- | firmware/Makefile | 3 |
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),) |