Commit 3dfc5a8ddae0fd3e658948506164d3946f9c637a

Authored by Eric Lee
1 parent 98fbe842e9

Fix Boot_SEL detection problem

Showing 1 changed file with 1 additions and 1 deletions Inline Diff

recipes-bsp/u-boot/u-boot-smarcimx8mm_2019.04.bb
1 # Copyright (C) 2013-2016 Freescale Semiconductor 1 # Copyright (C) 2013-2016 Freescale Semiconductor
2 # Copyright 2017-2019 NXP 2 # Copyright 2017-2019 NXP
3 3
4 DESCRIPTION = "i.MX U-Boot suppporting i.MX reference boards." 4 DESCRIPTION = "i.MX U-Boot suppporting i.MX reference boards."
5 require recipes-bsp/u-boot/u-boot-common.inc 5 require recipes-bsp/u-boot/u-boot-common.inc
6 require recipes-bsp/u-boot/u-boot.inc 6 require recipes-bsp/u-boot/u-boot.inc
7 inherit pythonnative 7 inherit pythonnative
8 8
9 PROVIDES += "u-boot" 9 PROVIDES += "u-boot"
10 DEPENDS_append = " python dtc-native" 10 DEPENDS_append = " python dtc-native"
11 11
12 LICENSE = "GPLv2+" 12 LICENSE = "GPLv2+"
13 LIC_FILES_CHKSUM = "file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263" 13 LIC_FILES_CHKSUM = "file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263"
14 14
15 UBOOT_SRC ?= "${EMB_UBOOT_MIRROR};protocol=ssh" 15 UBOOT_SRC ?= "${EMB_UBOOT_MIRROR};protocol=ssh"
16 SRCBRANCH = "smarc_8mm-imx_v2019.04_4.19.35_1.1.0" 16 SRCBRANCH = "smarc_8mm-imx_v2019.04_4.19.35_1.1.0"
17 SRC_URI = "${UBOOT_SRC};branch=${SRCBRANCH}" 17 SRC_URI = "${UBOOT_SRC};branch=${SRCBRANCH}"
18 SRCREV = "65140817cb27498267b6c804f1b94cd76bea1d98" 18 SRCREV = "a6e101eba63262e540cb1bf6566f9bb223166308"
19 19
20 S = "${WORKDIR}/git" 20 S = "${WORKDIR}/git"
21 21
22 inherit fsl-u-boot-localversion 22 inherit fsl-u-boot-localversion
23 23
24 LOCALVERSION ?= "-${SRCBRANCH}" 24 LOCALVERSION ?= "-${SRCBRANCH}"
25 25
26 BOOT_TOOLS = "imx-boot-tools" 26 BOOT_TOOLS = "imx-boot-tools"
27 27
28 do_deploy_append_mx8m () { 28 do_deploy_append_mx8m () {
29 # Deploy the mkimage, u-boot-nodtb.bin and fsl-imx8mm-XX.dtb for mkimage to generate boot binary 29 # Deploy the mkimage, u-boot-nodtb.bin and fsl-imx8mm-XX.dtb for mkimage to generate boot binary
30 if [ -n "${UBOOT_CONFIG}" ] 30 if [ -n "${UBOOT_CONFIG}" ]
31 then 31 then
32 for config in ${UBOOT_MACHINE}; do 32 for config in ${UBOOT_MACHINE}; do
33 i=$(expr $i + 1); 33 i=$(expr $i + 1);
34 for type in ${UBOOT_CONFIG}; do 34 for type in ${UBOOT_CONFIG}; do
35 j=$(expr $j + 1); 35 j=$(expr $j + 1);
36 if [ $j -eq $i ] 36 if [ $j -eq $i ]
37 then 37 then
38 install -d ${DEPLOYDIR}/${BOOT_TOOLS} 38 install -d ${DEPLOYDIR}/${BOOT_TOOLS}
39 install -m 0777 ${B}/${config}/arch/arm/dts/${UBOOT_DTB_NAME} ${DEPLOYDIR}/${BOOT_TOOLS} 39 install -m 0777 ${B}/${config}/arch/arm/dts/${UBOOT_DTB_NAME} ${DEPLOYDIR}/${BOOT_TOOLS}
40 install -m 0777 ${B}/${config}/tools/mkimage ${DEPLOYDIR}/${BOOT_TOOLS}/mkimage_uboot 40 install -m 0777 ${B}/${config}/tools/mkimage ${DEPLOYDIR}/${BOOT_TOOLS}/mkimage_uboot
41 install -m 0777 ${B}/${config}/u-boot-nodtb.bin ${DEPLOYDIR}/${BOOT_TOOLS}/u-boot-nodtb.bin-${MACHINE}-${UBOOT_CONFIG} 41 install -m 0777 ${B}/${config}/u-boot-nodtb.bin ${DEPLOYDIR}/${BOOT_TOOLS}/u-boot-nodtb.bin-${MACHINE}-${UBOOT_CONFIG}
42 fi 42 fi
43 done 43 done
44 unset j 44 unset j
45 done 45 done
46 unset i 46 unset i
47 fi 47 fi
48 48
49 } 49 }
50 50
51 PACKAGE_ARCH = "${MACHINE_ARCH}" 51 PACKAGE_ARCH = "${MACHINE_ARCH}"
52 COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" 52 COMPATIBLE_MACHINE = "(mx6|mx7|mx8)"
53 53
54 UBOOT_NAME_mx6 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" 54 UBOOT_NAME_mx6 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}"
55 UBOOT_NAME_mx7 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" 55 UBOOT_NAME_mx7 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}"
56 UBOOT_NAME_mx8 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" 56 UBOOT_NAME_mx8 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}"
57 57