summaryrefslogtreecommitdiffstats
path: root/scripts
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 /scripts
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 'scripts')
-rw-r--r--scripts/Makefile.lib2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index 0b236babb2..f205e08afc 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -301,7 +301,7 @@ quiet_cmd_sha256bin ?= SHA-BIN $@
while read -r byte; do printf '\%o' $$byte; done)" > $@
quiet_cmd_sha256sum ?= SHA $@
- cmd_sha256sum ?= sha256sum $< > $@
+ cmd_sha256sum ?= sha256sum $2 > $@
# Decompressor for barebox proper binary when using PBL
# ---------------------------------------------------------------------------