summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-core/conf/machine
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@amd.com>2022-12-01 07:45:09 -0800
committerMark Hatle <mark.hatle@amd.com>2022-12-02 08:44:13 -0600
commitaec9298ce9e3c0f3f7dbb9d01d2be2fa0d68dbba (patch)
treeaad139abf0ebfad60ff4d88e20c879b1f114ba55 /meta-xilinx-core/conf/machine
parent167593680b6b9c9c22584b99a99bbb9d9972b9e3 (diff)
downloadmeta-xilinx-aec9298ce9e3c0f3f7dbb9d01d2be2fa0d68dbba.tar.gz
xilinx-default-sd.wks: Enable a new rootfs based sd/mmc image
Switch the machine files to use the new 'xilinx-default-sd.wks' file. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-core/conf/machine')
-rw-r--r--meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc4
-rw-r--r--meta-xilinx-core/conf/machine/versal-generic.conf2
-rw-r--r--meta-xilinx-core/conf/machine/zynq-generic.conf1
-rw-r--r--meta-xilinx-core/conf/machine/zynqmp-generic.conf1
4 files changed, 3 insertions, 5 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 1f8476d9..6a0e1a2a 100644
--- a/meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc
+++ b/meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc
@@ -71,6 +71,9 @@ MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'u
71MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'zImage', ' kernel-image-zimage', '', d)}" 71MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'zImage', ' kernel-image-zimage', '', d)}"
72MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', '${INITRAMFS_IMAGE}-${MACHINE}.cpio.gz.u-boot', ' initramdisk-${INITRAMFS_IMAGE}', '', d)}" 72MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', '${INITRAMFS_IMAGE}-${MACHINE}.cpio.gz.u-boot', ' initramdisk-${INITRAMFS_IMAGE}', '', d)}"
73 73
74# Default SD card wks file, split /boot and /
75WKS_FILES ?= "xilinx-default-sd.wks"
76
74IMAGE_BOOT_FILES ?= "${@get_default_image_boot_files(d)}" 77IMAGE_BOOT_FILES ?= "${@get_default_image_boot_files(d)}"
75 78
76def get_default_image_boot_files(d): 79def get_default_image_boot_files(d):
@@ -91,7 +94,6 @@ def get_default_image_boot_files(d):
91 if "device-tree" in (d.getVar("PREFERRED_PROVIDER_virtual/dtb") or ""): 94 if "device-tree" in (d.getVar("PREFERRED_PROVIDER_virtual/dtb") or ""):
92 files.append("devicetree/*.dtb;devicetree/") 95 files.append("devicetree/*.dtb;devicetree/")
93 96
94
95 # device trees (kernel only) 97 # device trees (kernel only)
96 if d.getVar("KERNEL_DEVICETREE"): 98 if d.getVar("KERNEL_DEVICETREE"):
97 dtbs = d.getVar("KERNEL_DEVICETREE").split(" ") 99 dtbs = d.getVar("KERNEL_DEVICETREE").split(" ")
diff --git a/meta-xilinx-core/conf/machine/versal-generic.conf b/meta-xilinx-core/conf/machine/versal-generic.conf
index d7797b78..a1f0fda6 100644
--- a/meta-xilinx-core/conf/machine/versal-generic.conf
+++ b/meta-xilinx-core/conf/machine/versal-generic.conf
@@ -33,8 +33,6 @@ IMAGE_CLASSES += "image-types-xilinx-qemu"
33# Add wic.qemu-sd only if initramfs_image not set due to circular dependecies 33# Add wic.qemu-sd only if initramfs_image not set due to circular dependecies
34IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz.u-boot.qemu-sd-fatimg'}" 34IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz.u-boot.qemu-sd-fatimg'}"
35 35
36WKS_FILES ?= "sdimage-bootpart.wks"
37
38EXTRA_IMAGEDEPENDS += " \ 36EXTRA_IMAGEDEPENDS += " \
39 arm-trusted-firmware \ 37 arm-trusted-firmware \
40 virtual/boot-bin \ 38 virtual/boot-bin \
diff --git a/meta-xilinx-core/conf/machine/zynq-generic.conf b/meta-xilinx-core/conf/machine/zynq-generic.conf
index eaabb129..c79db9f0 100644
--- a/meta-xilinx-core/conf/machine/zynq-generic.conf
+++ b/meta-xilinx-core/conf/machine/zynq-generic.conf
@@ -43,7 +43,6 @@ HDF_MACHINE = "zc702-zynq7"
43IMAGE_CLASSES += "image-types-xilinx-qemu" 43IMAGE_CLASSES += "image-types-xilinx-qemu"
44# Add wic.qemu-sd only if initramfs_image not set due to circular dependecies 44# Add wic.qemu-sd only if initramfs_image not set due to circular dependecies
45IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz'}" 45IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz'}"
46WKS_FILES ?= "sdimage-bootpart.wks"
47 46
48QB_MEM = "-m 1024" 47QB_MEM = "-m 1024"
49QB_NETWORK_DEVICE = "-net nic,netdev=net0,macaddr=@MAC@" 48QB_NETWORK_DEVICE = "-net nic,netdev=net0,macaddr=@MAC@"
diff --git a/meta-xilinx-core/conf/machine/zynqmp-generic.conf b/meta-xilinx-core/conf/machine/zynqmp-generic.conf
index 1e6ee0d3..3aff9c65 100644
--- a/meta-xilinx-core/conf/machine/zynqmp-generic.conf
+++ b/meta-xilinx-core/conf/machine/zynqmp-generic.conf
@@ -34,7 +34,6 @@ BOOTMODE ?= "generic.root"
34IMAGE_CLASSES += "image-types-xilinx-qemu" 34IMAGE_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'}" 36IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz.u-boot'}"
37WKS_FILES ?= "sdimage-bootpart.wks"
38 37
39SERIAL_CONSOLES ?= "115200;ttyPS0" 38SERIAL_CONSOLES ?= "115200;ttyPS0"
40 39