summaryrefslogtreecommitdiff
path: root/meta-xilinx/meta-xilinx-standalone/recipes-libraries/libxil_git.bb
blob: 4ac7c1150033e205ef27fb887fec5d1d66ced837 (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
inherit esw python3native

ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/"
ESW_COMPONENT_NAME = "libxil.a"

DEPENDS += "dtc-native python3-dtc-native python3-pyyaml-native xilstandalone xilmem device-tree"

do_configure_prepend() {
    # This will generate CMakeLists.txt which contains
    # drivers for the libxil 
    cd ${S}
    #TODO
    # This call was initially used to get the list of drivers and libraries required
    # by the design to the build system to use as dependencies to the application
    # being built, at this point this is all done in a single cmake build bundling
    # everything in libxil, which is undesired.
    DRIVERS_LIST=$(nativepython3 ${S}/scripts/getdrvlist.py -d ${DTBFILE})
}

do_generate_driver_data() {
    # This script should also not rely on relative paths and such
    cd ${S}
    nativepython3 ${S}/scripts/generate_drvdata.py -d ${DTBFILE}
}

addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot
do_prepare_recipe_sysroot[rdeptask] = "do_unpack"