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/recipes-bsp/u-boot/u-boot.inc | |
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/recipes-bsp/u-boot/u-boot.inc')
-rw-r--r-- | meta/recipes-bsp/u-boot/u-boot.inc | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/meta/recipes-bsp/u-boot/u-boot.inc b/meta/recipes-bsp/u-boot/u-boot.inc index 251178db33..5398c2e621 100644 --- a/meta/recipes-bsp/u-boot/u-boot.inc +++ b/meta/recipes-bsp/u-boot/u-boot.inc | |||
@@ -24,52 +24,6 @@ PACKAGECONFIG[openssl] = ",,openssl-native" | |||
24 | # file already exists it will not be overwritten. | 24 | # file already exists it will not be overwritten. |
25 | UBOOT_LOCALVERSION ?= "" | 25 | UBOOT_LOCALVERSION ?= "" |
26 | 26 | ||
27 | # Some versions of u-boot use .bin and others use .img. By default use .bin | ||
28 | # but enable individual recipes to change this value. | ||
29 | UBOOT_SUFFIX ??= "bin" | ||
30 | UBOOT_IMAGE ?= "u-boot-${MACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" | ||
31 | UBOOT_SYMLINK ?= "u-boot-${MACHINE}.${UBOOT_SUFFIX}" | ||
32 | UBOOT_MAKE_TARGET ?= "all" | ||
33 | |||
34 | # Output the ELF generated. Some platforms can use the ELF file and directly | ||
35 | # load it (JTAG booting, QEMU) additionally the ELF can be used for debugging | ||
36 | # purposes. | ||
37 | UBOOT_ELF ?= "" | ||
38 | UBOOT_ELF_SUFFIX ?= "elf" | ||
39 | UBOOT_ELF_IMAGE ?= "u-boot-${MACHINE}-${PV}-${PR}.${UBOOT_ELF_SUFFIX}" | ||
40 | UBOOT_ELF_BINARY ?= "u-boot.${UBOOT_ELF_SUFFIX}" | ||
41 | UBOOT_ELF_SYMLINK ?= "u-boot-${MACHINE}.${UBOOT_ELF_SUFFIX}" | ||
42 | |||
43 | # Some versions of u-boot build an SPL (Second Program Loader) image that | ||
44 | # should be packaged along with the u-boot binary as well as placed in the | ||
45 | # deploy directory. For those versions they can set the following variables | ||
46 | # to allow packaging the SPL. | ||
47 | SPL_BINARY ?= "" | ||
48 | SPL_BINARYNAME ?= "${@os.path.basename(d.getVar("SPL_BINARY"))}" | ||
49 | SPL_IMAGE ?= "${SPL_BINARYNAME}-${MACHINE}-${PV}-${PR}" | ||
50 | SPL_SYMLINK ?= "${SPL_BINARYNAME}-${MACHINE}" | ||
51 | |||
52 | # Additional environment variables or a script can be installed alongside | ||
53 | # u-boot to be used automatically on boot. This file, typically 'uEnv.txt' | ||
54 | # or 'boot.scr', should be packaged along with u-boot as well as placed in the | ||
55 | # deploy directory. Machine configurations needing one of these files should | ||
56 | # include it in the SRC_URI and set the UBOOT_ENV parameter. | ||
57 | UBOOT_ENV_SUFFIX ?= "txt" | ||
58 | UBOOT_ENV ?= "" | ||
59 | UBOOT_ENV_BINARY ?= "${UBOOT_ENV}.${UBOOT_ENV_SUFFIX}" | ||
60 | UBOOT_ENV_IMAGE ?= "${UBOOT_ENV}-${MACHINE}-${PV}-${PR}.${UBOOT_ENV_SUFFIX}" | ||
61 | UBOOT_ENV_SYMLINK ?= "${UBOOT_ENV}-${MACHINE}.${UBOOT_ENV_SUFFIX}" | ||
62 | |||
63 | # Default name of u-boot initial env, but enable individual recipes to change | ||
64 | # this value. | ||
65 | UBOOT_INITIAL_ENV ?= "${PN}-initial-env" | ||
66 | |||
67 | # U-Boot EXTLINUX variables. U-Boot searches for /boot/extlinux/extlinux.conf | ||
68 | # to find EXTLINUX conf file. | ||
69 | UBOOT_EXTLINUX_INSTALL_DIR ?= "/boot/extlinux" | ||
70 | UBOOT_EXTLINUX_CONF_NAME ?= "extlinux.conf" | ||
71 | UBOOT_EXTLINUX_SYMLINK ?= "${UBOOT_EXTLINUX_CONF_NAME}-${MACHINE}-${PR}" | ||
72 | |||
73 | do_configure () { | 27 | do_configure () { |
74 | if [ -n "${UBOOT_CONFIG}" ]; then | 28 | if [ -n "${UBOOT_CONFIG}" ]; then |
75 | unset i j | 29 | unset i j |