Commit 42b7ca7de6bc21a3ccd0ecc430543df0aa062629
1 parent
12a1b0cd35
Exists in
8mq_5.10.9_1.0.0_gatesgarth
Correct U-Boot LPDDR4 4G config setting
Showing 1 changed file with 1 additions and 1 deletions Inline Diff
recipes-bsp/u-boot/u-boot-smarcimx8mp_2020.04.bb
1 | # Copyright (C) 2013-2016 Freescale Semiconductor | 1 | # Copyright (C) 2013-2016 Freescale Semiconductor |
2 | # Copyright 2017-2021 NXP | 2 | # Copyright 2017-2021 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_8mp_lf_v2020.04" | 18 | SRCBRANCH = "smarc_8mp_lf_v2020.04" |
19 | SRC_URI = "${UBOOT_SRC};branch=${SRCBRANCH}" | 19 | SRC_URI = "${UBOOT_SRC};branch=${SRCBRANCH}" |
20 | SRCREV = "57e535649cba0900d49c3a06ddb7b3c15b900255" | 20 | SRCREV = "7beba4bebec05d10bfe314e6a47e34d42296a100" |
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 ?= "-5.10.9-1.0.0" | 26 | LOCALVERSION ?= "-5.10.9-1.0.0" |
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 u-boot-nodtb.bin and fsl-imx8mq-XX.dtb, to be packaged in boot binary by imx-boot | 31 | # Deploy u-boot-nodtb.bin and fsl-imx8mq-XX.dtb, to be packaged in boot binary by imx-boot |
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}-${type} | 42 | install -m 0777 ${B}/${config}/u-boot-nodtb.bin ${DEPLOYDIR}/${BOOT_TOOLS}/u-boot-nodtb.bin-${MACHINE}-${type} |
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 |