diff options
author | Mark Hatle <mark.hatle@amd.com> | 2023-05-16 13:23:00 -0700 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2023-05-17 08:35:26 -0500 |
commit | 7d8e39084a7db11c267a2ecd10d2deceba02b20c (patch) | |
tree | 4f2d36ffabc1e98812eea9745c54199bdf411b63 | |
parent | 3ddf0cd24931bcd42fff57fbf4b3adc379dc4949 (diff) | |
download | meta-xilinx-7d8e39084a7db11c267a2ecd10d2deceba02b20c.tar.gz |
*-generic.conf: Fix hardcoded dependencies in the generic machines
Each of these dependencies need to be based on preferred_provider.
A hard dependency on u-boot-xlnx-uenv is not required to use qemu.
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
4 files changed, 4 insertions, 6 deletions
diff --git a/meta-xilinx-core/conf/machine/microblaze-generic.conf b/meta-xilinx-core/conf/machine/microblaze-generic.conf index 2589da04..db1476ed 100644 --- a/meta-xilinx-core/conf/machine/microblaze-generic.conf +++ b/meta-xilinx-core/conf/machine/microblaze-generic.conf | |||
@@ -70,7 +70,7 @@ MACHINE_FEATURES = "" | |||
70 | KERNEL_IMAGETYPE ?= "linux.bin.ub" | 70 | KERNEL_IMAGETYPE ?= "linux.bin.ub" |
71 | KERNEL_IMAGETYPES = "" | 71 | KERNEL_IMAGETYPES = "" |
72 | 72 | ||
73 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" | 73 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "${PREFERRED_PROVIDER_virtual/dtb}" |
74 | 74 | ||
75 | IMAGE_BOOT_FILES += " \ | 75 | IMAGE_BOOT_FILES += " \ |
76 | ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/dtb', 'device-tree', 'system.dtb', '', d)} \ | 76 | ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/dtb', 'device-tree', 'system.dtb', '', d)} \ |
diff --git a/meta-xilinx-core/conf/machine/versal-generic.conf b/meta-xilinx-core/conf/machine/versal-generic.conf index e44e99f2..3bf38b23 100644 --- a/meta-xilinx-core/conf/machine/versal-generic.conf +++ b/meta-xilinx-core/conf/machine/versal-generic.conf | |||
@@ -47,7 +47,7 @@ HDF_MACHINE = "vck190-versal" | |||
47 | 47 | ||
48 | MACHINE_FEATURES += "rtc ext2 ext3 vfat usbhost" | 48 | MACHINE_FEATURES += "rtc ext2 ext3 vfat usbhost" |
49 | 49 | ||
50 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" | 50 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "${PREFERRED_PROVIDER_virtual/dtb}" |
51 | 51 | ||
52 | # Default SD image build onfiguration, use qemu-sd to pad | 52 | # Default SD image build onfiguration, use qemu-sd to pad |
53 | IMAGE_CLASSES += "image-types-xilinx-qemu" | 53 | IMAGE_CLASSES += "image-types-xilinx-qemu" |
diff --git a/meta-xilinx-core/conf/machine/zynq-generic.conf b/meta-xilinx-core/conf/machine/zynq-generic.conf index df82a683..0409e4ba 100644 --- a/meta-xilinx-core/conf/machine/zynq-generic.conf +++ b/meta-xilinx-core/conf/machine/zynq-generic.conf | |||
@@ -46,7 +46,7 @@ HDF_MACHINE = "zc702-zynq7" | |||
46 | 46 | ||
47 | MACHINE_FEATURES += "rtc ext2 ext3 vfat usbhost usbgadget" | 47 | MACHINE_FEATURES += "rtc ext2 ext3 vfat usbhost usbgadget" |
48 | 48 | ||
49 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" | 49 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "${PREFERRED_PROVIDER_virtual/dtb}" |
50 | 50 | ||
51 | EXTRA_IMAGEDEPENDS += " \ | 51 | EXTRA_IMAGEDEPENDS += " \ |
52 | libyaml-native \ | 52 | libyaml-native \ |
diff --git a/meta-xilinx-core/conf/machine/zynqmp-generic.conf b/meta-xilinx-core/conf/machine/zynqmp-generic.conf index d24da3b4..5faa3095 100644 --- a/meta-xilinx-core/conf/machine/zynqmp-generic.conf +++ b/meta-xilinx-core/conf/machine/zynqmp-generic.conf | |||
@@ -65,7 +65,7 @@ IMAGE_CLASSES += "image-types-xilinx-qemu" | |||
65 | # Add wic.qemu-sd only if initramfs_image not set due to circular dependecies | 65 | # Add wic.qemu-sd only if initramfs_image not set due to circular dependecies |
66 | IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz.u-boot'}" | 66 | IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz.u-boot'}" |
67 | 67 | ||
68 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" | 68 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "${PREFERRED_PROVIDER_virtual/dtb}" |
69 | 69 | ||
70 | EXTRA_IMAGEDEPENDS += " \ | 70 | EXTRA_IMAGEDEPENDS += " \ |
71 | libyaml-native \ | 71 | libyaml-native \ |
@@ -150,8 +150,6 @@ QB_PMU_OPT = " \ | |||
150 | 150 | ||
151 | QB_OPT_APPEND += " -pmu-args '${QB_PMU_OPT}'" | 151 | QB_OPT_APPEND += " -pmu-args '${QB_PMU_OPT}'" |
152 | 152 | ||
153 | do_write_qemuboot_conf[depends] += "u-boot-xlnx-uenv:do_deploy" | ||
154 | |||
155 | #### No additional settings should be after the Postamble | 153 | #### No additional settings should be after the Postamble |
156 | #### Postamble | 154 | #### Postamble |
157 | PACKAGE_EXTRA_ARCHS:append = "${@['', ' zynqmp_generic']['zynqmp-generic' != "${MACHINE}"]}" | 155 | PACKAGE_EXTRA_ARCHS:append = "${@['', ' zynqmp_generic']['zynqmp-generic' != "${MACHINE}"]}" |