diff options
author | Mark Hatle <mark.hatle@amd.com> | 2025-02-07 16:30:15 -0700 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2025-03-30 14:16:15 -0600 |
commit | d3511b5be3126ddd2604775be8fede071e255f8c (patch) | |
tree | 589352e7c8c17e20f709eef8b22736af8a6f687b | |
parent | 744b806f7f5d1122754e9c5f7a487128c671d6bf (diff) | |
download | meta-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.conf | 3 | ||||
-rw-r--r-- | meta-xilinx-core/conf/machine/include/soc-zynqmp.inc | 4 | ||||
-rw-r--r-- | meta-xilinx-core/recipes-bsp/pmu-firmware/pmu-rom-native.bb | 2 |
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" | |||
112 | AI_ENGINE_DRIVER_VERSION[v2024.2] = "3.6" | 112 | AI_ENGINE_DRIVER_VERSION[v2024.2] = "3.6" |
113 | PREFERRED_VERSION_ai-engine-driver ?= "${@d.getVarFlag('AI_ENGINE_DRIVER_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}" | 113 | PREFERRED_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 | ||
116 | PMU_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 |
116 | PLNX_SCRIPTS_PATH = "${LAYERDIR}/gen-machine-conf/gen-machine-scripts" | 119 | PLNX_SCRIPTS_PATH = "${LAYERDIR}/gen-machine-conf/gen-machine-scripts" |
117 | BB_HASHEXCLUDE_COMMON:append = " PLNX_SCRIPTS_PATH" | 120 | BB_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 | ||
21 | XSERVER_EXT:zynqmp ?= "xf86-video-armsoc" | 21 | XSERVER_EXT:zynqmp ?= "xf86-video-armsoc" |
22 | 22 | ||
23 | # Default PMU ROM | ||
24 | PMU_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" |
29 | PMU_DEPENDS ??= "" | 25 | PMU_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" | |||
21 | do_install[noexec] = "1" | 21 | do_install[noexec] = "1" |
22 | 22 | ||
23 | do_deploy () { | 23 | do_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 | ||
27 | addtask deploy before do_build after do_install | 27 | addtask deploy before do_build after do_install |