diff options
Diffstat (limited to 'recipes-bsp/u-boot/u-boot-imx_2024.04.bb')
-rw-r--r-- | recipes-bsp/u-boot/u-boot-imx_2024.04.bb | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/recipes-bsp/u-boot/u-boot-imx_2024.04.bb b/recipes-bsp/u-boot/u-boot-imx_2024.04.bb new file mode 100644 index 000000000..695987801 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-imx_2024.04.bb | |||
@@ -0,0 +1,68 @@ | |||
1 | # Copyright (C) 2013-2016 Freescale Semiconductor | ||
2 | # Copyright 2018 (C) O.S. Systems Software LTDA. | ||
3 | # Copyright 2017-2024 NXP | ||
4 | |||
5 | require recipes-bsp/u-boot/u-boot.inc | ||
6 | require u-boot-imx-common_${PV}.inc | ||
7 | |||
8 | PROVIDES += "u-boot u-boot-mfgtool" | ||
9 | |||
10 | inherit uuu_bootloader_tag | ||
11 | |||
12 | # The UUU tag goes on the boot partition. For 8+, the boot partition image | ||
13 | # is imx-boot, so disable UUU-tagging here | ||
14 | UUU_BOOTLOADER:mx8-generic-bsp = "" | ||
15 | UUU_BOOTLOADER:mx9-generic-bsp = "" | ||
16 | |||
17 | TOOLCHAIN_OPTIONS:append = " -Wno-error=implicit-function-declaration" | ||
18 | |||
19 | do_deploy:append:mx8m-generic-bsp() { | ||
20 | # Deploy u-boot-nodtb.bin and fsl-imx8m*-XX.dtb for mkimage to generate boot binary | ||
21 | if [ -n "${UBOOT_CONFIG}" ] | ||
22 | then | ||
23 | for config in ${UBOOT_MACHINE}; do | ||
24 | i=$(expr $i + 1); | ||
25 | for type in ${UBOOT_CONFIG}; do | ||
26 | j=$(expr $j + 1); | ||
27 | if [ $j -eq $i ] | ||
28 | then | ||
29 | install -d ${DEPLOYDIR}/${BOOT_TOOLS} | ||
30 | install -m 0644 ${B}/${config}/u-boot-nodtb.bin ${DEPLOYDIR}/${BOOT_TOOLS}/u-boot-nodtb.bin-${MACHINE}-${type} | ||
31 | UBOOT_DTB_NAME_FLAGS="${type}:${UBOOT_DTB_NAME}" | ||
32 | for key_value in ${UBOOT_DTB_NAME_FLAGS}; do | ||
33 | local type_key="${key_value%%:*}" | ||
34 | local dtb_name="${key_value#*:}" | ||
35 | if [ "$type_key" = "$type" ] | ||
36 | then | ||
37 | bbnote "UBOOT_CONFIG = $type, UBOOT_DTB_NAME = $dtb_name" | ||
38 | # There is only one ${dtb_name}, the first one. All the other are with the type appended | ||
39 | if [ ! -f "${DEPLOYDIR}/${BOOT_TOOLS}/${dtb_name}" ]; then | ||
40 | install -m 0644 ${B}/${config}/arch/arm/dts/${dtb_name} ${DEPLOYDIR}/${BOOT_TOOLS}/${dtb_name} | ||
41 | else | ||
42 | bbwarn "Use custom wks.in for $dtb_name = $type" | ||
43 | fi | ||
44 | install -m 0644 ${B}/${config}/arch/arm/dts/${dtb_name} ${DEPLOYDIR}/${BOOT_TOOLS}/${dtb_name}-${type} | ||
45 | fi | ||
46 | unset type_key | ||
47 | unset dtb_name | ||
48 | done | ||
49 | |||
50 | unset UBOOT_DTB_NAME_FLAGS | ||
51 | fi | ||
52 | done | ||
53 | unset j | ||
54 | done | ||
55 | unset i | ||
56 | fi | ||
57 | |||
58 | # Deploy CRT.* from u-boot for stmm | ||
59 | install -m 0644 ${S}/CRT.* ${DEPLOYDIR} | ||
60 | } | ||
61 | |||
62 | do_deploy:append:mx93-generic-bsp() { | ||
63 | # Deploy CRT.* from u-boot for stmm | ||
64 | install -m 0644 ${S}/CRT.* ${DEPLOYDIR} | ||
65 | } | ||
66 | |||
67 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
68 | COMPATIBLE_MACHINE = "(mx6-generic-bsp|mx7-generic-bsp|mx8-generic-bsp|mx9-generic-bsp)" | ||