summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-core/conf
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@amd.com>2023-10-23 08:51:20 -0600
committerMark Hatle <mark.hatle@amd.com>2023-10-23 08:56:37 -0600
commiteb42c7caeac33f42096673522e650441f05ca8da (patch)
tree33f97fe41ec8855cf591c2692c7c7038b6bc1ae3 /meta-xilinx-core/conf
parent387b31acf85b84bd34f339c87c0b51a9af4e16e4 (diff)
parent05911e19d85fd98c42054238392afe95a5125265 (diff)
downloadmeta-xilinx-eb42c7caeac33f42096673522e650441f05ca8da.tar.gz
Merge remote-tracking branch 'origin/rel-v2023.2' into nanbield
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-core/conf')
-rw-r--r--meta-xilinx-core/conf/layer.conf10
-rw-r--r--meta-xilinx-core/conf/machine/README75
-rw-r--r--meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc52
-rw-r--r--meta-xilinx-core/conf/machine/microblaze-generic.conf43
-rw-r--r--meta-xilinx-core/conf/machine/versal-generic.conf3
-rw-r--r--meta-xilinx-core/conf/machine/versal-net-generic.conf2
-rw-r--r--meta-xilinx-core/conf/machine/zynq-generic.conf3
-rw-r--r--meta-xilinx-core/conf/machine/zynqmp-generic.conf5
8 files changed, 135 insertions, 58 deletions
diff --git a/meta-xilinx-core/conf/layer.conf b/meta-xilinx-core/conf/layer.conf
index 9745bb4d..afbf71c3 100644
--- a/meta-xilinx-core/conf/layer.conf
+++ b/meta-xilinx-core/conf/layer.conf
@@ -42,27 +42,26 @@ SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += " \
42 *->xserver-xorg \ 42 *->xserver-xorg \
43" 43"
44 44
45XILINX_RELEASE_VERSION ??= "v2023.1" 45XILINX_RELEASE_VERSION ??= "v2023.2"
46 46
47BUILDCFG_VARS:append = " SOC_VARIANT XILINX_RELEASE_VERSION" 47BUILDCFG_VARS:append = " SOC_VARIANT XILINX_RELEASE_VERSION"
48 48
49XILINX_QEMU_VERSION[v2022.1] = "v7.1.0-xilinx-v2022.1%" 49XILINX_QEMU_VERSION[v2022.1] = "v7.1.0-xilinx-v2022.1%"
50XILINX_QEMU_VERSION[v2022.2] = "v7.1.0-xilinx-v2022.2%" 50XILINX_QEMU_VERSION[v2022.2] = "v7.1.0-xilinx-v2022.2%"
51XILINX_QEMU_VERSION[v2023.1] = "v7.1.0-xilinx-v2023.1%" 51XILINX_QEMU_VERSION[v2023.1] = "v7.1.0-xilinx-v2023.1%"
52XILINX_QEMU_VERSION[v2023.2] = "v7.1.0-xilinx-v2023.2%"
52PREFERRED_VERSION_qemu-xilinx ?= "${@d.getVarFlag('XILINX_QEMU_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}" 53PREFERRED_VERSION_qemu-xilinx ?= "${@d.getVarFlag('XILINX_QEMU_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}"
53PREFERRED_VERSION_qemu-xilinx-native ?= "${@d.getVarFlag('XILINX_QEMU_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}" 54PREFERRED_VERSION_qemu-xilinx-native ?= "${@d.getVarFlag('XILINX_QEMU_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}"
54PREFERRED_VERSION_qemu-xilinx-system-native ?= "${@d.getVarFlag('XILINX_QEMU_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}" 55PREFERRED_VERSION_qemu-xilinx-system-native ?= "${@d.getVarFlag('XILINX_QEMU_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}"
55PREFERRED_VERSION_qemu-devicetrees ?= "xilinx-${XILINX_RELEASE_VERSION}%" 56PREFERRED_VERSION_qemu-devicetrees ?= "xilinx-${XILINX_RELEASE_VERSION}%"
56PREFERRED_PROVIDER_qemu ?= "qemu-xilinx" 57PREFERRED_PROVIDER_qemu ?= "qemu-xilinx"
57 58
58XILINX_ATF_VERSION[v2022.1] = "2.6-xilinx-v2022.1%"
59XILINX_ATF_VERSION[v2022.2] = "2.6-xilinx-v2022.2%"
60XILINX_ATF_VERSION[v2023.1] = "2.8-xilinx-v2023.1%" 59XILINX_ATF_VERSION[v2023.1] = "2.8-xilinx-v2023.1%"
60XILINX_ATF_VERSION[v2023.2] = "2.8-xilinx-v2023.2%"
61PREFERRED_VERSION_arm-trusted-firmware ?= "${@d.getVarFlag('XILINX_ATF_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}" 61PREFERRED_VERSION_arm-trusted-firmware ?= "${@d.getVarFlag('XILINX_ATF_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}"
62 62
63XILINX_UBOOT_VERSION[v2022.1] = "v2021.01-xilinx-v2022.1%"
64XILINX_UBOOT_VERSION[v2022.2] = "v2021.01-xilinx-v2022.2%"
65XILINX_UBOOT_VERSION[v2023.1] = "v2023.01-xilinx-v2023.1%" 63XILINX_UBOOT_VERSION[v2023.1] = "v2023.01-xilinx-v2023.1%"
64XILINX_UBOOT_VERSION[v2023.2] = "v2023.01-xilinx-v2023.2%"
66 65
67PREFERRED_VERSION_u-boot-xlnx ?= "${@d.getVarFlag('XILINX_UBOOT_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}" 66PREFERRED_VERSION_u-boot-xlnx ?= "${@d.getVarFlag('XILINX_UBOOT_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}"
68PREFERRED_VERSION_u-boot-tools-xlnx ?= "${@d.getVarFlag('XILINX_UBOOT_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}" 67PREFERRED_VERSION_u-boot-tools-xlnx ?= "${@d.getVarFlag('XILINX_UBOOT_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}"
@@ -70,6 +69,7 @@ PREFERRED_VERSION_u-boot-tools-xlnx ?= "${@d.getVarFlag('XILINX_UBOOT_VERSION',
70XILINX_LINUX_VERSION[v2022.1] = "5.15.19-xilinx-v2022.1%" 69XILINX_LINUX_VERSION[v2022.1] = "5.15.19-xilinx-v2022.1%"
71XILINX_LINUX_VERSION[v2022.2] = "5.15.36-xilinx-v2022.2%" 70XILINX_LINUX_VERSION[v2022.2] = "5.15.36-xilinx-v2022.2%"
72XILINX_LINUX_VERSION[v2023.1] = "6.1.30-xilinx-v2023.1%" 71XILINX_LINUX_VERSION[v2023.1] = "6.1.30-xilinx-v2023.1%"
72XILINX_LINUX_VERSION[v2023.2] = "6.1.30-xilinx-v2023.2%"
73PREFERRED_VERSION_linux-xlnx ?= "${@d.getVarFlag('XILINX_LINUX_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}" 73PREFERRED_VERSION_linux-xlnx ?= "${@d.getVarFlag('XILINX_LINUX_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}"
74 74
75# Add support to eSDK for gen-machine-conf if it exists 75# Add support to eSDK for gen-machine-conf if it exists
diff --git a/meta-xilinx-core/conf/machine/README b/meta-xilinx-core/conf/machine/README
index 5361dc81..de8cf58d 100644
--- a/meta-xilinx-core/conf/machine/README
+++ b/meta-xilinx-core/conf/machine/README
@@ -142,20 +142,83 @@ you should not use :<machine> override values for the same reason. Note,
142not every machine file will have all of these variables, only the ones 142not every machine file will have all of these variables, only the ones
143you need to override should be set. 143you need to override should be set.
144 144
145Variables set before required inclusion file:
146Variables that changes based on hw design or board specific requirement must be
147set before required inclusion file else pre-expansion value defined in generic
148machine conf will be set. This way user can also override these variables from
149local.conf
150
145System wide setting: 151System wide setting:
146TUNE_FEATURES:tune-<tune> - Specific tune features 152TUNE_FEATURES:tune-<tune> - Specific tune features
147 153
148external-hdf recipe from meta-xilinx-tools: 154external-hdf recipe from meta-xilinx-tools:
149HDF_MACHINE - Used by the recipe to find the correct XSA 155HDF_MACHINE - Machine to load from reference defign xsa using hdf-examples recipe
150HDF_EXT - only xsa is supported, legacy variable 156HDF_EXT - Only ".xsa" externsion is supported, legacy variable.
151HDF_BASE - protocol if not using the default external-hdf repository 157HDF_BASE - Download protocol (file://, git://, http:// or https://) protocol if
152HDF_PATH - path to the repository or XSA file 158 not using the default external-hdf repository.
159HDF_PATH - Path to the repository or XSA file
160
161fs-boot recipe from meta-xilinx-tools:
162YAML_SERIAL_CONSOLE_STDIN:pn-fs-boot - YAML based uart stdin configuration for
163MicroBlaze. Example: axi_uartlite_0 or axi_uart16550_0 etc,.
164YAML_SERIAL_CONSOLE_STDOUT:pn-fs-boot - YAML based uart stdout configuration for
165MicroBlaze. Example: axi_uartlite_0 or axi_uart16550_0 etc,.
166YAML_MAIN_MEMORY_CONFIG:pn-fs-boot - YAML based DDR4 or MIG configuration for
167MicroBlaze. Example: DDR4_0 or MIG_7SERIES_0 etc,.
168YAML_FLASH_MEMORY_CONFIG:pn-fs-boot - YAML based flash configuration for
169MicroBlaze. Example: axi_emc_0 or axi_quad_spi_0 etc,.
170XSCTH_PROC:pn-fs-boot - Processor IP used while configuring embeddedsw compoments.
171Example: microblaze_0 or microblaze_1 etc,.
172
173fsbl-firmware recipe from meta-xilinx-tools:
174YAML_SERIAL_CONSOLE_STDIN:pn-fsbl-firmware - YAML based FSBL uart stdin configuration
175for Zynq-7000 and ZynqMP devices.
176YAML_SERIAL_CONSOLE_STDOUT:pn-fsbl-firmware - YAML based FSBL uart stdout configuration
177for Zynq-7000 and ZynqMP devices.
178
179pmu-firmware recipe from meta-xilinx-tools:
180YAML_SERIAL_CONSOLE_STDIN:pn-pmu-firmware - YAML based PMUFW uart stdin configuration
181for ZynqMP devices.
182YAML_SERIAL_CONSOLE_STDOUT:pn-pmu-firmware - YAML based PMUFW uart stdout configuration
183for ZynqMP devices.
184
185plm-firmware recipe from meta-xilinx-tools:
186YAML_SERIAL_CONSOLE_STDIN:pn-plm-firmware - YAML based PLM uart stdin configuration
187for Versal devices.
188YAML_SERIAL_CONSOLE_STDOUT:pn-fplmsbl-firmware - YAML based PLM uart stdout
189configuration for Versal devices.
153 190
154device-tree recipe from meta-xilinx-tools: 191device-tree recipe from meta-xilinx-tools:
155YAML_DT_BOARD_FLAGS - flags used for dtgen 192YAML_CONSOLE_DEVICE_CONFIG:pn-device-tree - YAML based uart console configuration
193for all device families. Example: axi_uartlite_0 or psu_uart_0 etc,.
194YAML_MAIN_MEMORY_CONFIG:pn-device-tree - YAML based memory configuration for all
195device families. Example: DDR4_0 or PS7_DDR_0 or PSU_DDR_0 etc,.
196XSCTH_PROC:pn-device-tree - Processor IP used while configuring device-tree
197compoments. Example: microblaze_0 or microblaze_1 etc,.
198YAML_DT_BOARD_FLAGS:pn-device-tree - YAML based configuration for setting eval
199board specific dtsi files available in DTG repo.
200
201arm-trusted-firmware recipe from meta-xilinx-core:
202ATF_CONSOLE - Uart console configuration for all aarch64 device families.
203Example: pl011 or cadence or cadence1 etc,.
204TFA_BL33_LOAD - BL33 preloadded base address to EXTRA_OEMAKE for aarch64.
156 205
157u-boot-xlnx recipe from meta-xilinx-core: 206u-boot-xlnx recipe from meta-xilinx-core:
158UBOOT_MACHINE - Name of the defconfig to use 207UBOOT_MACHINE - Name of the defconfig to use
159HAS_PLATFORM_INIT - List of defconfig files available for u-boot 208HAS_PLATFORM_INIT - List of defconfig files available for u-boot only for SPL boot.
209
210u-boot-xlnx-scr recipe from meta-xilinx-core:
211DDR_BASEADDR - Base address for DDR used for loading the images from u-boot env.
212SKIP_APPEND_BASEADDR - Skip appending ${DDR_BASEADDR} for image offsets.
213
214Varibable set after required inclusion file:
215Varibables that does not intend to change must be set before required inclusion
216file.
217
218external-hdf recipe from meta-xilinx-tools:
219HDF_MACHINE - Used by the recipe to find the correct XSA
220HDF_EXT - only xsa is supported, legacy variable
221HDF_BASE - protocol if not using the default external-hdf repository
222HDF_PATH - path to the repository or XSA file
160 223
161...and more... 224...and more...
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 4a4384a1..e99b1f0e 100644
--- a/meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc
+++ b/meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc
@@ -64,33 +64,38 @@ FIT_CONF_DEFAULT_DTB ?= "${@os.path.basename(d.getVar('CONFIG_DTFILE')).replace(
64# Define to avoid parsse errors below if undefind elsewhere 64# Define to avoid parsse errors below if undefind elsewhere
65INITRAMFS_IMAGE ??= "" 65INITRAMFS_IMAGE ??= ""
66 66
67# IMAGE_BOOT_FILES is a whitespace-separated list of entries specifying files to be installed into the boot partition
68# entries can change the installed filename by specifying the destination name after a semicolon (e.g. u-boot.img;uboot)
69# make sure to use the installed filename when scanning IMAGE_BOOT_FILES
70IMAGE_BOOT_FILES_INSTALLED = "${@' '.join([x.split(';')[-1] for x in d.getVar('IMAGE_BOOT_FILES').split()])}"
71
67# Automatically add WKS_FILE_DEPENDS based on the configuration 72# Automatically add WKS_FILE_DEPENDS based on the configuration
68# Initial value from oe-core/meta/classes-recipe/image_types_wic.bbclass 73# Initial value from oe-core/meta/classes-recipe/image_types_wic.bbclass
69WKS_FILE_DEPENDS ?= "${WKS_FILE_DEPENDS_DEFAULT} ${WKS_FILE_DEPENDS_BOOTLOADERS}" 74WKS_FILE_DEPENDS ?= "${WKS_FILE_DEPENDS_DEFAULT} ${WKS_FILE_DEPENDS_BOOTLOADERS}"
70WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'boot.bin', ' virtual/boot-bin', '', d)}" 75WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'boot.bin', ' virtual/boot-bin', '', d)}"
71WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'system.dtb', ' virtual/dtb', '', d)}" 76WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'system.dtb', ' virtual/dtb', '', d)}"
72WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'boot.scr', ' u-boot-xlnx-scr', '', d)}" 77WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'boot.scr', ' u-boot-xlnx-scr', '', d)}"
73WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'uEnv.txt', ' u-boot-xlnx-uenv', '', d)}" 78WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'uEnv.txt', ' u-boot-xlnx-uenv', '', d)}"
74WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'atf-uboot.ub', ' arm-trusted-firmware', '', d)}" 79WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'atf-uboot.ub', ' arm-trusted-firmware', '', d)}"
75WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'Image', ' virtual/kernel', '', d)}" 80WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'Image', ' virtual/kernel', '', d)}"
76WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'uImage', ' virtual/kernel', '', d)}" 81WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'uImage', ' virtual/kernel', '', d)}"
77WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'zImage', ' virtual/kernel', '', d)}" 82WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'zImage', ' virtual/kernel', '', d)}"
78WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'u-boot.bin', ' virtual/bootloader', '', d)}" 83WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'u-boot.bin', ' virtual/bootloader', '', d)}"
79WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'u-boot.elf', ' virtual/bootloader', '', d)}" 84WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'u-boot.elf', ' virtual/bootloader', '', d)}"
80WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', '${INITRAMFS_IMAGE}-${MACHINE}.cpio.gz.u-boot', ' ${INITRAMFS_IMAGE}', '', d)}" 85WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', '${INITRAMFS_IMAGE}-${MACHINE}.cpio.gz.u-boot', ' ${INITRAMFS_IMAGE}', '', d)}"
81 86
82# Automatically add IMAGE_BOOT_FILES to /boot via packages 87# Automatically add IMAGE_BOOT_FILES to /boot via packages
83MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'boot.bin', ' ${PREFERRED_PROVIDER_virtual/boot-bin}', '', d)}" 88MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'boot.bin', ' ${PREFERRED_PROVIDER_virtual/boot-bin}', '', d)}"
84MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'system.dtb', ' ${PREFERRED_PROVIDER_virtual/dtb}', '', d)}" 89MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'system.dtb', ' ${PREFERRED_PROVIDER_virtual/dtb}', '', d)}"
85MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'boot.scr', ' u-boot-xlnx-scr', '', d)}" 90MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'boot.scr', ' u-boot-xlnx-scr', '', d)}"
86MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'uEnv.txt', ' u-boot-xlnx-uenv', '', d)}" 91MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'uEnv.txt', ' u-boot-xlnx-uenv', '', d)}"
87MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'atf-uboot.ub', ' arm-trusted-firmware', '', d)}" 92MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'atf-uboot.ub', ' arm-trusted-firmware', '', d)}"
88MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'u-boot.bin', ' ${PREFERRED_PROVIDER_virtual/bootloader}-bin', '', d)}" 93MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'u-boot.bin', ' ${PREFERRED_PROVIDER_virtual/bootloader}-bin', '', d)}"
89MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'u-boot.elf', ' ${PREFERRED_PROVIDER_virtual/bootloader}-elf', '', d)}" 94MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'u-boot.elf', ' ${PREFERRED_PROVIDER_virtual/bootloader}-elf', '', d)}"
90MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'Image', ' kernel-image-image', '', d)}" 95MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'Image', ' kernel-image-image', '', d)}"
91MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'uImage', ' kernel-image-uimage', '', d)}" 96MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'uImage', ' kernel-image-uimage', '', d)}"
92MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'zImage', ' kernel-image-zimage', '', d)}" 97MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'zImage', ' kernel-image-zimage', '', d)}"
93MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', '${INITRAMFS_IMAGE}-${MACHINE}.cpio.gz.u-boot', ' initramdisk-${INITRAMFS_IMAGE}', '', d)}" 98MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', '${INITRAMFS_IMAGE}-${MACHINE}.cpio.gz.u-boot', ' initramdisk-${INITRAMFS_IMAGE}', '', d)}"
94 99
95# Default SD card wks file, split /boot and / 100# Default SD card wks file, split /boot and /
96WKS_FILES ?= "xilinx-default-sd.wks" 101WKS_FILES ?= "xilinx-default-sd.wks"
@@ -128,3 +133,6 @@ def get_default_image_boot_files(d):
128XSERVER_EXT ?= "" 133XSERVER_EXT ?= ""
129 134
130FPGA_MNGR_RECONFIG_ENABLE ?= "1" 135FPGA_MNGR_RECONFIG_ENABLE ?= "1"
136
137# This variable is supported only with SysVinit.
138SERIAL_CONSOLES_CHECK = "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', '${SERIAL_CONSOLES}', '', d)}"
diff --git a/meta-xilinx-core/conf/machine/microblaze-generic.conf b/meta-xilinx-core/conf/machine/microblaze-generic.conf
index 9916a4ca..5bf87344 100644
--- a/meta-xilinx-core/conf/machine/microblaze-generic.conf
+++ b/meta-xilinx-core/conf/machine/microblaze-generic.conf
@@ -2,23 +2,36 @@
2#@NAME: microblaze-generic 2#@NAME: microblaze-generic
3#@DESCRIPTION: Machine configuration for the microblaze-generic devices 3#@DESCRIPTION: Machine configuration for the microblaze-generic devices
4 4
5# Deprecated board config
6USE_BOARD = "${@"conf/machine/include/xilinx-board-pre.inc" if d.getVar("BOARD") or d.getVar("BOARD_VARIANT") else ""}"
7require ${USE_BOARD}
8unset USE_BOARD
9
5#### Preamble 10#### Preamble
6MACHINEOVERRIDES =. "${@['', 'microblaze-generic:']['microblaze-generic' != '${MACHINE}']}" 11MACHINEOVERRIDES =. "${@['', 'microblaze-generic:']['microblaze-generic' != '${MACHINE}']}"
7#### Regular settings follow 12#### Regular settings follow
8 13
9# Set the default for a modern full feature microblaze... 14# Set the default for a modern full feature microblaze...
10TUNE_FEATURES:tune-microblaze ?= "microblaze v11.0 barrel-shift pattern-compare reorder divide-hard multiply-high" 15TUNE_FEATURES:tune-microblaze ?= "microblaze v11.0 pattern-compare barrel-shift divide-hard multiply-high fpu-hard reorder"
11DEFAULTTUNE ?= "microblaze" 16DEFAULTTUNE ?= "microblaze"
12 17
13# Variables that changes based on hw design or board specific requirement must be 18# Variables that changes based on hw design or board specific requirement must be
14# defined before calling the required inclusion file else pre-expansion value 19# defined before calling the required inclusion file else pre-expansion value
15# defined in local.conf without machine override will not be reflected. 20# defined in local.conf without machine override will not be reflected.
16 21
22# Yocto Microblaze device-tree variables
23YAML_CONSOLE_DEVICE_CONFIG:pn-device-tree ?= "axi_uartlite_0"
24YAML_MAIN_MEMORY_CONFIG:pn-device-tree ?= "DDR4_0"
25DT_PADDING_SIZE:pn-device-tree ?= "0x1000"
26DTC_FLAGS:pn-device-tree ?= ""
27XSCTH_PROC:pn-device-tree ?= "microblaze_0"
28YAML_DT_BOARD_FLAGS ?= "{BOARD kcu105}"
29
17# Yocto Microblaze FS-Boot variables 30# Yocto Microblaze FS-Boot variables
18YAML_SERIAL_CONSOLE_STDIN:pn-fs-boot ?= "axi_uartlite_0" 31YAML_SERIAL_CONSOLE_STDIN:pn-fs-boot ?= "axi_uartlite_0"
19YAML_SERIAL_CONSOLE_STDOUT:pn-fs-boot ?= "axi_uartlite_0" 32YAML_SERIAL_CONSOLE_STDOUT:pn-fs-boot ?= "axi_uartlite_0"
20YAML_MAIN_MEMORY_CONFIG:pn-fs-boot ?= "MIG_7SERIES_0" 33YAML_MAIN_MEMORY_CONFIG:pn-fs-boot ?= "DDR4_0"
21YAML_FLASH_MEMORY_CONFIG:pn-fs-boot ?= "axi_emc_0" 34YAML_FLASH_MEMORY_CONFIG:pn-fs-boot ?= "axi_quad_spi_0"
22XSCTH_PROC:pn-fs-boot ?= "microblaze_0" 35XSCTH_PROC:pn-fs-boot ?= "microblaze_0"
23 36
24# Yocto Microblaze u-boot-xlnx variables 37# Yocto Microblaze u-boot-xlnx variables
@@ -26,14 +39,6 @@ UBOOT_MACHINE ?= "microblaze-generic_defconfig"
26UBOOT_INITIAL_ENV = "" 39UBOOT_INITIAL_ENV = ""
27BOOTMODE ?= "generic.root" 40BOOTMODE ?= "generic.root"
28 41
29# Yocto device-tree variables
30YAML_CONSOLE_DEVICE_CONFIG:pn-device-tree ?= "axi_uartlite_0"
31YAML_MAIN_MEMORY_CONFIG:pn-device-tree ?= "MIG_7SERIES_0"
32DT_PADDING_SIZE:pn-device-tree ?= "0x1000"
33DTC_FLAGS:pn-device-tree ?= ""
34XSCTH_PROC:pn-device-tree ?= "microblaze_0"
35YAML_DT_BOARD_FLAGS ?= "{BOARD kc705-full}"
36
37# Yocto Microblaze KERNEL Variables 42# Yocto Microblaze KERNEL Variables
38UBOOT_ENTRYPOINT ?= "0x80000000" 43UBOOT_ENTRYPOINT ?= "0x80000000"
39UBOOT_LOADADDRESS ?= "0x80000000" 44UBOOT_LOADADDRESS ?= "0x80000000"
@@ -41,7 +46,6 @@ KERNEL_EXTRA_ARGS += "UIMAGE_LOADADDR=${UBOOT_ENTRYPOINT}"
41 46
42# Microblaze Serial Console settings 47# Microblaze Serial Console settings
43SERIAL_CONSOLES ?= "115200;ttyUL0" 48SERIAL_CONSOLES ?= "115200;ttyUL0"
44SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
45YAML_SERIAL_CONSOLE_BAUDRATE ?= "115200" 49YAML_SERIAL_CONSOLE_BAUDRATE ?= "115200"
46 50
47require conf/machine/include/soc-tune-include.inc 51require conf/machine/include/soc-tune-include.inc
@@ -56,21 +60,21 @@ MB_MACHINE_ARCH = "${@[d.getVar('TUNE_PKGARCH'), d.getVar('TUNE_PKGARCH') + '-ge
56 60
57MACHINE_ARCH = "${@['${MB_MACHINE_ARCH}', '${DEF_MACHINE_ARCH}']['microblaze-generic' != "${MACHINE}"]}" 61MACHINE_ARCH = "${@['${MB_MACHINE_ARCH}', '${DEF_MACHINE_ARCH}']['microblaze-generic' != "${MACHINE}"]}"
58 62
59# microblaze-generic.conf uses kc705-microblazeel xsa as reference input. 63# microblaze-generic.conf uses kcu105-microblazeel xsa as reference input.
60# User can override with custom xsa using HDF_BASE and HDF_PATH variables from 64# User can override with custom xsa using HDF_BASE and HDF_PATH variables from
61# local.conf. 65# local.conf.
62HDF_MACHINE = "kc705-microblazeel" 66HDF_MACHINE = "kcu105-microblazeel"
63 67
64MACHINE_FEATURES = "" 68MACHINE_FEATURES = ""
65 69
66KERNEL_IMAGETYPE ?= "linux.bin.ub" 70KERNEL_IMAGETYPE ?= "linux.bin.ub"
67KERNEL_IMAGETYPES = "" 71KERNEL_IMAGETYPES = ""
68 72
69MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" 73MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "${PREFERRED_PROVIDER_virtual/dtb}"
70 74
71IMAGE_BOOT_FILES += " \ 75IMAGE_BOOT_FILES += " \
72 ${@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)} \
73 " 77 "
74 78
75EXTRA_IMAGEDEPENDS += " \ 79EXTRA_IMAGEDEPENDS += " \
76 libyaml-native \ 80 libyaml-native \
@@ -93,3 +97,8 @@ QB_NETWORK_DEVICE = "-net nic,netdev=net0,macaddr=@MAC@"
93#### No additional settings should be after the Postamble 97#### No additional settings should be after the Postamble
94#### Postamble 98#### Postamble
95PACKAGE_EXTRA_ARCHS:append = "${@['', ' ${MB_MACHINE_ARCH}']['microblaze-generic' != "${MACHINE}"]}" 99PACKAGE_EXTRA_ARCHS:append = "${@['', ' ${MB_MACHINE_ARCH}']['microblaze-generic' != "${MACHINE}"]}"
100
101# Deprecated board config
102USE_BOARD = "${@"conf/machine/include/xilinx-board-post.inc" if d.getVar("BOARD") or d.getVar("BOARD_VARIANT") else ""}"
103require ${USE_BOARD}
104unset USE_BOARD
diff --git a/meta-xilinx-core/conf/machine/versal-generic.conf b/meta-xilinx-core/conf/machine/versal-generic.conf
index e44e99f2..f87dc140 100644
--- a/meta-xilinx-core/conf/machine/versal-generic.conf
+++ b/meta-xilinx-core/conf/machine/versal-generic.conf
@@ -33,7 +33,6 @@ UBOOT_LOADADDRESS ?= "0x200000"
33 33
34# Versal Serial Console 34# Versal Serial Console
35SERIAL_CONSOLES ?= "115200;ttyAMA0" 35SERIAL_CONSOLES ?= "115200;ttyAMA0"
36SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
37YAML_SERIAL_CONSOLE_BAUDRATE ?= "115200" 36YAML_SERIAL_CONSOLE_BAUDRATE ?= "115200"
38 37
39require conf/machine/include/soc-versal.inc 38require conf/machine/include/soc-versal.inc
@@ -47,7 +46,7 @@ HDF_MACHINE = "vck190-versal"
47 46
48MACHINE_FEATURES += "rtc ext2 ext3 vfat usbhost" 47MACHINE_FEATURES += "rtc ext2 ext3 vfat usbhost"
49 48
50MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" 49MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "${PREFERRED_PROVIDER_virtual/dtb}"
51 50
52# Default SD image build onfiguration, use qemu-sd to pad 51# Default SD image build onfiguration, use qemu-sd to pad
53IMAGE_CLASSES += "image-types-xilinx-qemu" 52IMAGE_CLASSES += "image-types-xilinx-qemu"
diff --git a/meta-xilinx-core/conf/machine/versal-net-generic.conf b/meta-xilinx-core/conf/machine/versal-net-generic.conf
index 4b368e83..e1f222e2 100644
--- a/meta-xilinx-core/conf/machine/versal-net-generic.conf
+++ b/meta-xilinx-core/conf/machine/versal-net-generic.conf
@@ -1,3 +1,5 @@
1XILINX_DEPRECATED[versal-net] = "Versal-net is not supported in 2023.2"
2
1#@TYPE: Machine 3#@TYPE: Machine
2#@NAME: versal-net-generic 4#@NAME: versal-net-generic
3#@DESCRIPTION: Machine configuration for the versal-net-generic devices 5#@DESCRIPTION: Machine configuration for the versal-net-generic devices
diff --git a/meta-xilinx-core/conf/machine/zynq-generic.conf b/meta-xilinx-core/conf/machine/zynq-generic.conf
index df82a683..e97be2ff 100644
--- a/meta-xilinx-core/conf/machine/zynq-generic.conf
+++ b/meta-xilinx-core/conf/machine/zynq-generic.conf
@@ -32,7 +32,6 @@ KERNEL_EXTRA_ARGS += "UIMAGE_LOADADDR=${UBOOT_ENTRYPOINT}"
32 32
33# Zynq-7000 Serial Console settings 33# Zynq-7000 Serial Console settings
34SERIAL_CONSOLES ?= "115200;ttyPS0" 34SERIAL_CONSOLES ?= "115200;ttyPS0"
35SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
36YAML_SERIAL_CONSOLE_BAUDRATE ?= "115200" 35YAML_SERIAL_CONSOLE_BAUDRATE ?= "115200"
37 36
38require conf/machine/include/soc-zynq.inc 37require conf/machine/include/soc-zynq.inc
@@ -46,7 +45,7 @@ HDF_MACHINE = "zc702-zynq7"
46 45
47MACHINE_FEATURES += "rtc ext2 ext3 vfat usbhost usbgadget" 46MACHINE_FEATURES += "rtc ext2 ext3 vfat usbhost usbgadget"
48 47
49MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" 48MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "${PREFERRED_PROVIDER_virtual/dtb}"
50 49
51EXTRA_IMAGEDEPENDS += " \ 50EXTRA_IMAGEDEPENDS += " \
52 libyaml-native \ 51 libyaml-native \
diff --git a/meta-xilinx-core/conf/machine/zynqmp-generic.conf b/meta-xilinx-core/conf/machine/zynqmp-generic.conf
index d24da3b4..b60014df 100644
--- a/meta-xilinx-core/conf/machine/zynqmp-generic.conf
+++ b/meta-xilinx-core/conf/machine/zynqmp-generic.conf
@@ -44,7 +44,6 @@ UBOOT_LOADADDRESS ?= "0x200000"
44 44
45# ZynqMP Serial Console 45# ZynqMP Serial Console
46SERIAL_CONSOLES ?= "115200;ttyPS0" 46SERIAL_CONSOLES ?= "115200;ttyPS0"
47SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
48YAML_SERIAL_CONSOLE_BAUDRATE ?= "115200" 47YAML_SERIAL_CONSOLE_BAUDRATE ?= "115200"
49 48
50require conf/machine/include/soc-zynqmp.inc 49require conf/machine/include/soc-zynqmp.inc
@@ -65,7 +64,7 @@ IMAGE_CLASSES += "image-types-xilinx-qemu"
65# Add wic.qemu-sd only if initramfs_image not set due to circular dependecies 64# Add wic.qemu-sd only if initramfs_image not set due to circular dependecies
66IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz.u-boot'}" 65IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz.u-boot'}"
67 66
68MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" 67MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "${PREFERRED_PROVIDER_virtual/dtb}"
69 68
70EXTRA_IMAGEDEPENDS += " \ 69EXTRA_IMAGEDEPENDS += " \
71 libyaml-native \ 70 libyaml-native \
@@ -150,8 +149,6 @@ QB_PMU_OPT = " \
150 149
151QB_OPT_APPEND += " -pmu-args '${QB_PMU_OPT}'" 150QB_OPT_APPEND += " -pmu-args '${QB_PMU_OPT}'"
152 151
153do_write_qemuboot_conf[depends] += "u-boot-xlnx-uenv:do_deploy"
154
155#### No additional settings should be after the Postamble 152#### No additional settings should be after the Postamble
156#### Postamble 153#### Postamble
157PACKAGE_EXTRA_ARCHS:append = "${@['', ' zynqmp_generic']['zynqmp-generic' != "${MACHINE}"]}" 154PACKAGE_EXTRA_ARCHS:append = "${@['', ' zynqmp_generic']['zynqmp-generic' != "${MACHINE}"]}"