summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-standalone-sdt/recipes-bsp/embeddedsw/esw-conf_2024.1.bb
blob: bd62913fbffb5ccb7c72238f770a292491f53a1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Can't depend on esw since this is needed for setup!
inherit xlnx-embeddedsw

INHIBIT_DEFAULT_DEPS = "1"

# Installing this recipe should install the lopper tools and such
DEPENDS = "lopper xilinx-lops"

COMPATIBLE_HOST:forcevariable = ".*"

ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/"

do_configure[noexec] = '1'
do_compile[noexec] = '1'

do_install() {
    # The configuration step requires only the yaml files, make them
    # available to the SDK
    cd ${S}${ESW_COMPONENT_SRC}
    for each in `find . -name *.yaml` ; do
        mkdir -p $(dirname ${D}/${datadir}/embeddedsw${ESW_COMPONENT_SRC}$each)
        install -m 0644 $each ${D}/${datadir}/embeddedsw${ESW_COMPONENT_SRC}$each
    done
}

FILES:${PN} += "${datadir}/embeddedsw"

BBCLASSEXTEND = "native nativesdk"