diff options
| author | Madhav Bhatt <madhav.bhatt@amd.com> | 2023-01-16 07:43:09 -0800 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2023-01-17 10:39:05 -0600 |
| commit | ce490fceff8eef8cab9b1413c1594227a3e6cb1f (patch) | |
| tree | 93dda4a11d3cf0e59ecd3b5ad311643f9e35e89c | |
| parent | fb3c0f3cb3eee77225ba632d2e4d7287c6291d74 (diff) | |
| download | meta-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>
| -rw-r--r-- | meta-xilinx-standalone-experimental/recipes-libraries/xilpm_git.bb | 13 |
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 @@ | |||
| 1 | inherit esw | 1 | inherit esw python3native |
| 2 | 2 | ||
| 3 | ESW_COMPONENT_SRC = "/lib/sw_services/xilpm/src/" | 3 | ESW_COMPONENT_SRC = "/lib/sw_services/xilpm/src/" |
| 4 | ESW_COMPONENT_NAME = "libxilpm.a" | 4 | ESW_COMPONENT_NAME = "libxilpm.a" |
| 5 | 5 | ||
| 6 | DEPENDS = "libxil ${@'xilplmi cframe' if d.getVar('ESW_MACHINE') == 'psv_pmc_0' else ''}" | 6 | DEPENDS += "libxil ${@'xilplmi cframe' if d.getVar('ESW_MACHINE') == 'psv_pmc_0' else ''}" |
| 7 | |||
| 8 | do_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 | } | ||
