From ce490fceff8eef8cab9b1413c1594227a3e6cb1f Mon Sep 17 00:00:00 2001 From: Madhav Bhatt Date: Mon, 16 Jan 2023 07:43:09 -0800 Subject: 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 Reworked the format of the prepend Signed-off-by: Mark Hatle --- .../recipes-libraries/xilpm_git.bb | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'meta-xilinx-standalone-experimental') 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 @@ -inherit esw +inherit esw python3native ESW_COMPONENT_SRC = "/lib/sw_services/xilpm/src/" ESW_COMPONENT_NAME = "libxilpm.a" -DEPENDS = "libxil ${@'xilplmi cframe' if d.getVar('ESW_MACHINE') == 'psv_pmc_0' else ''}" +DEPENDS += "libxil ${@'xilplmi cframe' if d.getVar('ESW_MACHINE') == 'psv_pmc_0' else ''}" + +do_configure:prepend:zynqmp() { + # This script should also not rely on relative paths and such + ( + cd ${S} + lopper -f --enhanced --werror ${DTS_FILE} -- generate_config_object pm_cfg_obj.c ${ESW_MACHINE} + install -m 0755 pm_cfg_obj.c ${S}/${ESW_COMPONENT_SRC}/ + ) +} -- cgit v1.2.3-54-g00ecf