summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-standalone-experimental
diff options
context:
space:
mode:
authorMadhav Bhatt <madhav.bhatt@amd.com>2023-01-16 07:43:09 -0800
committerMark Hatle <mark.hatle@amd.com>2023-01-17 10:39:05 -0600
commitce490fceff8eef8cab9b1413c1594227a3e6cb1f (patch)
tree93dda4a11d3cf0e59ecd3b5ad311643f9e35e89c /meta-xilinx-standalone-experimental
parentfb3c0f3cb3eee77225ba632d2e4d7287c6291d74 (diff)
downloadmeta-xilinx-ce490fceff8eef8cab9b1413c1594227a3e6cb1f.tar.gz
meta-xilinx-standalone-experimental: recipes-libraries: Include config object generation by lopper
Add support for the config object generation for given system device tree using lopper plugin for zynqmp. Signed-off-by: Madhav Bhatt <madhav.bhatt@amd.com> Reworked the format of the prepend Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-standalone-experimental')
-rw-r--r--meta-xilinx-standalone-experimental/recipes-libraries/xilpm_git.bb13
1 files changed, 11 insertions, 2 deletions
diff --git a/meta-xilinx-standalone-experimental/recipes-libraries/xilpm_git.bb b/meta-xilinx-standalone-experimental/recipes-libraries/xilpm_git.bb
index 47431446..f514bc2b 100644
--- a/meta-xilinx-standalone-experimental/recipes-libraries/xilpm_git.bb
+++ b/meta-xilinx-standalone-experimental/recipes-libraries/xilpm_git.bb
@@ -1,6 +1,15 @@
1inherit esw 1inherit esw python3native
2 2
3ESW_COMPONENT_SRC = "/lib/sw_services/xilpm/src/" 3ESW_COMPONENT_SRC = "/lib/sw_services/xilpm/src/"
4ESW_COMPONENT_NAME = "libxilpm.a" 4ESW_COMPONENT_NAME = "libxilpm.a"
5 5
6DEPENDS = "libxil ${@'xilplmi cframe' if d.getVar('ESW_MACHINE') == 'psv_pmc_0' else ''}" 6DEPENDS += "libxil ${@'xilplmi cframe' if d.getVar('ESW_MACHINE') == 'psv_pmc_0' else ''}"
7
8do_configure:prepend:zynqmp() {
9 # This script should also not rely on relative paths and such
10 (
11 cd ${S}
12 lopper -f --enhanced --werror ${DTS_FILE} -- generate_config_object pm_cfg_obj.c ${ESW_MACHINE}
13 install -m 0755 pm_cfg_obj.c ${S}/${ESW_COMPONENT_SRC}/
14 )
15}