mirror of
https://github.com/Freescale/meta-freescale-3rdparty.git
synced 2025-07-19 12:09:01 +02:00

Since commit 776932e187f38ca53ed57fc662461ba0da005520 ("Rework the u-boot-fslc and u-boot-imx settings logic") in [1],
we need to override the default imx-base.inc value that uses
UBOOT_SUFFIX_pn-${IMX_DEFAULT_BOOTLOADER}
Fixes:
| ./tools/mkimage -n spl/u-boot-spl.cfgout -T imximage -e 0x00912000 -d spl/u-boot-spl.bin SPL >SPL.log && cat SPL.log
| Image Type: Freescale IMX Boot Image
| Image Ver: 2 (i.MX53/6/7 compatible)
| Mode: DCD
| Data Size: 45056 Bytes = 44.00 KiB = 0.04 MiB
| Load Address: 00911420
| Entry Point: 00912000
| make[1]: Leaving directory '/build/tmp/work/imx7d_pico-poky-linux-gnueabi/u-boot-fslc/v2021.07+gitAUTOINC+587e796995-r0/build/pico-dwarf-imx7d_defconfig'
| make: Leaving directory '/build/tmp/work/imx7d_pico-poky-linux-gnueabi/u-boot-fslc/v2021.07+gitAUTOINC+587e796995-r0/git'
| /build/tmp/work/imx7d_pico-poky-linux-gnueabi/u-boot-fslc/v2021.07+gitAUTOINC+587e796995-r0/temp/run.do_compile.1244816: 187: /build/tmp/work/imx7d_pico-poky-linux-gnueabi/u-boot-fslc/v2021.07+gitAUTOINC+587e796995-r0/temp/run.do_compile.1244816: Bad substitution
See [2]
[1] - 776932e187
[2] - https://github.com/Freescale/meta-freescale/pull/837#issuecomment-897974255
Signed-off-by: Pierre-Jean Texier <texier.pj2@gmail.com>
53 lines
1.3 KiB
Plaintext
53 lines
1.3 KiB
Plaintext
#@TYPE: Machine
|
|
#@NAME: IMX7D-PICO
|
|
#@SOC: i.MX7D
|
|
#@DESCRIPTION: Machine configuration for IMX7D-PICO board.
|
|
#@MAINTAINER: Vanessa Maegima <vanessa.maegima@nxp.com>
|
|
|
|
MACHINEOVERRIDES =. "mx7:mx7d:"
|
|
|
|
require conf/machine/include/imx-base.inc
|
|
require conf/machine/include/tune-cortexa7.inc
|
|
|
|
IMX_DEFAULT_BSP = "mainline"
|
|
IMX_DEFAULT_BOOTLOADER = "u-boot-fslc"
|
|
|
|
SERIAL_CONSOLES = "115200;ttymxc4"
|
|
|
|
KERNEL_DEVICETREE = " \
|
|
imx7d-pico-dwarf.dtb \
|
|
imx7d-pico-hobbit.dtb \
|
|
imx7d-pico-pi.dtb \
|
|
"
|
|
|
|
SPL_BINARY = "SPL"
|
|
UBOOT_BINARY = "u-boot-dtb.img"
|
|
UBOOT_SUFFIX = "img"
|
|
UBOOT_MAKE_TARGET = ""
|
|
|
|
UBOOT_CONFIG ??= "dwarf hobbit nymph pi generic"
|
|
UBOOT_CONFIG[dwarf] = "pico-dwarf-imx7d_defconfig"
|
|
UBOOT_CONFIG[generic] = "pico-imx7d_defconfig"
|
|
UBOOT_CONFIG[hobbit] = "pico-hobbit-imx7d_defconfig"
|
|
UBOOT_CONFIG[nymph] = "pico-nymph-imx7d_defconfig"
|
|
UBOOT_CONFIG[pi] = "pico-pi-imx7d_defconfig"
|
|
|
|
UBOOT_EXTLINUX = "1"
|
|
UBOOT_EXTLINUX_ROOT = "root=PARTUUID=${uuid}"
|
|
UBOOT_EXTLINUX_CONSOLE = "console=${console},${baudrate}"
|
|
|
|
MACHINE_ESSENTIAL_EXTRA_RDEPENDS += " \
|
|
kernel-image \
|
|
kernel-devicetree \
|
|
u-boot-fslc \
|
|
"
|
|
|
|
MACHINE_EXTRA_RRECOMMENDS += " \
|
|
bcm4339-nvram-config \
|
|
linux-firmware-ath10k \
|
|
"
|
|
|
|
WKS_FILES ?= "imx-uboot-spl.wks.in"
|
|
WKS_FILE_DEPENDS ?= ""
|
|
IMAGE_FSTYPES = "wic.bmap wic.xz ext4.gz"
|