diff options
author | Trevor Woerner <trevor.woerner@amd.com> | 2024-12-05 21:45:17 -0500 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2025-03-30 14:16:06 -0600 |
commit | b70c24375d09ac6fb9a84d32f66c45277dddb2fc (patch) | |
tree | e959c37c76b0540a075eca46d846e1c09e3e8fe4 | |
parent | f88e0385addaf53cb478e628d1ce729ab5c7f964 (diff) | |
download | meta-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>
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 | |||
55 | WKS_FILE_DEPENDS ?= "${WKS_FILE_DEPENDS_DEFAULT} ${WKS_FILE_DEPENDS_BOOTLOADERS}" | 55 | WKS_FILE_DEPENDS ?= "${WKS_FILE_DEPENDS_DEFAULT} ${WKS_FILE_DEPENDS_BOOTLOADERS}" |
56 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'boot.bin', ' virtual/boot-bin', '', d)}" | 56 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'boot.bin', ' virtual/boot-bin', '', d)}" |
57 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'system.dtb', ' virtual/dtb', '', d)}" | 57 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'system.dtb', ' virtual/dtb', '', d)}" |
58 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'boot.scr', ' u-boot-xlnx-scr', '', d)}" | 58 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'boot.scr', ' ${UBOOT_BOOT_SCRIPT}', '', d)}" |
59 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'uEnv.txt', ' u-boot-xlnx-uenv', '', d)}" | 59 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'uEnv.txt', ' u-boot-xlnx-uenv', '', d)}" |
60 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'Image', ' virtual/kernel', '', d)}" | 60 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'Image', ' virtual/kernel', '', d)}" |
61 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'uImage', ' virtual/kernel', '', d)}" | 61 | WKS_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 |
66 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'boot.bin', ' ${PREFERRED_PROVIDER_virtual/boot-bin}', '', d)}" | 66 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'boot.bin', ' ${PREFERRED_PROVIDER_virtual/boot-bin}', '', d)}" |
67 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'system.dtb', ' ${PREFERRED_PROVIDER_virtual/dtb}', '', d)}" | 67 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'system.dtb', ' ${PREFERRED_PROVIDER_virtual/dtb}', '', d)}" |
68 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'boot.scr', ' u-boot-xlnx-scr', '', d)}" | 68 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'boot.scr', ' ${UBOOT_BOOT_SCRIPT}', '', d)}" |
69 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'uEnv.txt', ' u-boot-xlnx-uenv', '', d)}" | 69 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'uEnv.txt', ' u-boot-xlnx-uenv', '', d)}" |
70 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'Image', ' kernel-image-image', '', d)}" | 70 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'Image', ' kernel-image-image', '', d)}" |
71 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'uImage', ' kernel-image-uimage', '', d)}" | 71 | MACHINE_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 = "" | |||
44 | KERNEL_IMAGETYPE ?= "linux.bin.ub" | 44 | KERNEL_IMAGETYPE ?= "linux.bin.ub" |
45 | KERNEL_IMAGETYPES = "" | 45 | KERNEL_IMAGETYPES = "" |
46 | 46 | ||
47 | UBOOT_BOOT_SCRIPT ?= "u-boot-xlnx-scr" | ||
47 | EXTRA_IMAGEDEPENDS += " \ | 48 | EXTRA_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 | ||
53 | IMAGE_FSTYPES += "cpio.gz" | 54 | IMAGE_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 |
36 | IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz.u-boot.qemu-sd-fatimg'}" | 36 | IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz.u-boot.qemu-sd-fatimg'}" |
37 | 37 | ||
38 | UBOOT_BOOT_SCRIPT ?= "u-boot-xlnx-scr" | ||
38 | EXTRA_IMAGEDEPENDS += " \ | 39 | EXTRA_IMAGEDEPENDS += " \ |
39 | u-boot-xlnx-scr \ | 40 | ${UBOOT_BOOT_SCRIPT} \ |
40 | " | 41 | " |
41 | 42 | ||
42 | IMAGE_BOOT_FILES += " \ | 43 | IMAGE_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 |
36 | IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz.u-boot.qemu-sd-fatimg'}" | 36 | IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz.u-boot.qemu-sd-fatimg'}" |
37 | 37 | ||
38 | UBOOT_BOOT_SCRIPT ?= "u-boot-xlnx-scr" | ||
38 | EXTRA_IMAGEDEPENDS += " \ | 39 | EXTRA_IMAGEDEPENDS += " \ |
39 | u-boot-xlnx-scr \ | 40 | ${UBOOT_BOOT_SCRIPT} \ |
40 | " | 41 | " |
41 | 42 | ||
42 | IMAGE_BOOT_FILES += " \ | 43 | IMAGE_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 | ||
29 | MACHINE_FEATURES += "rtc ext2 ext3 vfat usbhost usbgadget" | 29 | MACHINE_FEATURES += "rtc ext2 ext3 vfat usbhost usbgadget" |
30 | 30 | ||
31 | UBOOT_BOOT_SCRIPT ?= "u-boot-xlnx-scr" | ||
31 | EXTRA_IMAGEDEPENDS += " \ | 32 | EXTRA_IMAGEDEPENDS += " \ |
32 | u-boot-xlnx-scr \ | 33 | ${UBOOT_BOOT_SCRIPT} \ |
33 | " | 34 | " |
34 | 35 | ||
35 | IMAGE_BOOT_FILES += " \ | 36 | IMAGE_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 |
44 | IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz.u-boot'}" | 44 | IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz.u-boot'}" |
45 | 45 | ||
46 | UBOOT_BOOT_SCRIPT ?= "u-boot-xlnx-scr" | ||
46 | EXTRA_IMAGEDEPENDS += " \ | 47 | EXTRA_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 | ||
52 | IMAGE_BOOT_FILES += " \ | 53 | IMAGE_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 | ||
21 | PROVIDES = "virtual/boot-bin" | 21 | PROVIDES = "virtual/boot-bin" |
22 | 22 | ||
23 | DEPENDS += "bootgen-native u-boot-xlnx-scr" | 23 | DEPENDS += "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 | ||
51 | QEMU_FLASH_TYPE ?= "qspi" | 51 | QEMU_FLASH_TYPE ?= "qspi" |
52 | BOOTSCR_DEP = '' | 52 | BOOTSCR_DEP = '' |
53 | BOOTSCR_DEP:versal = 'u-boot-xlnx-scr:do_deploy' | 53 | BOOTSCR_DEP:versal = '${UBOOT_BOOT_SCRIPT}:do_deploy' |
54 | BOOTSCR_DEP:versal-net = 'u-boot-xlnx-scr:do_deploy' | 54 | BOOTSCR_DEP:versal-net = 'u-boot-xlnx-scr:do_deploy' |
55 | 55 | ||
56 | BIF_BITSTREAM_ATTR ?= "${@bb.utils.contains('MACHINE_FEATURES', 'fpga-overlay', '', 'bitstream', d)}" | 56 | BIF_BITSTREAM_ATTR ?= "${@bb.utils.contains('MACHINE_FEATURES', 'fpga-overlay', '', 'bitstream', d)}" |