summaryrefslogtreecommitdiffstats
path: root/meta/classes/uboot-config.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/uboot-config.bbclass')
-rw-r--r--meta/classes/uboot-config.bbclass56
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.
16UBOOT_SUFFIX ??= "bin"
14UBOOT_BINARY ?= "u-boot.${UBOOT_SUFFIX}" 17UBOOT_BINARY ?= "u-boot.${UBOOT_SUFFIX}"
18UBOOT_BINARYNAME ?= "${@os.path.splitext(d.getVar("UBOOT_BINARY"))[0]}"
19UBOOT_IMAGE ?= "u-boot-${MACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
20UBOOT_SYMLINK ?= "u-boot-${MACHINE}.${UBOOT_SUFFIX}"
21UBOOT_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.
26UBOOT_ELF ?= ""
27UBOOT_ELF_SUFFIX ?= "elf"
28UBOOT_ELF_IMAGE ?= "u-boot-${MACHINE}-${PV}-${PR}.${UBOOT_ELF_SUFFIX}"
29UBOOT_ELF_BINARY ?= "u-boot.${UBOOT_ELF_SUFFIX}"
30UBOOT_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.
36SPL_BINARY ?= ""
37SPL_BINARYNAME ?= "${@os.path.basename(d.getVar("SPL_BINARY"))}"
38SPL_IMAGE ?= "${SPL_BINARYNAME}-${MACHINE}-${PV}-${PR}"
39SPL_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.
46UBOOT_ENV_SUFFIX ?= "txt"
47UBOOT_ENV ?= ""
48UBOOT_ENV_BINARY ?= "${UBOOT_ENV}.${UBOOT_ENV_SUFFIX}"
49UBOOT_ENV_IMAGE ?= "${UBOOT_ENV}-${MACHINE}-${PV}-${PR}.${UBOOT_ENV_SUFFIX}"
50UBOOT_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.
54UBOOT_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.
58UBOOT_EXTLINUX_INSTALL_DIR ?= "/boot/extlinux"
59UBOOT_EXTLINUX_CONF_NAME ?= "extlinux.conf"
60UBOOT_EXTLINUX_SYMLINK ?= "${UBOOT_EXTLINUX_CONF_NAME}-${MACHINE}-${PR}"
61
62# Options for the device tree compiler passed to mkimage '-D' feature:
63UBOOT_MKIMAGE_DTCOPTS ??= ""
64
65# mkimage command
66UBOOT_MKIMAGE ?= "uboot-mkimage"
67UBOOT_MKIMAGE_SIGN ?= "${UBOOT_MKIMAGE}"
68
69# Arguments passed to mkimage for signing
70UBOOT_MKIMAGE_SIGN_ARGS ?= ""
15 71
16python () { 72python () {
17 ubootmachine = d.getVar("UBOOT_MACHINE") 73 ubootmachine = d.getVar("UBOOT_MACHINE")