From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH] images: rename k3-am625-beagleplay extension from fit to itb
Date: Mon, 6 Jan 2025 10:19:35 +0100 [thread overview]
Message-ID: <20250106091935.3435710-1-a.fatoum@pengutronix.de> (raw)
In preparation for generating FIT images without an input ITS (what
mkimage calls automatic mode), let's rename the existing .fit extension
to .itb, so .fit is usable for images that have no its.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
images/.gitignore | 1 +
images/Makefile | 8 ++++----
images/Makefile.k3 | 4 ++--
3 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/images/.gitignore b/images/.gitignore
index 6f8067554671..ec31293766e4 100644
--- a/images/.gitignore
+++ b/images/.gitignore
@@ -37,5 +37,6 @@ barebox.sum
*.swapped
*.rkimg
*.imx9img
+*.itb
*.fit
*.missing-firmware
diff --git a/images/Makefile b/images/Makefile
index a74aa6023e73..e0e3e5c537cc 100644
--- a/images/Makefile
+++ b/images/Makefile
@@ -114,14 +114,14 @@ $(obj)/%.pblb: $(obj)/%.pbl FORCE
$(obj)/%.s: $(obj)/% FORCE
$(call if_changed,disasm)
-quiet_cmd_fit = FIT $@
-cmd_fit = $(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) \
+quiet_cmd_itb = FIT.ITS $@
+cmd_itb = $(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) \
-D'$(subst -,_,$(*F))_dts=1' $(foreach f,$< $(2),-include '$(f)') /dev/null ; \
mkimage -f $(dtc-tmp) $@ -E \
cat $(depfile).pre $(depfile).dtc > $(depfile)
-$(obj)/%.fit: $(obj)/%.its FORCE
- $(call if_changed,fit)
+$(obj)/%.itb: $(obj)/%.its FORCE
+ $(call if_changed,itb)
$(obj)/piggy.o: $(obj)/barebox.z FORCE
diff --git a/images/Makefile.k3 b/images/Makefile.k3
index f7acd7801431..7988defe79b8 100644
--- a/images/Makefile.k3
+++ b/images/Makefile.k3
@@ -7,7 +7,7 @@ pblb-$(CONFIG_MACH_BEAGLEPLAY) += start_beagleplay
FILE_barebox-beagleplay.img = start_beagleplay.pblb
image-$(CONFIG_MACH_BEAGLEPLAY) += barebox-beagleplay.img
-$(obj)/k3-am625-beagleplay.fit: $(obj)/barebox-beagleplay.img
-FILE_barebox-beagleplay-fit.img = k3-am625-beagleplay.fit
+$(obj)/k3-am625-beagleplay.itb: $(obj)/barebox-beagleplay.img
+FILE_barebox-beagleplay-fit.img = k3-am625-beagleplay.itb
image-$(CONFIG_MACH_BEAGLEPLAY) += barebox-beagleplay-fit.img
--
2.39.5
next reply other threads:[~2025-01-06 9:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-06 9:19 Ahmad Fatoum [this message]
2025-01-06 13:35 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250106091935.3435710-1-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox