diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2023-08-03 12:50:01 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-11-06 08:43:42 +0100 |
commit | 70810a1206c69f068ac5215106a54d3f97043979 (patch) | |
tree | 6dd82d594da740697476e30d6fcc3fa8cc2300dd /images/Makefile | |
parent | 3b6d9462eb8d38461de487d3c22a95e156a1cf4f (diff) | |
download | barebox-70810a1206c69f068ac5215106a54d3f97043979.tar.gz barebox-70810a1206c69f068ac5215106a54d3f97043979.tar.xz |
ARM: k3: BeaglePlay: generate FIT image
The K3 SoCs are currently not fully bareboxified, we still need
U-Boot to bring up the SoC. Only the last stage, u-boot.img can be
replaced by barebox. Create a FIT image to generate an image
suitable for replacing u-boot.img.
Link: https://lore.barebox.org/20230803105003.4088205-21-s.hauer@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'images/Makefile')
-rw-r--r-- | images/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/images/Makefile b/images/Makefile index 52cefbfa93..7b4e019531 100644 --- a/images/Makefile +++ b/images/Makefile @@ -115,6 +115,15 @@ $(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) \ + -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)/piggy.o: $(obj)/barebox.z FORCE $(obj)/sha_sum.o: $(obj)/barebox.sha.bin FORCE |