diff options
author | Mark Hatle <mark.hatle@amd.com> | 2023-10-23 08:51:20 -0600 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2023-10-23 08:56:37 -0600 |
commit | eb42c7caeac33f42096673522e650441f05ca8da (patch) | |
tree | 33f97fe41ec8855cf591c2692c7c7038b6bc1ae3 /meta-xilinx-core/conf | |
parent | 387b31acf85b84bd34f339c87c0b51a9af4e16e4 (diff) | |
parent | 05911e19d85fd98c42054238392afe95a5125265 (diff) | |
download | meta-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.conf | 10 | ||||
-rw-r--r-- | meta-xilinx-core/conf/machine/README | 75 | ||||
-rw-r--r-- | meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc | 52 | ||||
-rw-r--r-- | meta-xilinx-core/conf/machine/microblaze-generic.conf | 43 | ||||
-rw-r--r-- | meta-xilinx-core/conf/machine/versal-generic.conf | 3 | ||||
-rw-r--r-- | meta-xilinx-core/conf/machine/versal-net-generic.conf | 2 | ||||
-rw-r--r-- | meta-xilinx-core/conf/machine/zynq-generic.conf | 3 | ||||
-rw-r--r-- | meta-xilinx-core/conf/machine/zynqmp-generic.conf | 5 |
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 | ||
45 | XILINX_RELEASE_VERSION ??= "v2023.1" | 45 | XILINX_RELEASE_VERSION ??= "v2023.2" |
46 | 46 | ||
47 | BUILDCFG_VARS:append = " SOC_VARIANT XILINX_RELEASE_VERSION" | 47 | BUILDCFG_VARS:append = " SOC_VARIANT XILINX_RELEASE_VERSION" |
48 | 48 | ||
49 | XILINX_QEMU_VERSION[v2022.1] = "v7.1.0-xilinx-v2022.1%" | 49 | XILINX_QEMU_VERSION[v2022.1] = "v7.1.0-xilinx-v2022.1%" |
50 | XILINX_QEMU_VERSION[v2022.2] = "v7.1.0-xilinx-v2022.2%" | 50 | XILINX_QEMU_VERSION[v2022.2] = "v7.1.0-xilinx-v2022.2%" |
51 | XILINX_QEMU_VERSION[v2023.1] = "v7.1.0-xilinx-v2023.1%" | 51 | XILINX_QEMU_VERSION[v2023.1] = "v7.1.0-xilinx-v2023.1%" |
52 | XILINX_QEMU_VERSION[v2023.2] = "v7.1.0-xilinx-v2023.2%" | ||
52 | PREFERRED_VERSION_qemu-xilinx ?= "${@d.getVarFlag('XILINX_QEMU_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}" | 53 | PREFERRED_VERSION_qemu-xilinx ?= "${@d.getVarFlag('XILINX_QEMU_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}" |
53 | PREFERRED_VERSION_qemu-xilinx-native ?= "${@d.getVarFlag('XILINX_QEMU_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}" | 54 | PREFERRED_VERSION_qemu-xilinx-native ?= "${@d.getVarFlag('XILINX_QEMU_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}" |
54 | PREFERRED_VERSION_qemu-xilinx-system-native ?= "${@d.getVarFlag('XILINX_QEMU_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}" | 55 | PREFERRED_VERSION_qemu-xilinx-system-native ?= "${@d.getVarFlag('XILINX_QEMU_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}" |
55 | PREFERRED_VERSION_qemu-devicetrees ?= "xilinx-${XILINX_RELEASE_VERSION}%" | 56 | PREFERRED_VERSION_qemu-devicetrees ?= "xilinx-${XILINX_RELEASE_VERSION}%" |
56 | PREFERRED_PROVIDER_qemu ?= "qemu-xilinx" | 57 | PREFERRED_PROVIDER_qemu ?= "qemu-xilinx" |
57 | 58 | ||
58 | XILINX_ATF_VERSION[v2022.1] = "2.6-xilinx-v2022.1%" | ||
59 | XILINX_ATF_VERSION[v2022.2] = "2.6-xilinx-v2022.2%" | ||
60 | XILINX_ATF_VERSION[v2023.1] = "2.8-xilinx-v2023.1%" | 59 | XILINX_ATF_VERSION[v2023.1] = "2.8-xilinx-v2023.1%" |
60 | XILINX_ATF_VERSION[v2023.2] = "2.8-xilinx-v2023.2%" | ||
61 | PREFERRED_VERSION_arm-trusted-firmware ?= "${@d.getVarFlag('XILINX_ATF_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}" | 61 | PREFERRED_VERSION_arm-trusted-firmware ?= "${@d.getVarFlag('XILINX_ATF_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}" |
62 | 62 | ||
63 | XILINX_UBOOT_VERSION[v2022.1] = "v2021.01-xilinx-v2022.1%" | ||
64 | XILINX_UBOOT_VERSION[v2022.2] = "v2021.01-xilinx-v2022.2%" | ||
65 | XILINX_UBOOT_VERSION[v2023.1] = "v2023.01-xilinx-v2023.1%" | 63 | XILINX_UBOOT_VERSION[v2023.1] = "v2023.01-xilinx-v2023.1%" |
64 | XILINX_UBOOT_VERSION[v2023.2] = "v2023.01-xilinx-v2023.2%" | ||
66 | 65 | ||
67 | PREFERRED_VERSION_u-boot-xlnx ?= "${@d.getVarFlag('XILINX_UBOOT_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}" | 66 | PREFERRED_VERSION_u-boot-xlnx ?= "${@d.getVarFlag('XILINX_UBOOT_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}" |
68 | PREFERRED_VERSION_u-boot-tools-xlnx ?= "${@d.getVarFlag('XILINX_UBOOT_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}" | 67 | PREFERRED_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', | |||
70 | XILINX_LINUX_VERSION[v2022.1] = "5.15.19-xilinx-v2022.1%" | 69 | XILINX_LINUX_VERSION[v2022.1] = "5.15.19-xilinx-v2022.1%" |
71 | XILINX_LINUX_VERSION[v2022.2] = "5.15.36-xilinx-v2022.2%" | 70 | XILINX_LINUX_VERSION[v2022.2] = "5.15.36-xilinx-v2022.2%" |
72 | XILINX_LINUX_VERSION[v2023.1] = "6.1.30-xilinx-v2023.1%" | 71 | XILINX_LINUX_VERSION[v2023.1] = "6.1.30-xilinx-v2023.1%" |
72 | XILINX_LINUX_VERSION[v2023.2] = "6.1.30-xilinx-v2023.2%" | ||
73 | PREFERRED_VERSION_linux-xlnx ?= "${@d.getVarFlag('XILINX_LINUX_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}" | 73 | PREFERRED_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, | |||
142 | not every machine file will have all of these variables, only the ones | 142 | not every machine file will have all of these variables, only the ones |
143 | you need to override should be set. | 143 | you need to override should be set. |
144 | 144 | ||
145 | Variables set before required inclusion file: | ||
146 | Variables that changes based on hw design or board specific requirement must be | ||
147 | set before required inclusion file else pre-expansion value defined in generic | ||
148 | machine conf will be set. This way user can also override these variables from | ||
149 | local.conf | ||
150 | |||
145 | System wide setting: | 151 | System wide setting: |
146 | TUNE_FEATURES:tune-<tune> - Specific tune features | 152 | TUNE_FEATURES:tune-<tune> - Specific tune features |
147 | 153 | ||
148 | external-hdf recipe from meta-xilinx-tools: | 154 | external-hdf recipe from meta-xilinx-tools: |
149 | HDF_MACHINE - Used by the recipe to find the correct XSA | 155 | HDF_MACHINE - Machine to load from reference defign xsa using hdf-examples recipe |
150 | HDF_EXT - only xsa is supported, legacy variable | 156 | HDF_EXT - Only ".xsa" externsion is supported, legacy variable. |
151 | HDF_BASE - protocol if not using the default external-hdf repository | 157 | HDF_BASE - Download protocol (file://, git://, http:// or https://) protocol if |
152 | HDF_PATH - path to the repository or XSA file | 158 | not using the default external-hdf repository. |
159 | HDF_PATH - Path to the repository or XSA file | ||
160 | |||
161 | fs-boot recipe from meta-xilinx-tools: | ||
162 | YAML_SERIAL_CONSOLE_STDIN:pn-fs-boot - YAML based uart stdin configuration for | ||
163 | MicroBlaze. Example: axi_uartlite_0 or axi_uart16550_0 etc,. | ||
164 | YAML_SERIAL_CONSOLE_STDOUT:pn-fs-boot - YAML based uart stdout configuration for | ||
165 | MicroBlaze. Example: axi_uartlite_0 or axi_uart16550_0 etc,. | ||
166 | YAML_MAIN_MEMORY_CONFIG:pn-fs-boot - YAML based DDR4 or MIG configuration for | ||
167 | MicroBlaze. Example: DDR4_0 or MIG_7SERIES_0 etc,. | ||
168 | YAML_FLASH_MEMORY_CONFIG:pn-fs-boot - YAML based flash configuration for | ||
169 | MicroBlaze. Example: axi_emc_0 or axi_quad_spi_0 etc,. | ||
170 | XSCTH_PROC:pn-fs-boot - Processor IP used while configuring embeddedsw compoments. | ||
171 | Example: microblaze_0 or microblaze_1 etc,. | ||
172 | |||
173 | fsbl-firmware recipe from meta-xilinx-tools: | ||
174 | YAML_SERIAL_CONSOLE_STDIN:pn-fsbl-firmware - YAML based FSBL uart stdin configuration | ||
175 | for Zynq-7000 and ZynqMP devices. | ||
176 | YAML_SERIAL_CONSOLE_STDOUT:pn-fsbl-firmware - YAML based FSBL uart stdout configuration | ||
177 | for Zynq-7000 and ZynqMP devices. | ||
178 | |||
179 | pmu-firmware recipe from meta-xilinx-tools: | ||
180 | YAML_SERIAL_CONSOLE_STDIN:pn-pmu-firmware - YAML based PMUFW uart stdin configuration | ||
181 | for ZynqMP devices. | ||
182 | YAML_SERIAL_CONSOLE_STDOUT:pn-pmu-firmware - YAML based PMUFW uart stdout configuration | ||
183 | for ZynqMP devices. | ||
184 | |||
185 | plm-firmware recipe from meta-xilinx-tools: | ||
186 | YAML_SERIAL_CONSOLE_STDIN:pn-plm-firmware - YAML based PLM uart stdin configuration | ||
187 | for Versal devices. | ||
188 | YAML_SERIAL_CONSOLE_STDOUT:pn-fplmsbl-firmware - YAML based PLM uart stdout | ||
189 | configuration for Versal devices. | ||
153 | 190 | ||
154 | device-tree recipe from meta-xilinx-tools: | 191 | device-tree recipe from meta-xilinx-tools: |
155 | YAML_DT_BOARD_FLAGS - flags used for dtgen | 192 | YAML_CONSOLE_DEVICE_CONFIG:pn-device-tree - YAML based uart console configuration |
193 | for all device families. Example: axi_uartlite_0 or psu_uart_0 etc,. | ||
194 | YAML_MAIN_MEMORY_CONFIG:pn-device-tree - YAML based memory configuration for all | ||
195 | device families. Example: DDR4_0 or PS7_DDR_0 or PSU_DDR_0 etc,. | ||
196 | XSCTH_PROC:pn-device-tree - Processor IP used while configuring device-tree | ||
197 | compoments. Example: microblaze_0 or microblaze_1 etc,. | ||
198 | YAML_DT_BOARD_FLAGS:pn-device-tree - YAML based configuration for setting eval | ||
199 | board specific dtsi files available in DTG repo. | ||
200 | |||
201 | arm-trusted-firmware recipe from meta-xilinx-core: | ||
202 | ATF_CONSOLE - Uart console configuration for all aarch64 device families. | ||
203 | Example: pl011 or cadence or cadence1 etc,. | ||
204 | TFA_BL33_LOAD - BL33 preloadded base address to EXTRA_OEMAKE for aarch64. | ||
156 | 205 | ||
157 | u-boot-xlnx recipe from meta-xilinx-core: | 206 | u-boot-xlnx recipe from meta-xilinx-core: |
158 | UBOOT_MACHINE - Name of the defconfig to use | 207 | UBOOT_MACHINE - Name of the defconfig to use |
159 | HAS_PLATFORM_INIT - List of defconfig files available for u-boot | 208 | HAS_PLATFORM_INIT - List of defconfig files available for u-boot only for SPL boot. |
209 | |||
210 | u-boot-xlnx-scr recipe from meta-xilinx-core: | ||
211 | DDR_BASEADDR - Base address for DDR used for loading the images from u-boot env. | ||
212 | SKIP_APPEND_BASEADDR - Skip appending ${DDR_BASEADDR} for image offsets. | ||
213 | |||
214 | Varibable set after required inclusion file: | ||
215 | Varibables that does not intend to change must be set before required inclusion | ||
216 | file. | ||
217 | |||
218 | external-hdf recipe from meta-xilinx-tools: | ||
219 | HDF_MACHINE - Used by the recipe to find the correct XSA | ||
220 | HDF_EXT - only xsa is supported, legacy variable | ||
221 | HDF_BASE - protocol if not using the default external-hdf repository | ||
222 | HDF_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 |
65 | INITRAMFS_IMAGE ??= "" | 65 | INITRAMFS_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 | ||
70 | IMAGE_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 |
69 | WKS_FILE_DEPENDS ?= "${WKS_FILE_DEPENDS_DEFAULT} ${WKS_FILE_DEPENDS_BOOTLOADERS}" | 74 | WKS_FILE_DEPENDS ?= "${WKS_FILE_DEPENDS_DEFAULT} ${WKS_FILE_DEPENDS_BOOTLOADERS}" |
70 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'boot.bin', ' virtual/boot-bin', '', d)}" | 75 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'boot.bin', ' virtual/boot-bin', '', d)}" |
71 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'system.dtb', ' virtual/dtb', '', d)}" | 76 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'system.dtb', ' virtual/dtb', '', d)}" |
72 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'boot.scr', ' u-boot-xlnx-scr', '', d)}" | 77 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'boot.scr', ' u-boot-xlnx-scr', '', d)}" |
73 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'uEnv.txt', ' u-boot-xlnx-uenv', '', d)}" | 78 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'uEnv.txt', ' u-boot-xlnx-uenv', '', d)}" |
74 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'atf-uboot.ub', ' arm-trusted-firmware', '', d)}" | 79 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'atf-uboot.ub', ' arm-trusted-firmware', '', d)}" |
75 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'Image', ' virtual/kernel', '', d)}" | 80 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'Image', ' virtual/kernel', '', d)}" |
76 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'uImage', ' virtual/kernel', '', d)}" | 81 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'uImage', ' virtual/kernel', '', d)}" |
77 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'zImage', ' virtual/kernel', '', d)}" | 82 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'zImage', ' virtual/kernel', '', d)}" |
78 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'u-boot.bin', ' virtual/bootloader', '', d)}" | 83 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'u-boot.bin', ' virtual/bootloader', '', d)}" |
79 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'u-boot.elf', ' virtual/bootloader', '', d)}" | 84 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'u-boot.elf', ' virtual/bootloader', '', d)}" |
80 | WKS_FILE_DEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', '${INITRAMFS_IMAGE}-${MACHINE}.cpio.gz.u-boot', ' ${INITRAMFS_IMAGE}', '', d)}" | 85 | WKS_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 |
83 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'boot.bin', ' ${PREFERRED_PROVIDER_virtual/boot-bin}', '', d)}" | 88 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'boot.bin', ' ${PREFERRED_PROVIDER_virtual/boot-bin}', '', d)}" |
84 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'system.dtb', ' ${PREFERRED_PROVIDER_virtual/dtb}', '', d)}" | 89 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'system.dtb', ' ${PREFERRED_PROVIDER_virtual/dtb}', '', d)}" |
85 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'boot.scr', ' u-boot-xlnx-scr', '', d)}" | 90 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'boot.scr', ' u-boot-xlnx-scr', '', d)}" |
86 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'uEnv.txt', ' u-boot-xlnx-uenv', '', d)}" | 91 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'uEnv.txt', ' u-boot-xlnx-uenv', '', d)}" |
87 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'atf-uboot.ub', ' arm-trusted-firmware', '', d)}" | 92 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'atf-uboot.ub', ' arm-trusted-firmware', '', d)}" |
88 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'u-boot.bin', ' ${PREFERRED_PROVIDER_virtual/bootloader}-bin', '', d)}" | 93 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'u-boot.bin', ' ${PREFERRED_PROVIDER_virtual/bootloader}-bin', '', d)}" |
89 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'u-boot.elf', ' ${PREFERRED_PROVIDER_virtual/bootloader}-elf', '', d)}" | 94 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'u-boot.elf', ' ${PREFERRED_PROVIDER_virtual/bootloader}-elf', '', d)}" |
90 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'Image', ' kernel-image-image', '', d)}" | 95 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'Image', ' kernel-image-image', '', d)}" |
91 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'uImage', ' kernel-image-uimage', '', d)}" | 96 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'uImage', ' kernel-image-uimage', '', d)}" |
92 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', 'zImage', ' kernel-image-zimage', '', d)}" | 97 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES_INSTALLED', 'zImage', ' kernel-image-zimage', '', d)}" |
93 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES', '${INITRAMFS_IMAGE}-${MACHINE}.cpio.gz.u-boot', ' initramdisk-${INITRAMFS_IMAGE}', '', d)}" | 98 | MACHINE_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 / |
96 | WKS_FILES ?= "xilinx-default-sd.wks" | 101 | WKS_FILES ?= "xilinx-default-sd.wks" |
@@ -128,3 +133,6 @@ def get_default_image_boot_files(d): | |||
128 | XSERVER_EXT ?= "" | 133 | XSERVER_EXT ?= "" |
129 | 134 | ||
130 | FPGA_MNGR_RECONFIG_ENABLE ?= "1" | 135 | FPGA_MNGR_RECONFIG_ENABLE ?= "1" |
136 | |||
137 | # This variable is supported only with SysVinit. | ||
138 | SERIAL_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 | ||
6 | USE_BOARD = "${@"conf/machine/include/xilinx-board-pre.inc" if d.getVar("BOARD") or d.getVar("BOARD_VARIANT") else ""}" | ||
7 | require ${USE_BOARD} | ||
8 | unset USE_BOARD | ||
9 | |||
5 | #### Preamble | 10 | #### Preamble |
6 | MACHINEOVERRIDES =. "${@['', 'microblaze-generic:']['microblaze-generic' != '${MACHINE}']}" | 11 | MACHINEOVERRIDES =. "${@['', '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... |
10 | TUNE_FEATURES:tune-microblaze ?= "microblaze v11.0 barrel-shift pattern-compare reorder divide-hard multiply-high" | 15 | TUNE_FEATURES:tune-microblaze ?= "microblaze v11.0 pattern-compare barrel-shift divide-hard multiply-high fpu-hard reorder" |
11 | DEFAULTTUNE ?= "microblaze" | 16 | DEFAULTTUNE ?= "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 | ||
23 | YAML_CONSOLE_DEVICE_CONFIG:pn-device-tree ?= "axi_uartlite_0" | ||
24 | YAML_MAIN_MEMORY_CONFIG:pn-device-tree ?= "DDR4_0" | ||
25 | DT_PADDING_SIZE:pn-device-tree ?= "0x1000" | ||
26 | DTC_FLAGS:pn-device-tree ?= "" | ||
27 | XSCTH_PROC:pn-device-tree ?= "microblaze_0" | ||
28 | YAML_DT_BOARD_FLAGS ?= "{BOARD kcu105}" | ||
29 | |||
17 | # Yocto Microblaze FS-Boot variables | 30 | # Yocto Microblaze FS-Boot variables |
18 | YAML_SERIAL_CONSOLE_STDIN:pn-fs-boot ?= "axi_uartlite_0" | 31 | YAML_SERIAL_CONSOLE_STDIN:pn-fs-boot ?= "axi_uartlite_0" |
19 | YAML_SERIAL_CONSOLE_STDOUT:pn-fs-boot ?= "axi_uartlite_0" | 32 | YAML_SERIAL_CONSOLE_STDOUT:pn-fs-boot ?= "axi_uartlite_0" |
20 | YAML_MAIN_MEMORY_CONFIG:pn-fs-boot ?= "MIG_7SERIES_0" | 33 | YAML_MAIN_MEMORY_CONFIG:pn-fs-boot ?= "DDR4_0" |
21 | YAML_FLASH_MEMORY_CONFIG:pn-fs-boot ?= "axi_emc_0" | 34 | YAML_FLASH_MEMORY_CONFIG:pn-fs-boot ?= "axi_quad_spi_0" |
22 | XSCTH_PROC:pn-fs-boot ?= "microblaze_0" | 35 | XSCTH_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" | |||
26 | UBOOT_INITIAL_ENV = "" | 39 | UBOOT_INITIAL_ENV = "" |
27 | BOOTMODE ?= "generic.root" | 40 | BOOTMODE ?= "generic.root" |
28 | 41 | ||
29 | # Yocto device-tree variables | ||
30 | YAML_CONSOLE_DEVICE_CONFIG:pn-device-tree ?= "axi_uartlite_0" | ||
31 | YAML_MAIN_MEMORY_CONFIG:pn-device-tree ?= "MIG_7SERIES_0" | ||
32 | DT_PADDING_SIZE:pn-device-tree ?= "0x1000" | ||
33 | DTC_FLAGS:pn-device-tree ?= "" | ||
34 | XSCTH_PROC:pn-device-tree ?= "microblaze_0" | ||
35 | YAML_DT_BOARD_FLAGS ?= "{BOARD kc705-full}" | ||
36 | |||
37 | # Yocto Microblaze KERNEL Variables | 42 | # Yocto Microblaze KERNEL Variables |
38 | UBOOT_ENTRYPOINT ?= "0x80000000" | 43 | UBOOT_ENTRYPOINT ?= "0x80000000" |
39 | UBOOT_LOADADDRESS ?= "0x80000000" | 44 | UBOOT_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 |
43 | SERIAL_CONSOLES ?= "115200;ttyUL0" | 48 | SERIAL_CONSOLES ?= "115200;ttyUL0" |
44 | SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" | ||
45 | YAML_SERIAL_CONSOLE_BAUDRATE ?= "115200" | 49 | YAML_SERIAL_CONSOLE_BAUDRATE ?= "115200" |
46 | 50 | ||
47 | require conf/machine/include/soc-tune-include.inc | 51 | require 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 | ||
57 | MACHINE_ARCH = "${@['${MB_MACHINE_ARCH}', '${DEF_MACHINE_ARCH}']['microblaze-generic' != "${MACHINE}"]}" | 61 | MACHINE_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. |
62 | HDF_MACHINE = "kc705-microblazeel" | 66 | HDF_MACHINE = "kcu105-microblazeel" |
63 | 67 | ||
64 | MACHINE_FEATURES = "" | 68 | MACHINE_FEATURES = "" |
65 | 69 | ||
66 | KERNEL_IMAGETYPE ?= "linux.bin.ub" | 70 | KERNEL_IMAGETYPE ?= "linux.bin.ub" |
67 | KERNEL_IMAGETYPES = "" | 71 | KERNEL_IMAGETYPES = "" |
68 | 72 | ||
69 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" | 73 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "${PREFERRED_PROVIDER_virtual/dtb}" |
70 | 74 | ||
71 | IMAGE_BOOT_FILES += " \ | 75 | IMAGE_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 | ||
75 | EXTRA_IMAGEDEPENDS += " \ | 79 | EXTRA_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 |
95 | PACKAGE_EXTRA_ARCHS:append = "${@['', ' ${MB_MACHINE_ARCH}']['microblaze-generic' != "${MACHINE}"]}" | 99 | PACKAGE_EXTRA_ARCHS:append = "${@['', ' ${MB_MACHINE_ARCH}']['microblaze-generic' != "${MACHINE}"]}" |
100 | |||
101 | # Deprecated board config | ||
102 | USE_BOARD = "${@"conf/machine/include/xilinx-board-post.inc" if d.getVar("BOARD") or d.getVar("BOARD_VARIANT") else ""}" | ||
103 | require ${USE_BOARD} | ||
104 | unset 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 |
35 | SERIAL_CONSOLES ?= "115200;ttyAMA0" | 35 | SERIAL_CONSOLES ?= "115200;ttyAMA0" |
36 | SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" | ||
37 | YAML_SERIAL_CONSOLE_BAUDRATE ?= "115200" | 36 | YAML_SERIAL_CONSOLE_BAUDRATE ?= "115200" |
38 | 37 | ||
39 | require conf/machine/include/soc-versal.inc | 38 | require conf/machine/include/soc-versal.inc |
@@ -47,7 +46,7 @@ HDF_MACHINE = "vck190-versal" | |||
47 | 46 | ||
48 | MACHINE_FEATURES += "rtc ext2 ext3 vfat usbhost" | 47 | MACHINE_FEATURES += "rtc ext2 ext3 vfat usbhost" |
49 | 48 | ||
50 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" | 49 | MACHINE_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 |
53 | IMAGE_CLASSES += "image-types-xilinx-qemu" | 52 | IMAGE_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 @@ | |||
1 | XILINX_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 |
34 | SERIAL_CONSOLES ?= "115200;ttyPS0" | 34 | SERIAL_CONSOLES ?= "115200;ttyPS0" |
35 | SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" | ||
36 | YAML_SERIAL_CONSOLE_BAUDRATE ?= "115200" | 35 | YAML_SERIAL_CONSOLE_BAUDRATE ?= "115200" |
37 | 36 | ||
38 | require conf/machine/include/soc-zynq.inc | 37 | require conf/machine/include/soc-zynq.inc |
@@ -46,7 +45,7 @@ HDF_MACHINE = "zc702-zynq7" | |||
46 | 45 | ||
47 | MACHINE_FEATURES += "rtc ext2 ext3 vfat usbhost usbgadget" | 46 | MACHINE_FEATURES += "rtc ext2 ext3 vfat usbhost usbgadget" |
48 | 47 | ||
49 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" | 48 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "${PREFERRED_PROVIDER_virtual/dtb}" |
50 | 49 | ||
51 | EXTRA_IMAGEDEPENDS += " \ | 50 | EXTRA_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 |
46 | SERIAL_CONSOLES ?= "115200;ttyPS0" | 46 | SERIAL_CONSOLES ?= "115200;ttyPS0" |
47 | SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" | ||
48 | YAML_SERIAL_CONSOLE_BAUDRATE ?= "115200" | 47 | YAML_SERIAL_CONSOLE_BAUDRATE ?= "115200" |
49 | 48 | ||
50 | require conf/machine/include/soc-zynqmp.inc | 49 | require 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 |
66 | IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz.u-boot'}" | 65 | IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz.u-boot'}" |
67 | 66 | ||
68 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" | 67 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "${PREFERRED_PROVIDER_virtual/dtb}" |
69 | 68 | ||
70 | EXTRA_IMAGEDEPENDS += " \ | 69 | EXTRA_IMAGEDEPENDS += " \ |
71 | libyaml-native \ | 70 | libyaml-native \ |
@@ -150,8 +149,6 @@ QB_PMU_OPT = " \ | |||
150 | 149 | ||
151 | QB_OPT_APPEND += " -pmu-args '${QB_PMU_OPT}'" | 150 | QB_OPT_APPEND += " -pmu-args '${QB_PMU_OPT}'" |
152 | 151 | ||
153 | do_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 |
157 | PACKAGE_EXTRA_ARCHS:append = "${@['', ' zynqmp_generic']['zynqmp-generic' != "${MACHINE}"]}" | 154 | PACKAGE_EXTRA_ARCHS:append = "${@['', ' zynqmp_generic']['zynqmp-generic' != "${MACHINE}"]}" |