diff options
| -rw-r--r-- | meta-xilinx-core/dynamic-layers/virtualization-layer/recipes-kernel/lopper/lopper.bbappend | 72 | ||||
| -rw-r--r-- | meta-xilinx-core/recipes-kernel/lopper/xilinx-lops.bb | 10 |
2 files changed, 37 insertions, 45 deletions
diff --git a/meta-xilinx-core/dynamic-layers/virtualization-layer/recipes-kernel/lopper/lopper.bbappend b/meta-xilinx-core/dynamic-layers/virtualization-layer/recipes-kernel/lopper/lopper.bbappend index 034dce2d..ccbc19e2 100644 --- a/meta-xilinx-core/dynamic-layers/virtualization-layer/recipes-kernel/lopper/lopper.bbappend +++ b/meta-xilinx-core/dynamic-layers/virtualization-layer/recipes-kernel/lopper/lopper.bbappend | |||
| @@ -1,53 +1,43 @@ | |||
| 1 | DEPENDS = " \ | 1 | SUMMARY = "Device Tree Lopper" |
| 2 | dtc \ | 2 | DESCRIPTION = "Tool for manipulation of system device tree files" |
| 3 | LICENSE = "BSD-3-Clause" | ||
| 4 | SECTION = "bootloader" | ||
| 5 | |||
| 6 | FILESEXTRAPATHS:append := ":${THISDIR}/lopper" | ||
| 7 | |||
| 8 | SRC_URI = "git://github.com/devicetree-org/lopper.git;branch=master;protocol=https" | ||
| 9 | SRCREV = "f70eb86385f49545070a84ad756902b3cd607e21" | ||
| 10 | S = "${WORKDIR}/git" | ||
| 11 | |||
| 12 | PV="v1.0.2+git${SRCPV}" | ||
| 13 | |||
| 14 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=8e5f5f691f01c9fdfa7a7f2d535be619" | ||
| 15 | |||
| 16 | RDEPENDS:${PN} = " \ | ||
| 17 | python3-core \ | ||
| 3 | python3-dtc \ | 18 | python3-dtc \ |
| 4 | python3-flask \ | ||
| 5 | python3-flask-restful \ | ||
| 6 | python3-six \ | ||
| 7 | python3-pandas \ | ||
| 8 | python3-ruamel-yaml \ | ||
| 9 | python3-anytree \ | ||
| 10 | python3-pyyaml \ | ||
| 11 | python3-humanfriendly \ | 19 | python3-humanfriendly \ |
| 12 | " | ||
| 13 | |||
| 14 | RDEPENDS:${PN} += " \ | ||
| 15 | python3-flask \ | ||
| 16 | python3-flask-restful \ | ||
| 17 | python3-six \ | ||
| 18 | python3-pandas \ | ||
| 19 | python3-ruamel-yaml \ | 20 | python3-ruamel-yaml \ |
| 20 | python3-anytree \ | 21 | python3-anytree \ |
| 22 | python3-six \ | ||
| 21 | python3-pyyaml \ | 23 | python3-pyyaml \ |
| 22 | " | 24 | " |
| 23 | 25 | ||
| 24 | SRC_URI = "git://github.com/devicetree-org/lopper.git;branch=master" | 26 | inherit setuptools3 |
| 25 | SRCREV = "17350a773a73c426a826e32e4e093effc718ecf5" | ||
| 26 | |||
| 27 | do_install() { | ||
| 28 | install -d "${D}/${bindir}" | ||
| 29 | install -d "${D}/${datadir}/${BPN}" | ||
| 30 | 27 | ||
| 31 | install -m 0644 "${S}/README.md" "${D}/${datadir}/${BPN}" | 28 | INHIBIT_PACKAGE_STRIP = "1" |
| 32 | install -m 0644 "${S}/README-architecture.md" "${D}/${datadir}/${BPN}" | ||
| 33 | install -m 0644 "${S}/README.pydoc" "${D}/${datadir}/${BPN}" | ||
| 34 | install -m 0644 "${S}/LICENSE.md" "${D}/${datadir}/${BPN}" | ||
| 35 | 29 | ||
| 36 | install -d "${D}/${datadir}/${BPN}/assists" | 30 | do_install() { |
| 37 | cp -r "${S}/lopper/assists/"* "${D}/${datadir}/${BPN}/assists/" | 31 | distutils3_do_install |
| 38 | |||
| 39 | install -d "${D}/${datadir}/${BPN}/lops" | ||
| 40 | install -m 0644 "${S}/lopper/lops/"* "${D}/${datadir}/${BPN}/lops/" | ||
| 41 | |||
| 42 | install -d "${D}/${datadir}/${BPN}/device-trees" | ||
| 43 | install -m 0644 "${S}/device-trees/"* "${D}/${datadir}/${BPN}/device-trees/" | ||
| 44 | 32 | ||
| 45 | install -m 0644 "${S}/lopper/"lopper.ini "${D}/${datadir}/${BPN}/" | 33 | # we have to remove the vendor'd libfdt, since an attempt to strip it |
| 34 | # will be made, and it will fail in a cross environment. | ||
| 35 | rm -rf ${D}/${PYTHON_SITEPACKAGES_DIR}/${BPN}/vendor | ||
| 36 | } | ||
| 46 | 37 | ||
| 47 | install -m 0755 "${S}/"lopper*.py "${D}/${datadir}/${BPN}/" | 38 | BBCLASSEXTEND = "native nativesdk" |
| 48 | sed -i 's,#!/usr/bin/python3,#!/usr/bin/env python3,' ${D}/${datadir}/${BPN}/lopper.py | ||
| 49 | sed -i 's,#!/usr/bin/python3,#!/usr/bin/env python3,' ${D}/${datadir}/${BPN}/lopper_sanity.py | ||
| 50 | 39 | ||
| 51 | datadir_relpath=${@os.path.relpath(d.getVar('datadir'), d.getVar('bindir'))} | 40 | python() { |
| 52 | ln -s "${datadir_relpath}/${BPN}/lopper.py" "${D}/${bindir}/" | 41 | d.delVarFlag('do_configure', 'noexec') |
| 42 | d.delVarFlag('do_compile', 'noexec') | ||
| 53 | } | 43 | } |
diff --git a/meta-xilinx-core/recipes-kernel/lopper/xilinx-lops.bb b/meta-xilinx-core/recipes-kernel/lopper/xilinx-lops.bb index 77456376..38ec473b 100644 --- a/meta-xilinx-core/recipes-kernel/lopper/xilinx-lops.bb +++ b/meta-xilinx-core/recipes-kernel/lopper/xilinx-lops.bb | |||
| @@ -14,14 +14,16 @@ LIC_FILES_CHKSUM = "file://lop-microblaze-yocto.dts;endline=8;md5=a0e89d39fa397e | |||
| 14 | 14 | ||
| 15 | S = "${WORKDIR}" | 15 | S = "${WORKDIR}" |
| 16 | 16 | ||
| 17 | inherit python3-dir | ||
| 18 | |||
| 17 | do_configure[noexec] = '1' | 19 | do_configure[noexec] = '1' |
| 18 | do_compile[noexec] = '1' | 20 | do_compile[noexec] = '1' |
| 19 | 21 | ||
| 20 | do_install() { | 22 | do_install() { |
| 21 | mkdir -p ${D}/${datadir}/lopper/lops | 23 | mkdir -p ${D}/${PYTHON_SITEPACKAGES_DIR}/lopper/lops |
| 22 | cp ${S}/lop-microblaze-yocto.dts ${D}/${datadir}/lopper/lops/. | 24 | cp ${S}/lop-microblaze-yocto.dts ${D}/${PYTHON_SITEPACKAGES_DIR}/lopper/lops/. |
| 23 | cp ${S}/lop-xilinx-id-cpus.dts ${D}/${datadir}/lopper/lops/. | 25 | cp ${S}/lop-xilinx-id-cpus.dts ${D}/${PYTHON_SITEPACKAGES_DIR}/lopper/lops/. |
| 24 | } | 26 | } |
| 25 | 27 | ||
| 26 | FILES:${PN} += "${datadir}/lopper/lops" | 28 | FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR}/lopper/lops" |
| 27 | BBCLASSEXTEND = "native nativesdk" | 29 | BBCLASSEXTEND = "native nativesdk" |
