summaryrefslogtreecommitdiffstats
path: root/images/Makefile
diff options
context:
space:
mode:
authorMarco Felsch <m.felsch@pengutronix.de>2024-01-19 09:07:06 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2024-01-19 09:10:53 +0100
commit5ec58676cc7f6a7d7f26d0cf64e4a51459125aca (patch)
treeb1118367ff86770e57ebde74d77a5c429c751c8f /images/Makefile
parentef35406bec5fd1f3473e69d6f64450bcd7b469d8 (diff)
downloadbarebox-5ec58676cc7f6a7d7f26d0cf64e4a51459125aca.tar.gz
barebox-5ec58676cc7f6a7d7f26d0cf64e4a51459125aca.tar.xz
firmware: fix missing firmware handling for external firmware
Currently we depend on the external firmware file since we need it for the sha256sum. But this dependency break the 'optional missing firmware' feature. Fix this by dropping the firmware file prerequisite and instead evaluate the FWNAME_EXISTS variable. If the firmware file does not exist a dummy file is created and the build continues till the linking process (like we do for the other firmware). Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Link: https://lore.barebox.org/20240110145908.3965855-1-m.felsch@pengutronix.de Link: https://lore.barebox.org/20240119080706.2381579-1-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'images/Makefile')
-rw-r--r--images/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/images/Makefile b/images/Makefile
index 7b4e019531..c0105609ee 100644
--- a/images/Makefile
+++ b/images/Makefile
@@ -132,7 +132,7 @@ $(obj)/barebox.sha.bin: $(obj)/barebox.sum FORCE
$(call if_changed,sha256bin)
$(obj)/barebox.sum: $(obj)/barebox.z FORCE
- $(call if_changed,sha256sum)
+ $(call if_changed,sha256sum,$<)
# barebox.z - compressed barebox binary