From f3e3653d4dd96a69e07f6d2eae3644b51935c6a4 Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Mon, 8 Nov 2021 21:57:02 -0500 Subject: lopper: update to v1.0 and setuptools based project Switching to lopper 1.0 brings us a more standard setuptools based project for install and packaging. This update also fixes the experimental update to master-next, which was incomplete and broken. The only signficant user visible change with this update is that lopper.py is now 'lopper' and any calling recipes need to be updated accordingly. Signed-off-by: Bruce Ashfield --- recipes-kernel/lopper/lopper.bb | 45 ------------------------------------- recipes-kernel/lopper/lopper_git.bb | 31 +++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 45 deletions(-) delete mode 100644 recipes-kernel/lopper/lopper.bb create mode 100644 recipes-kernel/lopper/lopper_git.bb (limited to 'recipes-kernel') diff --git a/recipes-kernel/lopper/lopper.bb b/recipes-kernel/lopper/lopper.bb deleted file mode 100644 index f36b898c..00000000 --- a/recipes-kernel/lopper/lopper.bb +++ /dev/null @@ -1,45 +0,0 @@ -SUMMARY = "Device Tree Lopper" -DESCRIPTION = "Tool for manipulation of system device tree files" -LICENSE = "BSD-3-Clause" -SECTION = "bootloader" - -SRC_URI = "git://github.com/devicetree-org/lopper.git;branch=master-next;protocol=https" -SRCREV = "3e6aa522d2469ba7563fc6691802cf4aae3d2fd7" -S = "${WORKDIR}/git" - -LIC_FILES_CHKSUM = "file://LICENSE.md;md5=8e5f5f691f01c9fdfa7a7f2d535be619" - -RDEPENDS:${PN} = " \ - python3-core \ - python3-dtc \ - python3-humanfriendly \ - " - -do_install() { - install -d "${D}/${bindir}" - install -d "${D}/${datadir}/${BPN}" - - install -m 0644 "${S}/README.md" "${D}/${datadir}/${BPN}" - install -m 0644 "${S}/README-architecture.md" "${D}/${datadir}/${BPN}" - install -m 0644 "${S}/README.pydoc" "${D}/${datadir}/${BPN}" - install -m 0644 "${S}/LICENSE.md" "${D}/${datadir}/${BPN}" - - install -d "${D}/${datadir}/${BPN}/lopper/assists" - cp -r "${S}/lopper/assists/"* "${D}/${datadir}/${BPN}/lopper/assists/" - - install -d "${D}/${datadir}/${BPN}/lopper/lops" - install -m 0644 "${S}/lopper/lops/"* "${D}/${datadir}/${BPN}/lopper/lops/" - - install -d "${D}/${datadir}/${BPN}/device-trees" - install -m 0644 "${S}/device-trees/"* "${D}/${datadir}/${BPN}/device-trees/" - - install -m 0755 "${S}/"lopper*.py "${D}/${datadir}/${BPN}/" - - datadir_relpath=${@os.path.relpath(d.getVar('datadir'), d.getVar('bindir'))} - ln -s "${datadir_relpath}/${BPN}/lopper.py" "${D}/${bindir}/" -} - -do_configure[noexec] = "1" -do_compile[noexec] = "1" - -BBCLASSEXTEND = "native nativesdk" diff --git a/recipes-kernel/lopper/lopper_git.bb b/recipes-kernel/lopper/lopper_git.bb new file mode 100644 index 00000000..606dab64 --- /dev/null +++ b/recipes-kernel/lopper/lopper_git.bb @@ -0,0 +1,31 @@ +SUMMARY = "Device Tree Lopper" +DESCRIPTION = "Tool for manipulation of system device tree files" +LICENSE = "BSD-3-Clause" +SECTION = "bootloader" + +SRC_URI = "git://github.com/devicetree-org/lopper.git;branch=master;protocol=https" +SRCREV = "3c81fcce08eeb64cbbde1535abd83572985a8689" +S = "${WORKDIR}/git" + +PV="v1.0+git${SRCPV}" + +LIC_FILES_CHKSUM = "file://LICENSE.md;md5=8e5f5f691f01c9fdfa7a7f2d535be619" + +RDEPENDS:${PN} = " \ + python3-core \ + python3-dtc \ + python3-humanfriendly \ + " + +inherit setuptools3 + +INHIBIT_PACKAGE_STRIP = "1" + +do_install:append() { + # we have to remove the vendor'd libfdt, since an attempt to strip it + # will be made, and it will fail in a cross environment. + rm -rf ${D}/${PYTHON_SITEPACKAGES_DIR}/${BPN}/vendor +} + +BBCLASSEXTEND = "native nativesdk" + -- cgit v1.2.3-54-g00ecf