From 71690402b52357d4a2bcb074bf169a9d84b81f6a Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Wed, 9 Aug 2023 08:58:17 +0200 Subject: verdin-am62: build mainline u-boot with upstream distro Latest master of U-Boot allows building for a Verdin AM62 SoM. If using a upstream distro build the upstream u-boot-toradex recipe. Related-to: ELB-5331 Signed-off-by: Max Krummenacher --- conf/machine/verdin-am62-k3r5.conf | 7 ++++++- conf/machine/verdin-am62.conf | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/conf/machine/verdin-am62-k3r5.conf b/conf/machine/verdin-am62-k3r5.conf index ad5ab6d..0c24a57 100644 --- a/conf/machine/verdin-am62-k3r5.conf +++ b/conf/machine/verdin-am62-k3r5.conf @@ -9,12 +9,17 @@ require conf/machine/include/k3r5.inc PREFERRED_PROVIDER_virtual/bootloader = "u-boot-toradex-ti" PREFERRED_PROVIDER_u-boot = "u-boot-toradex-ti" +PREFERRED_PROVIDER_virtual/bootloader:upstream:use-head-next = "u-boot-toradex" +PREFERRED_PROVIDER_u-boot:upstream:use-head-next = "u-boot-toradex" SYSFW_SOC = "am62x" SYSFW_CONFIG = "verdin" SYSFW_SUFFIX = "gp" UBOOT_DFU_CONFIG = "dfu-gp" -UBOOT_CONFIG ??= "dfu-gp sd-gp" +# The DFU config does not (yet) exist in upstream. It is needed only +# if booting from DFU/USB. +UBOOT_DFU_CONFIG:upstream = "" +UBOOT_CONFIG ??= "${UBOOT_DFU_CONFIG} sd-gp" UBOOT_CONFIG[dfu-gp] = "verdin-am62_r5_usbdfu_defconfig,dfu,spl/u-boot-spl.bin" UBOOT_CONFIG[sd-gp] = "verdin-am62_r5_defconfig,sdcard,spl/u-boot-spl.bin" diff --git a/conf/machine/verdin-am62.conf b/conf/machine/verdin-am62.conf index 41dc30a..f17d202 100644 --- a/conf/machine/verdin-am62.conf +++ b/conf/machine/verdin-am62.conf @@ -29,6 +29,8 @@ PREFERRED_PROVIDER_virtual/gpudriver:upstream = "" PREFERRED_PROVIDER_virtual/dtb = "device-tree-overlays-ti" PREFERRED_PROVIDER_virtual/bootloader = "u-boot-toradex-ti" PREFERRED_PROVIDER_u-boot = "u-boot-toradex-ti" +PREFERRED_PROVIDER_virtual/bootloader:upstream:use-head-next = "u-boot-toradex" +PREFERRED_PROVIDER_u-boot:upstream:use-head-next = "u-boot-toradex" KERNEL_DTB_PREFIX = "ti/" KERNEL_DEVICETREE = " \ -- cgit v1.2.3