diff options
Diffstat (limited to 'meta-xilinx/meta-xilinx-bsp/recipes-kernel/lopper/lopper.bb')
-rw-r--r-- | meta-xilinx/meta-xilinx-bsp/recipes-kernel/lopper/lopper.bb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-xilinx/meta-xilinx-bsp/recipes-kernel/lopper/lopper.bb b/meta-xilinx/meta-xilinx-bsp/recipes-kernel/lopper/lopper.bb new file mode 100644 index 000000000..4b6d89052 --- /dev/null +++ b/meta-xilinx/meta-xilinx-bsp/recipes-kernel/lopper/lopper.bb @@ -0,0 +1,35 @@ +SUMMARY = "Device tree lopper" +DESCRIPTION = "Tool to subset a system device tree" +SECTION = "bootloader" +LICENSE = "BSD-3-Clause" +DEPENDS += "python3-dtc" + +RDEPENDS_${PN} += "python3-core python3-dtc" + +SRC_URI = "git://github.com/devicetree-org/lopper.git" + +LIC_FILES_CHKSUM = "file://LICENSE.md;md5=8e5f5f691f01c9fdfa7a7f2d535be619" + +SRCREV = "9398385d3ac06419b25d34de21501bc7ac0e8ac3" + +S = "${WORKDIR}/git" + +do_configure() { + : +} + +do_compile() { + sed -i 's,#!/usr/bin/python3,#!/usr/bin/env python3,' lopper.py + sed -i 's,#!/usr/bin/python3,#!/usr/bin/env python3,' lopper_sanity.py +} + +do_install() { + datadirrelpath=${@os.path.relpath(d.getVar('datadir'), d.getVar('bindir'))} + + mkdir -p ${D}/${bindir} + mkdir -p ${D}/${datadir}/lopper + cp -r ${S}/* ${D}/${datadir}/lopper/. + ln -s ${datadirrelpath}/lopper/lopper.py ${D}/${bindir}/. +} + +BBCLASSEXTEND = "native nativesdk" |