diff options
Diffstat (limited to 'recipes-bsp/u-boot/u-boot-imx_2019.04.bb')
| -rw-r--r-- | recipes-bsp/u-boot/u-boot-imx_2019.04.bb | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/recipes-bsp/u-boot/u-boot-imx_2019.04.bb b/recipes-bsp/u-boot/u-boot-imx_2019.04.bb new file mode 100644 index 000000000..9b12482d1 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-imx_2019.04.bb | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | # Copyright (C) 2013-2016 Freescale Semiconductor | ||
| 2 | # Copyright 2018 (C) O.S. Systems Software LTDA. | ||
| 3 | # Copyright 2017-2019 NXP | ||
| 4 | |||
| 5 | DESCRIPTION = "i.MX U-Boot suppporting i.MX reference boards." | ||
| 6 | require recipes-bsp/u-boot/u-boot.inc | ||
| 7 | |||
| 8 | PROVIDES += "u-boot" | ||
| 9 | |||
| 10 | LICENSE = "GPLv2+" | ||
| 11 | LIC_FILES_CHKSUM = "file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263" | ||
| 12 | |||
| 13 | SRCBRANCH = "imx_v2019.04_4.19.35_1.1.0" | ||
| 14 | SRC_URI = "git://source.codeaurora.org/external/imx/uboot-imx.git;protocol=https;branch=${SRCBRANCH}" | ||
| 15 | SRCREV = "4d377539a1190e838eae5d8b8a794dde0696d572" | ||
| 16 | |||
| 17 | DEPENDS += "flex-native bison-native bc-native dtc-native" | ||
| 18 | |||
| 19 | S = "${WORKDIR}/git" | ||
| 20 | |||
| 21 | inherit fsl-u-boot-localversion | ||
| 22 | |||
| 23 | LOCALVERSION ?= "-${SRCBRANCH}" | ||
| 24 | |||
| 25 | BOOT_TOOLS = "imx-boot-tools" | ||
| 26 | |||
| 27 | do_deploy_append_mx8m() { | ||
| 28 | # Deploy the mkimage, u-boot-nodtb.bin and fsl-imx8m*-XX.dtb for mkimage to generate boot binary | ||
| 29 | if [ -n "${UBOOT_CONFIG}" ] | ||
| 30 | then | ||
| 31 | for config in ${UBOOT_MACHINE}; do | ||
| 32 | i=$(expr $i + 1); | ||
| 33 | for type in ${UBOOT_CONFIG}; do | ||
| 34 | j=$(expr $j + 1); | ||
| 35 | if [ $j -eq $i ] | ||
| 36 | then | ||
| 37 | install -d ${DEPLOYDIR}/${BOOT_TOOLS} | ||
| 38 | install -m 0777 ${B}/${config}/arch/arm/dts/${UBOOT_DTB_NAME} ${DEPLOYDIR}/${BOOT_TOOLS} | ||
| 39 | install -m 0777 ${B}/${config}/tools/mkimage ${DEPLOYDIR}/${BOOT_TOOLS}/mkimage_uboot | ||
| 40 | install -m 0777 ${B}/${config}/u-boot-nodtb.bin ${DEPLOYDIR}/${BOOT_TOOLS}/u-boot-nodtb.bin-${MACHINE}-${UBOOT_CONFIG} | ||
| 41 | fi | ||
| 42 | done | ||
| 43 | unset j | ||
| 44 | done | ||
| 45 | unset i | ||
| 46 | fi | ||
| 47 | } | ||
| 48 | |||
| 49 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 50 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" | ||
