summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@amd.com>2025-02-07 16:30:15 -0700
committerMark Hatle <mark.hatle@amd.com>2025-03-30 14:16:15 -0600
commitd3511b5be3126ddd2604775be8fede071e255f8c (patch)
tree589352e7c8c17e20f709eef8b22736af8a6f687b
parent744b806f7f5d1122754e9c5f7a487128c671d6bf (diff)
downloadmeta-xilinx-d3511b5be3126ddd2604775be8fede071e255f8c.tar.gz
pmu-rom-native: Move to using PMU_ROM variable
In order to coordinate the deployed filename and machine qemu setting, use the common variable PMU_ROM. Note, the variable needs to be defined in a global location as native recipes are not run with machine.conf loaded. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r--meta-xilinx-core/conf/layer.conf3
-rw-r--r--meta-xilinx-core/conf/machine/include/soc-zynqmp.inc4
-rw-r--r--meta-xilinx-core/recipes-bsp/pmu-firmware/pmu-rom-native.bb2
3 files changed, 4 insertions, 5 deletions
diff --git a/meta-xilinx-core/conf/layer.conf b/meta-xilinx-core/conf/layer.conf
index 105b1c84..329bb29d 100644
--- a/meta-xilinx-core/conf/layer.conf
+++ b/meta-xilinx-core/conf/layer.conf
@@ -112,6 +112,9 @@ AI_ENGINE_DRIVER_VERSION[v2024.1] = "3.5"
112AI_ENGINE_DRIVER_VERSION[v2024.2] = "3.6" 112AI_ENGINE_DRIVER_VERSION[v2024.2] = "3.6"
113PREFERRED_VERSION_ai-engine-driver ?= "${@d.getVarFlag('AI_ENGINE_DRIVER_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}" 113PREFERRED_VERSION_ai-engine-driver ?= "${@d.getVarFlag('AI_ENGINE_DRIVER_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}"
114 114
115# Define the pmu-rom filename, needed for coordination between native and machine recipes
116PMU_ROM ?= "pmu-rom.elf"
117
115# Add support to eSDK for gen-machine-conf if it exists 118# Add support to eSDK for gen-machine-conf if it exists
116PLNX_SCRIPTS_PATH = "${LAYERDIR}/gen-machine-conf/gen-machine-scripts" 119PLNX_SCRIPTS_PATH = "${LAYERDIR}/gen-machine-conf/gen-machine-scripts"
117BB_HASHEXCLUDE_COMMON:append = " PLNX_SCRIPTS_PATH" 120BB_HASHEXCLUDE_COMMON:append = " PLNX_SCRIPTS_PATH"
diff --git a/meta-xilinx-core/conf/machine/include/soc-zynqmp.inc b/meta-xilinx-core/conf/machine/include/soc-zynqmp.inc
index 74029c4a..88a95d9f 100644
--- a/meta-xilinx-core/conf/machine/include/soc-zynqmp.inc
+++ b/meta-xilinx-core/conf/machine/include/soc-zynqmp.inc
@@ -20,10 +20,6 @@ UBOOT_SUFFIX ?= "bin"
20 20
21XSERVER_EXT:zynqmp ?= "xf86-video-armsoc" 21XSERVER_EXT:zynqmp ?= "xf86-video-armsoc"
22 22
23# Default PMU ROM
24PMU_ROM ?= "${DEPLOY_DIR_IMAGE}/pmu-rom.elf"
25
26
27# Default expects the user to provide a specific pmu-firwmare in the deploy 23# Default expects the user to provide a specific pmu-firwmare in the deploy
28# directory, named "pmu-firmware-${MACHINE}.elf" 24# directory, named "pmu-firmware-${MACHINE}.elf"
29PMU_DEPENDS ??= "" 25PMU_DEPENDS ??= ""
diff --git a/meta-xilinx-core/recipes-bsp/pmu-firmware/pmu-rom-native.bb b/meta-xilinx-core/recipes-bsp/pmu-firmware/pmu-rom-native.bb
index 44ad9368..ef20397d 100644
--- a/meta-xilinx-core/recipes-bsp/pmu-firmware/pmu-rom-native.bb
+++ b/meta-xilinx-core/recipes-bsp/pmu-firmware/pmu-rom-native.bb
@@ -21,7 +21,7 @@ do_compile[noexec] = "1"
21do_install[noexec] = "1" 21do_install[noexec] = "1"
22 22
23do_deploy () { 23do_deploy () {
24 install -D ${S}/pmu-rom.elf ${DEPLOYDIR}/pmu-rom.elf 24 install -D ${S}/pmu-rom.elf ${DEPLOYDIR}/${PMU_ROM}
25} 25}
26 26
27addtask deploy before do_build after do_install 27addtask deploy before do_build after do_install