diff options
Diffstat (limited to 'meta/classes-recipe/kernel-fitimage.bbclass')
| -rw-r--r-- | meta/classes-recipe/kernel-fitimage.bbclass | 53 |
1 files changed, 1 insertions, 52 deletions
diff --git a/meta/classes-recipe/kernel-fitimage.bbclass b/meta/classes-recipe/kernel-fitimage.bbclass index 18ab17bd2c..3e20c3248b 100644 --- a/meta/classes-recipe/kernel-fitimage.bbclass +++ b/meta/classes-recipe/kernel-fitimage.bbclass | |||
| @@ -5,6 +5,7 @@ | |||
| 5 | # | 5 | # |
| 6 | 6 | ||
| 7 | inherit kernel-uboot kernel-artifact-names uboot-config | 7 | inherit kernel-uboot kernel-artifact-names uboot-config |
| 8 | require conf/image-fitimage.conf | ||
| 8 | 9 | ||
| 9 | def get_fit_replacement_type(d): | 10 | def get_fit_replacement_type(d): |
| 10 | kerneltypes = d.getVar('KERNEL_IMAGETYPES') or "" | 11 | kerneltypes = d.getVar('KERNEL_IMAGETYPES') or "" |
| @@ -52,58 +53,6 @@ python __anonymous () { | |||
| 52 | d.setVar('EXTERNAL_KERNEL_DEVICETREE', "${RECIPE_SYSROOT}/boot/devicetree") | 53 | d.setVar('EXTERNAL_KERNEL_DEVICETREE', "${RECIPE_SYSROOT}/boot/devicetree") |
| 53 | } | 54 | } |
| 54 | 55 | ||
| 55 | |||
| 56 | # Description string | ||
| 57 | FIT_DESC ?= "Kernel fitImage for ${DISTRO_NAME}/${PV}/${MACHINE}" | ||
| 58 | |||
| 59 | # Kernel fitImage Hash Algo | ||
| 60 | FIT_HASH_ALG ?= "sha256" | ||
| 61 | |||
| 62 | # Kernel fitImage Signature Algo | ||
| 63 | FIT_SIGN_ALG ?= "rsa2048" | ||
| 64 | |||
| 65 | # Kernel / U-Boot fitImage Padding Algo | ||
| 66 | FIT_PAD_ALG ?= "pkcs-1.5" | ||
| 67 | |||
| 68 | # Generate keys for signing Kernel fitImage | ||
| 69 | FIT_GENERATE_KEYS ?= "0" | ||
| 70 | |||
| 71 | # Size of private keys in number of bits | ||
| 72 | FIT_SIGN_NUMBITS ?= "2048" | ||
| 73 | |||
| 74 | # args to openssl genrsa (Default is just the public exponent) | ||
| 75 | FIT_KEY_GENRSA_ARGS ?= "-F4" | ||
| 76 | |||
| 77 | # args to openssl req (Default is -batch for non interactive mode and | ||
| 78 | # -new for new certificate) | ||
| 79 | FIT_KEY_REQ_ARGS ?= "-batch -new" | ||
| 80 | |||
| 81 | # Standard format for public key certificate | ||
| 82 | FIT_KEY_SIGN_PKCS ?= "-x509" | ||
| 83 | |||
| 84 | # Sign individual images as well | ||
| 85 | FIT_SIGN_INDIVIDUAL ?= "0" | ||
| 86 | |||
| 87 | FIT_CONF_PREFIX ?= "conf-" | ||
| 88 | FIT_CONF_PREFIX[doc] = "Prefix to use for FIT configuration node name" | ||
| 89 | |||
| 90 | FIT_SUPPORTED_INITRAMFS_FSTYPES ?= "cpio.lz4 cpio.lzo cpio.lzma cpio.xz cpio.zst cpio.gz ext2.gz cpio" | ||
| 91 | |||
| 92 | # Allow user to select the default DTB for FIT image when multiple dtb's exists. | ||
| 93 | FIT_CONF_DEFAULT_DTB ?= "" | ||
| 94 | |||
| 95 | # length of address in number of <u32> cells | ||
| 96 | # ex: 1 32bits address, 2 64bits address | ||
| 97 | FIT_ADDRESS_CELLS ?= "1" | ||
| 98 | |||
| 99 | # Keys used to sign individually image nodes. | ||
| 100 | # The keys to sign image nodes must be different from those used to sign | ||
| 101 | # configuration nodes, otherwise the "required" property, from | ||
| 102 | # UBOOT_DTB_BINARY, will be set to "conf", because "conf" prevails on "image". | ||
| 103 | # Then the images signature checking will not be mandatory and no error will be | ||
| 104 | # raised in case of failure. | ||
| 105 | # UBOOT_SIGN_IMG_KEYNAME = "dev2" # keys name in keydir (eg. "dev2.crt", "dev2.key") | ||
| 106 | |||
| 107 | # | 56 | # |
| 108 | # Emit the fitImage ITS header | 57 | # Emit the fitImage ITS header |
| 109 | # | 58 | # |
