As of FIT v0.9, it is possible to pass cmdline parameters to the bootloader via a special property in the fitimage. This series adds support for this feature in Barebox. It also adds some tests to avoid any regression on this feature. As `cmdline` is a property in a configuration that isn't a reference to an image, it needs to be whitelisted by fit_config_build_hash_nodes() to not be hashed.
Signed-off-by: Thomas Bonnefille <[email protected]> --- Changes in v2: - Skip bootargs configuration if CONFIG_FLEXIBLE_BOOTARGS isn't enabled - Use a dynamic bootargs - Added a test for the fit image command line parameter - Whitelisted the cmdline property in fit image hashing - Link to v1: https://patch.msgid.link/[email protected] To: Sascha Hauer <[email protected]> To: "open list:BAREBOX" <[email protected]> Cc: Thomas Petazzoni <[email protected]> Cc: Miquèl Raynal <[email protected]> --- Thomas Bonnefille (3): bootm: add fitimage command line to bootargs test: py: add test for fit cmdline parameter FIT: add cmdline to whitelist of non-hashed properties common/bootm-fit.c | 18 ++++++++++++++++++ common/image-fit.c | 1 + test/py/test_fit.py | 1 + test/testdata/multi_v7_defconfig-gzipped.its | 1 + test/testdata/multi_v8_defconfig-gzipped.its | 1 + 5 files changed, 22 insertions(+) --- base-commit: 75819f9e196e2da048e96c8589898fdc38ef8e7a change-id: 20260827-add-cmdline-fitimage-42f6b2e930c1 Best regards, -- Thomas Bonnefille <[email protected]>
