mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v7 0/2] arm64: Add a build target for Flat Image Tree
@ 2023-11-29 17:21 Simon Glass
  2023-11-29 17:21 ` [PATCH v7 1/2] arm64: Add BOOT_TARGETS variable Simon Glass
  2023-11-29 17:21 ` [PATCH v7 2/2] arm64: boot: Support Flat Image Tree Simon Glass
  0 siblings, 2 replies; 27+ messages in thread
From: Simon Glass @ 2023-11-29 17:21 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Masahiro Yamada, Tom Rini, lkml, U-Boot Mailing List,
	Simon Glass, Catalin Marinas, Nathan Chancellor, Nick Terrell,
	Nicolas Schier, Will Deacon, linux-kbuild

Flat Image Tree (FIT) is a widely used file format for packaging a
kernel and associated devicetree files[1]. It is not specific to any
one bootloader, as it is supported by U-Boot, coreboot, Linuxboot,
Tianocore and Barebox.

This series adds support for building a FIT as part of the kernel
build. This makes it easy to try out the kernel - just load the FIT
onto your tftp server and it will run automatically on any supported
arm64 board.

The script is written in Python, since it is easy to build a FIT using
the Python libfdt bindings. For now, no attempt is made to compress
files in parallel, so building the 900-odd files takes a while, about
6 seconds with my testing.

The series also includes a few minor clean-up patches.

[1] https://github.com/open-source-firmware/flat-image-tree

Changes in v7:
- Drop the kbuild tag
- Add Image as a dependency of image.fit
- Drop kbuild tag
- Add dependency on dtbs
- Drop unnecessary path separator for dtbs
- Rebase to -next

Changes in v6:
- Drop the unwanted .gz suffix

Changes in v5:
- Drop patch previously applied
- Correct compression rule which was broken in v4

Changes in v4:
- Use single quotes for UIMAGE_NAME

Changes in v3:
- Drop temporary file image.itk
- Drop patch 'Use double quotes for image name'
- Drop double quotes in use of UIMAGE_NAME
- Drop unnecessary CONFIG_EFI_ZBOOT condition for help
- Avoid hard-coding "arm64" for the DT architecture

Changes in v2:
- Drop patch previously applied
- Add .gitignore file
- Move fit rule to Makefile.lib using an intermediate file
- Drop dependency on CONFIG_EFI_ZBOOT
- Pick up .dtb files separately from the kernel
- Correct pylint too-many-args warning for write_kernel()
- Include the kernel image in the file count
- Add a pointer to the FIT spec and mention of its wide industry usage
- Mention the kernel version in the FIT description

Simon Glass (2):
  arm64: Add BOOT_TARGETS variable
  arm64: boot: Support Flat Image Tree

 MAINTAINERS                |   7 +
 arch/arm64/Makefile        |  13 +-
 arch/arm64/boot/.gitignore |   1 +
 arch/arm64/boot/Makefile   |   6 +-
 scripts/Makefile.lib       |  13 ++
 scripts/make_fit.py        | 289 +++++++++++++++++++++++++++++++++++++
 6 files changed, 326 insertions(+), 3 deletions(-)
 create mode 100755 scripts/make_fit.py

-- 
2.43.0.rc2.451.g8631bc7472-goog


^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2023-12-05 17:06 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-29 17:21 [PATCH v7 0/2] arm64: Add a build target for Flat Image Tree Simon Glass
2023-11-29 17:21 ` [PATCH v7 1/2] arm64: Add BOOT_TARGETS variable Simon Glass
2023-11-29 17:21 ` [PATCH v7 2/2] arm64: boot: Support Flat Image Tree Simon Glass
2023-11-29 18:35   ` Ahmad Fatoum
2023-11-29 19:00     ` Simon Glass
2023-11-29 20:35       ` Ahmad Fatoum
2023-11-30 20:30     ` Simon Glass
2023-11-29 18:59   ` Ahmad Fatoum
2023-11-29 19:02     ` Tom Rini
2023-11-29 19:16       ` Ahmad Fatoum
2023-11-29 20:10         ` Tom Rini
2023-11-29 19:02     ` Simon Glass
2023-11-29 19:14       ` Ahmad Fatoum
2023-11-29 19:27         ` Simon Glass
2023-11-29 19:33           ` Ahmad Fatoum
2023-11-29 19:44             ` Simon Glass
2023-11-29 19:53               ` Ahmad Fatoum
2023-11-30 20:30                 ` Simon Glass
2023-12-01  2:03                   ` Ahmad Fatoum
2023-12-02 16:36                     ` Simon Glass
2023-12-04 17:52                       ` Doug Anderson
2023-12-05 11:15                         ` Ahmad Fatoum
2023-12-05 17:06                           ` Doug Anderson
2023-11-30  8:20   ` Nicolas Schier
2023-11-30 15:12     ` Masahiro Yamada
2023-11-30 15:38   ` Masahiro Yamada
2023-11-30 20:32     ` Simon Glass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®