]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
uboot-sign: support to add users specific image tree source
authorJamin Lin <jamin_lin@aspeedtech.com>
Mon, 17 Feb 2025 08:52:32 +0000 (16:52 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 27 Feb 2025 10:47:30 +0000 (10:47 +0000)
commitc12e013453689697a8680f1c7de3e625a0ff28ec
treefe8c0019df0082edf8f4afcb6dcbfeddc907a2ae
parentc14641a964b5b802e995e574a599c5b4937fb488
uboot-sign: support to add users specific image tree source

Currently, uboot-sign.bbclass only supports to create Image Tree Source(ITS)
for "u-boot" and "flat_dt". However, users may want to add their private
images into u-boot FIT image for specific application and purpose.

To make this bbclass more flexible and support to add users specific snippet
ITS, creates a new "UBOOT_FIT_USER_SETTINGS" variable. Users can add their
specific snippet ITS into this variable.

Example:

```
UBOOT_FIT_MY_ITS = '\
       myfw {\n\
            description = \"MY Firmware\";\n\
            data = /incbin/(\"myfw.bin\");\n\
            type = \"mytype\";\n\
            arch = \"myarch\";\n\
            os = \"myos\";\n\
            load = <0xb2000000>;\n\
            entry = <0xb2000000>;\n\
            compression = \"none\";\n\
        };\n\
'

UBOOT_FIT_USER_SETTINGS = "${UBOOT_FIT_MY_ITS}"
```

The generated ITS

```
       myfw {
            description = "My Firmware";
            data = /incbin/("myfw.bin");
            type = "mytype";
            arch = "myarch";
            os = "myos";
            load = <0xb2000000>;
            entry = <0xb2000000>;
            compression = "none";
       };
```

Add a variable "UBOOT_FIT_CONF_USER_LOADABLES" to load users specific images
and it is an empty by default.

Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
meta/classes-recipe/uboot-sign.bbclass