meta-openembedded/meta-oe/classes
Marco Felsch b20be52a4e
fitimage: add support to build arbitrary FIT images
The FIT image support in OE is quite limited:
 1) No support to build an arbitrary number of FIT images since the FIT
    image generation is tightly coupled to the kernel image.
 2) A lot of U_BOOT-specific variables which may not be necessary for
    other bootloaders.
 3) No usage of the meta-oe signing.bbclass for signed FIT images.

This alternative class is added to solve the above-mentioned problems:
 1) The class can be inherited by an arbitrary number of
    <fit-image-name>.bb recipes to generate FIT images
 2) No U_BOOT-specific variables are used
 3) <fit-image-name>.bb recipes can prepend the do_fitimage() to
    provide the key using the signing.bbclass e.g.:

    do_fitimage:prepend() {
        signing_prepare
        signing_use_role "${FITIMAGE_SIGNING_KEY_ROLE}"
    }

    Then enable and configure signing as follows:

    FITIMAGE_SIGN = "1"
    FITIMAGE_MKIMAGE_EXTRA_ARGS = "--engine pkcs11"
    FITIMAGE_SIGN_KEYDIR = "${PKCS11_URI}

This class is inspired by the meta-phytec fitimage.bbclass [1].

[1] https://git.phytec.de/meta-phytec/tree/classes/fitimage.bbclass

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Enrico Jörns <ejo@pengutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-09 15:47:23 -07:00
..
breakpad.bbclass Convert to new override syntax 2021-08-03 10:21:25 -07:00
fitimage.bbclass fitimage: add support to build arbitrary FIT images 2024-10-09 15:47:23 -07:00
gitpkgv.bbclass gitpkgv.bbclass: adjust the example in comment a bit 2024-02-09 09:52:12 -08:00
gitver.bbclass gitver: Pass git directory argument to gitrev_run 2019-06-15 17:17:09 -07:00
gpe.bbclass Convert to new override syntax 2021-08-03 10:21:25 -07:00
image_types_sparse.bbclass image_types_sparse: Fix syntax error 2023-08-01 10:26:51 -07:00
image_types_verity.bbclass Add class for appending dm-verity hash data to block device images 2024-04-23 15:18:30 -07:00
itstool.bbclass Convert to new override syntax 2021-08-03 10:21:25 -07:00
machine_kernel_pr.bbclass remove True option to getVar calls 2016-12-02 09:16:17 +01:00
scancode.bbclass meta-oe: remove True option to getVar calls (again) 2019-01-13 10:28:01 -08:00
signing.bbclass signing.bbclass: fix typos 2024-03-05 15:09:24 -08:00
socorro-syms.bbclass Convert to new override syntax 2021-08-03 10:21:25 -07:00