diff options
Diffstat (limited to 'meta/classes/uboot-sign.bbclass')
-rw-r--r-- | meta/classes/uboot-sign.bbclass | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta/classes/uboot-sign.bbclass b/meta/classes/uboot-sign.bbclass index d590971a27..4e4941e733 100644 --- a/meta/classes/uboot-sign.bbclass +++ b/meta/classes/uboot-sign.bbclass | |||
@@ -31,6 +31,9 @@ | |||
31 | # | 31 | # |
32 | # For more details on signature process, please refer to U-Boot documentation. | 32 | # For more details on signature process, please refer to U-Boot documentation. |
33 | 33 | ||
34 | # We need some variables from u-boot-config | ||
35 | inherit uboot-config | ||
36 | |||
34 | # Signature activation. | 37 | # Signature activation. |
35 | UBOOT_SIGN_ENABLE ?= "0" | 38 | UBOOT_SIGN_ENABLE ?= "0" |
36 | 39 | ||
@@ -41,6 +44,38 @@ UBOOT_DTB_SYMLINK ?= "u-boot-${MACHINE}.dtb" | |||
41 | UBOOT_NODTB_IMAGE ?= "u-boot-nodtb-${MACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" | 44 | UBOOT_NODTB_IMAGE ?= "u-boot-nodtb-${MACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" |
42 | UBOOT_NODTB_BINARY ?= "u-boot-nodtb.${UBOOT_SUFFIX}" | 45 | UBOOT_NODTB_BINARY ?= "u-boot-nodtb.${UBOOT_SUFFIX}" |
43 | UBOOT_NODTB_SYMLINK ?= "u-boot-nodtb-${MACHINE}.${UBOOT_SUFFIX}" | 46 | UBOOT_NODTB_SYMLINK ?= "u-boot-nodtb-${MACHINE}.${UBOOT_SUFFIX}" |
47 | UBOOT_ITS_IMAGE ?= "u-boot-${MACHINE}-${PV}-${PR}.its" | ||
48 | UBOOT_ITS ?= "u-boot.its" | ||
49 | UBOOT_ITS_SYMLINK ?= "u-boot-${MACHINE}.its" | ||
50 | SPL_DIR ?= "${@os.path.dirname(d.getVar("SPL_BINARY")) or '.'}" | ||
51 | SPL_DTB_IMAGE ?= "u-boot-spl-${MACHINE}-${PV}-${PR}.dtb" | ||
52 | SPL_DTB_BINARY ?= "u-boot-spl.dtb" | ||
53 | SPL_DTB_SYMLINK ?= "u-boot-spl-${MACHINE}.dtb" | ||
54 | SPL_NODTB_IMAGE ?= "${@os.path.splitext(d.getVar("SPL_BINARYNAME"))[0]}-nodtb-${MACHINE}-${PV}-${PR}${@os.path.splitext(d.getVar("SPL_BINARYNAME"))[1]}" | ||
55 | SPL_NODTB_BINARY ?= "${@os.path.splitext(d.getVar("SPL_BINARYNAME"))[0]}-nodtb${@os.path.splitext(d.getVar("SPL_BINARYNAME"))[1]}" | ||
56 | SPL_NODTB_SYMLINK ?= "${@os.path.splitext(d.getVar("SPL_BINARYNAME"))[0]}-nodtb-${MACHINE}${@os.path.splitext(d.getVar("SPL_BINARYNAME"))[1]}" | ||
57 | |||
58 | # fitImage Hash Algo | ||
59 | FIT_HASH_ALG ?= "sha256" | ||
60 | |||
61 | # fitImage Signature Algo | ||
62 | FIT_SIGN_ALG ?= "rsa2048" | ||
63 | |||
64 | # Generate keys for signing fitImage | ||
65 | FIT_GENERATE_KEYS ?= "0" | ||
66 | |||
67 | # Size of private key in number of bits | ||
68 | FIT_SIGN_NUMBITS ?= "2048" | ||
69 | |||
70 | # args to openssl genrsa (Default is just the public exponent) | ||
71 | FIT_KEY_GENRSA_ARGS ?= "-F4" | ||
72 | |||
73 | # args to openssl req (Default is -batch for non interactive mode and | ||
74 | # -new for new certificate) | ||
75 | FIT_KEY_REQ_ARGS ?= "-batch -new" | ||
76 | |||
77 | # Standard format for public key certificate | ||
78 | FIT_KEY_SIGN_PKCS ?= "-x509" | ||
44 | 79 | ||
45 | # Functions in this bbclass is for u-boot only | 80 | # Functions in this bbclass is for u-boot only |
46 | UBOOT_PN = "${@d.getVar('PREFERRED_PROVIDER_u-boot') or 'u-boot'}" | 81 | UBOOT_PN = "${@d.getVar('PREFERRED_PROVIDER_u-boot') or 'u-boot'}" |