aboutsummaryrefslogtreecommitdiffstats
path: root/meta-xilinx-standalone-experimental/recipes-libraries/xilpm_git.bb
blob: 69b505c8d6c9e2c4a7ae2f18823a8fd7c6ea599a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 ''}"

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}/zynqmp/client/common/
    )
}