summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrevor Woerner <trevor.woerner@amd.com>2024-12-05 21:45:17 -0500
committerMark Hatle <mark.hatle@amd.com>2025-03-30 14:16:06 -0600
commitb70c24375d09ac6fb9a84d32f66c45277dddb2fc (patch)
treee959c37c76b0540a075eca46d846e1c09e3e8fe4
parentf88e0385addaf53cb478e628d1ce729ab5c7f964 (diff)
downloadmeta-xilinx-b70c24375d09ac6fb9a84d32f66c45277dddb2fc.tar.gz
u-boot boot script variable
Many parts of the build assume the u-boot script will be supplied by u-boot-xlnx-scr. The script will be supplied, instead, by the variable UBOOT_BOOT_SCRIPT, whose default value is u-boot-xlnx-scr. Signed-off-by: Trevor Woerner <trevor.woerner@amd.com> Extend change from just versal to all systems. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r--meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc4
-rw-r--r--meta-xilinx-core/conf/machine/microblaze-generic.conf3
-rw-r--r--meta-xilinx-core/conf/machine/versal-generic.conf3
-rw-r--r--meta-xilinx-core/conf/machine/versal-net-generic.conf3
-rw-r--r--meta-xilinx-core/conf/machine/zynq-generic.conf3
-rw-r--r--meta-xilinx-core/conf/machine/zynqmp-generic.conf3
-rw-r--r--meta-xilinx-core/recipes-bsp/bootbin/xilinx-bootbin_1.0.bb4
7 files changed, 14 insertions, 9 deletions
diff --git a/meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc b/meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc
index cf890a51..e6e8dd6d 100644
--- a/meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc
+++ b/meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc
@@ -55,7 +55,7 @@ IMAGE_BOOT_FILES_INSTALLED = "${@' '.join([x.split(';')[-1] for x in d.getVar('I
55WKS_FILE_DEPENDS ?= "${WKS_FILE_DEPENDS_DEFAULT} ${WKS_FILE_DEPENDS_BOOTLOADERS}" 55WKS_FILE_DEPENDS ?= "${WKS_FILE_DEPENDS_DEFAULT} ${WKS_FILE_DEPENDS_BOOTLOADERS}"
56WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'boot.bin', ' virtual/boot-bin', '', d)}" 56WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'boot.bin', ' virtual/boot-bin', '', d)}"
57WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'system.dtb', ' virtual/dtb', '', d)}" 57WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'system.dtb', ' virtual/dtb', '', d)}"
58WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'boot.scr', ' u-boot-xlnx-scr', '', d)}" 58WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'boot.scr', ' ${UBOOT_BOOT_SCRIPT}', '', d)}"
59WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'uEnv.txt', ' u-boot-xlnx-uenv', '', d)}" 59WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'uEnv.txt', ' u-boot-xlnx-uenv', '', d)}"
60WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'Image', ' virtual/kernel', '', d)}" 60WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'Image', ' virtual/kernel', '', d)}"
61WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'uImage', ' virtual/kernel', '', d)}" 61WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'uImage', ' virtual/kernel', '', d)}"
@@ -65,7 +65,7 @@ WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', '${INITR
65# Automatically add IMAGE_BOOT_FILES to /boot via packages 65# Automatically add IMAGE_BOOT_FILES to /boot via packages
66MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'boot.bin', ' ${PREFERRED_PROVIDER_virtual/boot-bin}', '', d)}" 66MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'boot.bin', ' ${PREFERRED_PROVIDER_virtual/boot-bin}', '', d)}"
67MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'system.dtb', ' ${PREFERRED_PROVIDER_virtual/dtb}', '', d)}" 67MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'system.dtb', ' ${PREFERRED_PROVIDER_virtual/dtb}', '', d)}"
68MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'boot.scr', ' u-boot-xlnx-scr', '', d)}" 68MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'boot.scr', ' ${UBOOT_BOOT_SCRIPT}', '', d)}"
69MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'uEnv.txt', ' u-boot-xlnx-uenv', '', d)}" 69MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'uEnv.txt', ' u-boot-xlnx-uenv', '', d)}"
70MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'Image', ' kernel-image-image', '', d)}" 70MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'Image', ' kernel-image-image', '', d)}"
71MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'uImage', ' kernel-image-uimage', '', d)}" 71MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'uImage', ' kernel-image-uimage', '', d)}"
diff --git a/meta-xilinx-core/conf/machine/microblaze-generic.conf b/meta-xilinx-core/conf/machine/microblaze-generic.conf
index 39059511..9af5e83b 100644
--- a/meta-xilinx-core/conf/machine/microblaze-generic.conf
+++ b/meta-xilinx-core/conf/machine/microblaze-generic.conf
@@ -44,10 +44,11 @@ MACHINE_FEATURES = ""
44KERNEL_IMAGETYPE ?= "linux.bin.ub" 44KERNEL_IMAGETYPE ?= "linux.bin.ub"
45KERNEL_IMAGETYPES = "" 45KERNEL_IMAGETYPES = ""
46 46
47UBOOT_BOOT_SCRIPT ?= "u-boot-xlnx-scr"
47EXTRA_IMAGEDEPENDS += " \ 48EXTRA_IMAGEDEPENDS += " \
48 virtual/bootloader \ 49 virtual/bootloader \
49 virtual/elfrealloc \ 50 virtual/elfrealloc \
50 u-boot-xlnx-scr \ 51 ${UBOOT_BOOT_SCRIPT} \
51 " 52 "
52 53
53IMAGE_FSTYPES += "cpio.gz" 54IMAGE_FSTYPES += "cpio.gz"
diff --git a/meta-xilinx-core/conf/machine/versal-generic.conf b/meta-xilinx-core/conf/machine/versal-generic.conf
index 9aa47892..80ad17b9 100644
--- a/meta-xilinx-core/conf/machine/versal-generic.conf
+++ b/meta-xilinx-core/conf/machine/versal-generic.conf
@@ -35,8 +35,9 @@ IMAGE_CLASSES += "image-types-xilinx-qemu"
35# Add wic.qemu-sd only if initramfs_image not set due to circular dependecies 35# Add wic.qemu-sd only if initramfs_image not set due to circular dependecies
36IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz.u-boot.qemu-sd-fatimg'}" 36IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz.u-boot.qemu-sd-fatimg'}"
37 37
38UBOOT_BOOT_SCRIPT ?= "u-boot-xlnx-scr"
38EXTRA_IMAGEDEPENDS += " \ 39EXTRA_IMAGEDEPENDS += " \
39 u-boot-xlnx-scr \ 40 ${UBOOT_BOOT_SCRIPT} \
40 " 41 "
41 42
42IMAGE_BOOT_FILES += " \ 43IMAGE_BOOT_FILES += " \
diff --git a/meta-xilinx-core/conf/machine/versal-net-generic.conf b/meta-xilinx-core/conf/machine/versal-net-generic.conf
index b26fb5e1..83ec54b6 100644
--- a/meta-xilinx-core/conf/machine/versal-net-generic.conf
+++ b/meta-xilinx-core/conf/machine/versal-net-generic.conf
@@ -35,8 +35,9 @@ IMAGE_CLASSES += "image-types-xilinx-qemu"
35# Add wic.qemu-sd only if initramfs_image not set due to circular dependecies 35# Add wic.qemu-sd only if initramfs_image not set due to circular dependecies
36IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz.u-boot.qemu-sd-fatimg'}" 36IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz.u-boot.qemu-sd-fatimg'}"
37 37
38UBOOT_BOOT_SCRIPT ?= "u-boot-xlnx-scr"
38EXTRA_IMAGEDEPENDS += " \ 39EXTRA_IMAGEDEPENDS += " \
39 u-boot-xlnx-scr \ 40 ${UBOOT_BOOT_SCRIPT} \
40 " 41 "
41 42
42IMAGE_BOOT_FILES += " \ 43IMAGE_BOOT_FILES += " \
diff --git a/meta-xilinx-core/conf/machine/zynq-generic.conf b/meta-xilinx-core/conf/machine/zynq-generic.conf
index 8442e4e3..661b3340 100644
--- a/meta-xilinx-core/conf/machine/zynq-generic.conf
+++ b/meta-xilinx-core/conf/machine/zynq-generic.conf
@@ -28,8 +28,9 @@ require conf/machine/include/machine-xilinx-qemu.inc
28 28
29MACHINE_FEATURES += "rtc ext2 ext3 vfat usbhost usbgadget" 29MACHINE_FEATURES += "rtc ext2 ext3 vfat usbhost usbgadget"
30 30
31UBOOT_BOOT_SCRIPT ?= "u-boot-xlnx-scr"
31EXTRA_IMAGEDEPENDS += " \ 32EXTRA_IMAGEDEPENDS += " \
32 u-boot-xlnx-scr \ 33 ${UBOOT_BOOT_SCRIPT} \
33 " 34 "
34 35
35IMAGE_BOOT_FILES += " \ 36IMAGE_BOOT_FILES += " \
diff --git a/meta-xilinx-core/conf/machine/zynqmp-generic.conf b/meta-xilinx-core/conf/machine/zynqmp-generic.conf
index 15a48102..ec17c297 100644
--- a/meta-xilinx-core/conf/machine/zynqmp-generic.conf
+++ b/meta-xilinx-core/conf/machine/zynqmp-generic.conf
@@ -43,10 +43,11 @@ IMAGE_CLASSES += "image-types-xilinx-qemu"
43# Add wic.qemu-sd only if initramfs_image not set due to circular dependecies 43# Add wic.qemu-sd only if initramfs_image not set due to circular dependecies
44IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz.u-boot'}" 44IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz.u-boot'}"
45 45
46UBOOT_BOOT_SCRIPT ?= "u-boot-xlnx-scr"
46EXTRA_IMAGEDEPENDS += " \ 47EXTRA_IMAGEDEPENDS += " \
47 virtual/bootloader \ 48 virtual/bootloader \
48 u-boot-xlnx-uenv \ 49 u-boot-xlnx-uenv \
49 u-boot-xlnx-scr \ 50 ${UBOOT_BOOT_SCRIPT} \
50 " 51 "
51 52
52IMAGE_BOOT_FILES += " \ 53IMAGE_BOOT_FILES += " \
diff --git a/meta-xilinx-core/recipes-bsp/bootbin/xilinx-bootbin_1.0.bb b/meta-xilinx-core/recipes-bsp/bootbin/xilinx-bootbin_1.0.bb
index b9236f55..80696176 100644
--- a/meta-xilinx-core/recipes-bsp/bootbin/xilinx-bootbin_1.0.bb
+++ b/meta-xilinx-core/recipes-bsp/bootbin/xilinx-bootbin_1.0.bb
@@ -20,7 +20,7 @@ COMPATIBLE_MACHINE:versal-net = ".*"
20 20
21PROVIDES = "virtual/boot-bin" 21PROVIDES = "virtual/boot-bin"
22 22
23DEPENDS += "bootgen-native u-boot-xlnx-scr" 23DEPENDS += "bootgen-native ${UBOOT_BOOT_SCRIPT}"
24 24
25# There is no bitstream recipe, so really depend on virtual/bitstream 25# There is no bitstream recipe, so really depend on virtual/bitstream
26# We need to refer to virtual/arm-trusted-firmware and not arm-trusted-firmware as there may be multiple providers 26# We need to refer to virtual/arm-trusted-firmware and not arm-trusted-firmware as there may be multiple providers
@@ -50,7 +50,7 @@ BOOTGEN_EXTRA_ARGS ?= ""
50 50
51QEMU_FLASH_TYPE ?= "qspi" 51QEMU_FLASH_TYPE ?= "qspi"
52BOOTSCR_DEP = '' 52BOOTSCR_DEP = ''
53BOOTSCR_DEP:versal = 'u-boot-xlnx-scr:do_deploy' 53BOOTSCR_DEP:versal = '${UBOOT_BOOT_SCRIPT}:do_deploy'
54BOOTSCR_DEP:versal-net = 'u-boot-xlnx-scr:do_deploy' 54BOOTSCR_DEP:versal-net = 'u-boot-xlnx-scr:do_deploy'
55 55
56BIF_BITSTREAM_ATTR ?= "${@bb.utils.contains('MACHINE_FEATURES', 'fpga-overlay', '', 'bitstream', d)}" 56BIF_BITSTREAM_ATTR ?= "${@bb.utils.contains('MACHINE_FEATURES', 'fpga-overlay', '', 'bitstream', d)}"