diff options
Diffstat (limited to 'meta/recipes-bsp')
-rw-r--r-- | meta/recipes-bsp/u-boot/u-boot.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/recipes-bsp/u-boot/u-boot.inc b/meta/recipes-bsp/u-boot/u-boot.inc index f27fdd5998..ec4a3d201d 100644 --- a/meta/recipes-bsp/u-boot/u-boot.inc +++ b/meta/recipes-bsp/u-boot/u-boot.inc | |||
@@ -4,6 +4,7 @@ PROVIDES = "virtual/bootloader" | |||
4 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 4 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
5 | 5 | ||
6 | DEPENDS += "kern-tools-native" | 6 | DEPENDS += "kern-tools-native" |
7 | DEPENDS += "${@bb.utils.contains('UBOOT_ENV_SUFFIX', 'scr', 'u-boot-mkimage-native', '', d)}" | ||
7 | 8 | ||
8 | inherit uboot-config uboot-extlinux-config uboot-sign deploy cml1 python3native kernel-arch | 9 | inherit uboot-config uboot-extlinux-config uboot-sign deploy cml1 python3native kernel-arch |
9 | 10 | ||
@@ -106,6 +107,11 @@ do_compile () { | |||
106 | oe_runmake -C ${S} O=${B} u-boot-initial-env | 107 | oe_runmake -C ${S} O=${B} u-boot-initial-env |
107 | fi | 108 | fi |
108 | fi | 109 | fi |
110 | |||
111 | if [ -n "${UBOOT_ENV}" && "${UBOOT_ENV_SUFFIX}" = "scr" ] | ||
112 | then | ||
113 | ${UBOOT_MKIMAGE} -C none -A ${UBOOT_ARCH} -T script -d ${WORKDIR}/${UBOOT_ENV_SRC} ${WORKDIR}/${UBOOT_ENV_BINARY} | ||
114 | fi | ||
109 | } | 115 | } |
110 | 116 | ||
111 | do_install () { | 117 | do_install () { |