Commit 5505f04627329219250e7704875d185a9b6cc1f0
1 parent
a90e720b9a
Exists in
kirtstone-5.15.71_2.2.0
Add 6GB LPDDR4 pITX board support
Showing 1 changed file with 1 additions and 1 deletions Inline Diff
recipes-bsp/u-boot/u-boot-imx_2022.04.bb
1 | # Copyright (C) 2013-2016 Freescale Semiconductor | 1 | # Copyright (C) 2013-2016 Freescale Semiconductor |
2 | # Copyright 2018 (C) O.S. Systems Software LTDA. | 2 | # Copyright 2018 (C) O.S. Systems Software LTDA. |
3 | # Copyright 2017-2022 NXP | 3 | # Copyright 2017-2022 NXP |
4 | # Copyright 2023 Embedian | 4 | # Copyright 2023 Embedian |
5 | 5 | ||
6 | require recipes-bsp/u-boot/u-boot.inc | 6 | require recipes-bsp/u-boot/u-boot.inc |
7 | require recipes-bsp/u-boot/u-boot-imx-common_${PV}.inc | 7 | require recipes-bsp/u-boot/u-boot-imx-common_${PV}.inc |
8 | 8 | ||
9 | ############################################################### | 9 | ############################################################### |
10 | # BEGIN: Changes to u-boot-imx-common_${PV}.inc | 10 | # BEGIN: Changes to u-boot-imx-common_${PV}.inc |
11 | 11 | ||
12 | LIC_FILES_CHKSUM = "file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263" | 12 | LIC_FILES_CHKSUM = "file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
13 | 13 | ||
14 | # Use Github as U-Boot source repo | 14 | # Use Github as U-Boot source repo |
15 | # UBOOT_SRC ?= "git://github.com/embedian/smarc-uboot.git;protocol=https" | 15 | # UBOOT_SRC ?= "git://github.com/embedian/smarc-uboot.git;protocol=https" |
16 | UBOOT_SRC ?= "git://git@git.embedian.com/developer/smarc-t335x-uboot.git;protocol=ssh" | 16 | UBOOT_SRC ?= "git://git@git.embedian.com/developer/smarc-t335x-uboot.git;protocol=ssh" |
17 | SRCBRANCH = "emb_lf_v2022.04" | 17 | SRCBRANCH = "emb_lf_v2022.04" |
18 | SRC_URI = "${UBOOT_SRC};branch=${SRCBRANCH}" | 18 | SRC_URI = "${UBOOT_SRC};branch=${SRCBRANCH}" |
19 | SRCREV = "d37704c6b2b2ea9253773a888804eebc5ea4b2c7" | 19 | SRCREV = "9a2da0b15d2a8a86385105b573be32d040a54859" |
20 | LOCALVERSION = "-1.0.0+yocto" | 20 | LOCALVERSION = "-1.0.0+yocto" |
21 | 21 | ||
22 | DEPENDS += "gnutls-native xxd-native" | 22 | DEPENDS += "gnutls-native xxd-native" |
23 | 23 | ||
24 | # END: Changes to u-boot-imx-common_${PV}.inc | 24 | # END: Changes to u-boot-imx-common_${PV}.inc |
25 | ############################################################### | 25 | ############################################################### |
26 | 26 | ||
27 | PROVIDES += "u-boot" | 27 | PROVIDES += "u-boot" |
28 | 28 | ||
29 | inherit uuu_bootloader_tag | 29 | inherit uuu_bootloader_tag |
30 | 30 | ||
31 | UUU_BOOTLOADER = "" | 31 | UUU_BOOTLOADER = "" |
32 | UUU_BOOTLOADER:mx6-nxp-bsp = "${UBOOT_BINARY}" | 32 | UUU_BOOTLOADER:mx6-nxp-bsp = "${UBOOT_BINARY}" |
33 | UUU_BOOTLOADER:mx7-nxp-bsp = "${UBOOT_BINARY}" | 33 | UUU_BOOTLOADER:mx7-nxp-bsp = "${UBOOT_BINARY}" |
34 | UUU_BOOTLOADER_TAGGED = "" | 34 | UUU_BOOTLOADER_TAGGED = "" |
35 | UUU_BOOTLOADER_TAGGED:mx6-nxp-bsp = "u-boot-tagged.${UBOOT_SUFFIX}" | 35 | UUU_BOOTLOADER_TAGGED:mx6-nxp-bsp = "u-boot-tagged.${UBOOT_SUFFIX}" |
36 | UUU_BOOTLOADER_TAGGED:mx7-nxp-bsp = "u-boot-tagged.${UBOOT_SUFFIX}" | 36 | UUU_BOOTLOADER_TAGGED:mx7-nxp-bsp = "u-boot-tagged.${UBOOT_SUFFIX}" |
37 | 37 | ||
38 | do_deploy:append:mx8m-nxp-bsp() { | 38 | do_deploy:append:mx8m-nxp-bsp() { |
39 | # Deploy u-boot-nodtb.bin and fsl-imx8m*-XX.dtb for mkimage to generate boot binary | 39 | # Deploy u-boot-nodtb.bin and fsl-imx8m*-XX.dtb for mkimage to generate boot binary |
40 | if [ -n "${UBOOT_CONFIG}" ] | 40 | if [ -n "${UBOOT_CONFIG}" ] |
41 | then | 41 | then |
42 | for config in ${UBOOT_MACHINE}; do | 42 | for config in ${UBOOT_MACHINE}; do |
43 | i=$(expr $i + 1); | 43 | i=$(expr $i + 1); |
44 | for type in ${UBOOT_CONFIG}; do | 44 | for type in ${UBOOT_CONFIG}; do |
45 | j=$(expr $j + 1); | 45 | j=$(expr $j + 1); |
46 | if [ $j -eq $i ] | 46 | if [ $j -eq $i ] |
47 | then | 47 | then |
48 | install -d ${DEPLOYDIR}/${BOOT_TOOLS} | 48 | install -d ${DEPLOYDIR}/${BOOT_TOOLS} |
49 | install -m 0777 ${B}/${config}/arch/arm/dts/${UBOOT_DTB_NAME} ${DEPLOYDIR}/${BOOT_TOOLS} | 49 | install -m 0777 ${B}/${config}/arch/arm/dts/${UBOOT_DTB_NAME} ${DEPLOYDIR}/${BOOT_TOOLS} |
50 | install -m 0777 ${B}/${config}/u-boot-nodtb.bin ${DEPLOYDIR}/${BOOT_TOOLS}/u-boot-nodtb.bin-${MACHINE}-${type} | 50 | install -m 0777 ${B}/${config}/u-boot-nodtb.bin ${DEPLOYDIR}/${BOOT_TOOLS}/u-boot-nodtb.bin-${MACHINE}-${type} |
51 | fi | 51 | fi |
52 | done | 52 | done |
53 | unset j | 53 | unset j |
54 | done | 54 | done |
55 | unset i | 55 | unset i |
56 | fi | 56 | fi |
57 | } | 57 | } |
58 | 58 | ||
59 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 59 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
60 | COMPATIBLE_MACHINE = "(mx6-generic-bsp|mx7-generic-bsp|mx8-generic-bsp|mx9-generic-bsp)" | 60 | COMPATIBLE_MACHINE = "(mx6-generic-bsp|mx7-generic-bsp|mx8-generic-bsp|mx9-generic-bsp)" |
61 | 61 |