diff options
author | Klaus Heinrich Kiwi <klaus@linux.vnet.ibm.com> | 2021-03-26 17:14:07 -0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-04-06 11:36:51 +0100 |
commit | 068d114385adc679770dc5e8909ad7c432bf8ec1 (patch) | |
tree | aa8bd100c1d2ed9e5bd5dceda121b93c74026a25 /meta/classes/uboot-config.bbclass | |
parent | e8e10f27b20f331622b7fdb3eb4e60f0850ea876 (diff) | |
download | poky-068d114385adc679770dc5e8909ad7c432bf8ec1.tar.gz |
u-boot: Move definitions to common locations
Move some definitions from u-boot.inc into uboot-config.bbclass and
similarly from kernel-fitimage.bbclass into uboot-sign.bbclass, so that
they can be useful when signing the U-boot proper fitimage, for a
verified-boot SPL.
(From OE-Core rev: cc6c3e31526d3b6ef3a87ba5e548fcad7483bd51)
Signed-off-by: Klaus Heinrich Kiwi <klaus@linux.vnet.ibm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/uboot-config.bbclass')
-rw-r--r-- | meta/classes/uboot-config.bbclass | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/meta/classes/uboot-config.bbclass b/meta/classes/uboot-config.bbclass index 89ff970fcc..31487c1418 100644 --- a/meta/classes/uboot-config.bbclass +++ b/meta/classes/uboot-config.bbclass | |||
@@ -11,7 +11,63 @@ | |||
11 | # | 11 | # |
12 | # Copyright 2013, 2014 (C) O.S. Systems Software LTDA. | 12 | # Copyright 2013, 2014 (C) O.S. Systems Software LTDA. |
13 | 13 | ||
14 | # Some versions of u-boot use .bin and others use .img. By default use .bin | ||
15 | # but enable individual recipes to change this value. | ||
16 | UBOOT_SUFFIX ??= "bin" | ||
14 | UBOOT_BINARY ?= "u-boot.${UBOOT_SUFFIX}" | 17 | UBOOT_BINARY ?= "u-boot.${UBOOT_SUFFIX}" |
18 | UBOOT_BINARYNAME ?= "${@os.path.splitext(d.getVar("UBOOT_BINARY"))[0]}" | ||
19 | UBOOT_IMAGE ?= "u-boot-${MACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" | ||
20 | UBOOT_SYMLINK ?= "u-boot-${MACHINE}.${UBOOT_SUFFIX}" | ||
21 | UBOOT_MAKE_TARGET ?= "all" | ||
22 | |||
23 | # Output the ELF generated. Some platforms can use the ELF file and directly | ||
24 | # load it (JTAG booting, QEMU) additionally the ELF can be used for debugging | ||
25 | # purposes. | ||
26 | UBOOT_ELF ?= "" | ||
27 | UBOOT_ELF_SUFFIX ?= "elf" | ||
28 | UBOOT_ELF_IMAGE ?= "u-boot-${MACHINE}-${PV}-${PR}.${UBOOT_ELF_SUFFIX}" | ||
29 | UBOOT_ELF_BINARY ?= "u-boot.${UBOOT_ELF_SUFFIX}" | ||
30 | UBOOT_ELF_SYMLINK ?= "u-boot-${MACHINE}.${UBOOT_ELF_SUFFIX}" | ||
31 | |||
32 | # Some versions of u-boot build an SPL (Second Program Loader) image that | ||
33 | # should be packaged along with the u-boot binary as well as placed in the | ||
34 | # deploy directory. For those versions they can set the following variables | ||
35 | # to allow packaging the SPL. | ||
36 | SPL_BINARY ?= "" | ||
37 | SPL_BINARYNAME ?= "${@os.path.basename(d.getVar("SPL_BINARY"))}" | ||
38 | SPL_IMAGE ?= "${SPL_BINARYNAME}-${MACHINE}-${PV}-${PR}" | ||
39 | SPL_SYMLINK ?= "${SPL_BINARYNAME}-${MACHINE}" | ||
40 | |||
41 | # Additional environment variables or a script can be installed alongside | ||
42 | # u-boot to be used automatically on boot. This file, typically 'uEnv.txt' | ||
43 | # or 'boot.scr', should be packaged along with u-boot as well as placed in the | ||
44 | # deploy directory. Machine configurations needing one of these files should | ||
45 | # include it in the SRC_URI and set the UBOOT_ENV parameter. | ||
46 | UBOOT_ENV_SUFFIX ?= "txt" | ||
47 | UBOOT_ENV ?= "" | ||
48 | UBOOT_ENV_BINARY ?= "${UBOOT_ENV}.${UBOOT_ENV_SUFFIX}" | ||
49 | UBOOT_ENV_IMAGE ?= "${UBOOT_ENV}-${MACHINE}-${PV}-${PR}.${UBOOT_ENV_SUFFIX}" | ||
50 | UBOOT_ENV_SYMLINK ?= "${UBOOT_ENV}-${MACHINE}.${UBOOT_ENV_SUFFIX}" | ||
51 | |||
52 | # Default name of u-boot initial env, but enable individual recipes to change | ||
53 | # this value. | ||
54 | UBOOT_INITIAL_ENV ?= "${PN}-initial-env" | ||
55 | |||
56 | # U-Boot EXTLINUX variables. U-Boot searches for /boot/extlinux/extlinux.conf | ||
57 | # to find EXTLINUX conf file. | ||
58 | UBOOT_EXTLINUX_INSTALL_DIR ?= "/boot/extlinux" | ||
59 | UBOOT_EXTLINUX_CONF_NAME ?= "extlinux.conf" | ||
60 | UBOOT_EXTLINUX_SYMLINK ?= "${UBOOT_EXTLINUX_CONF_NAME}-${MACHINE}-${PR}" | ||
61 | |||
62 | # Options for the device tree compiler passed to mkimage '-D' feature: | ||
63 | UBOOT_MKIMAGE_DTCOPTS ??= "" | ||
64 | |||
65 | # mkimage command | ||
66 | UBOOT_MKIMAGE ?= "uboot-mkimage" | ||
67 | UBOOT_MKIMAGE_SIGN ?= "${UBOOT_MKIMAGE}" | ||
68 | |||
69 | # Arguments passed to mkimage for signing | ||
70 | UBOOT_MKIMAGE_SIGN_ARGS ?= "" | ||
15 | 71 | ||
16 | python () { | 72 | python () { |
17 | ubootmachine = d.getVar("UBOOT_MACHINE") | 73 | ubootmachine = d.getVar("UBOOT_MACHINE") |