Commit 9876f9c891049df3fd942b390eb5d1b5183ae4c8
1 parent
1eda636196
Exists in
8mm_5.4.24_2.1.0_zeus
Fix u-boot wrong SD card detect pin
Showing 1 changed file with 1 additions and 1 deletions Inline Diff
recipes-bsp/u-boot/u-boot-smarcimx8mm_2020.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 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | 9 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" |
10 | 10 | ||
11 | PROVIDES += "u-boot" | 11 | PROVIDES += "u-boot" |
12 | DEPENDS_append = " dtc-native" | 12 | DEPENDS_append = " dtc-native" |
13 | 13 | ||
14 | LICENSE = "GPLv2+" | 14 | LICENSE = "GPLv2+" |
15 | LIC_FILES_CHKSUM = "file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263" | 15 | LIC_FILES_CHKSUM = "file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
16 | 16 | ||
17 | UBOOT_SRC ?= "${EMB_UBOOT_MIRROR};protocol=ssh" | 17 | UBOOT_SRC ?= "${EMB_UBOOT_MIRROR};protocol=ssh" |
18 | SRCBRANCH = "smarc_8mm-imx_v2020.04_5.4.24_2.1.0" | 18 | SRCBRANCH = "smarc_8mm-imx_v2020.04_5.4.24_2.1.0" |
19 | SRC_URI = "${UBOOT_SRC};branch=${SRCBRANCH}" | 19 | SRC_URI = "${UBOOT_SRC};branch=${SRCBRANCH}" |
20 | SRCREV = "2d41934ee1ca738d6a2083dc43304fa55ff5e547" | 20 | SRCREV = "08777eac22ea144be72461220611276b844b9773" |
21 | 21 | ||
22 | S = "${WORKDIR}/git" | 22 | S = "${WORKDIR}/git" |
23 | 23 | ||
24 | inherit fsl-u-boot-localversion | 24 | inherit fsl-u-boot-localversion |
25 | 25 | ||
26 | LOCALVERSION ?= "-${SRCBRANCH}" | 26 | LOCALVERSION ?= "-${SRCBRANCH}" |
27 | 27 | ||
28 | BOOT_TOOLS = "imx-boot-tools" | 28 | BOOT_TOOLS = "imx-boot-tools" |
29 | 29 | ||
30 | do_deploy_append_mx8m () { | 30 | do_deploy_append_mx8m () { |
31 | # Deploy the mkimage, u-boot-nodtb.bin and imx8mm-XX.dtb for mkimage to generate boot binary | 31 | # Deploy the mkimage, u-boot-nodtb.bin and imx8mm-XX.dtb for mkimage to generate boot binary |
32 | if [ -n "${UBOOT_CONFIG}" ] | 32 | if [ -n "${UBOOT_CONFIG}" ] |
33 | then | 33 | then |
34 | for config in ${UBOOT_MACHINE}; do | 34 | for config in ${UBOOT_MACHINE}; do |
35 | i=$(expr $i + 1); | 35 | i=$(expr $i + 1); |
36 | for type in ${UBOOT_CONFIG}; do | 36 | for type in ${UBOOT_CONFIG}; do |
37 | j=$(expr $j + 1); | 37 | j=$(expr $j + 1); |
38 | if [ $j -eq $i ] | 38 | if [ $j -eq $i ] |
39 | then | 39 | then |
40 | install -d ${DEPLOYDIR}/${BOOT_TOOLS} | 40 | install -d ${DEPLOYDIR}/${BOOT_TOOLS} |
41 | install -m 0777 ${B}/${config}/arch/arm/dts/${UBOOT_DTB_NAME} ${DEPLOYDIR}/${BOOT_TOOLS} | 41 | install -m 0777 ${B}/${config}/arch/arm/dts/${UBOOT_DTB_NAME} ${DEPLOYDIR}/${BOOT_TOOLS} |
42 | install -m 0777 ${B}/${config}/u-boot-nodtb.bin ${DEPLOYDIR}/${BOOT_TOOLS}/u-boot-nodtb.bin-${MACHINE}-${UBOOT_CONFIG} | 42 | install -m 0777 ${B}/${config}/u-boot-nodtb.bin ${DEPLOYDIR}/${BOOT_TOOLS}/u-boot-nodtb.bin-${MACHINE}-${UBOOT_CONFIG} |
43 | fi | 43 | fi |
44 | done | 44 | done |
45 | unset j | 45 | unset j |
46 | done | 46 | done |
47 | unset i | 47 | unset i |
48 | fi | 48 | fi |
49 | 49 | ||
50 | } | 50 | } |
51 | 51 | ||
52 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 52 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
53 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" | 53 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" |
54 | 54 | ||
55 | UBOOT_NAME_mx6 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" | 55 | UBOOT_NAME_mx6 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" |
56 | UBOOT_NAME_mx7 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" | 56 | UBOOT_NAME_mx7 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" |
57 | UBOOT_NAME_mx8 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" | 57 | UBOOT_NAME_mx8 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" |
58 | 58 |