diff options
author | Mark Hatle <mark.hatle@xilinx.com> | 2021-10-14 11:40:10 -0700 |
---|---|---|
committer | Mark Hatle <mark.hatle@xilinx.com> | 2021-10-25 14:57:25 -0700 |
commit | 81616c60caa005e7bf10603d3f92f8b37451aeda (patch) | |
tree | 57d12e0f4a3a99b195c05f50ae3e7f2330754947 /meta-xilinx-bsp/recipes-kernel | |
parent | d88f5d53d1471443f3ee5f9899177598d2dc156b (diff) | |
download | meta-xilinx-81616c60caa005e7bf10603d3f92f8b37451aeda.tar.gz |
lopper: move to bbappend, remove obsolete items
Lopper is now provided in meta-virtualization, but that version appears
to be a bit older then what we need.
For the python modules that were depended by lopper, many are no available
in native and nativesdk versions. Remove unnecessary bbappends.
Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
Diffstat (limited to 'meta-xilinx-bsp/recipes-kernel')
-rw-r--r-- | meta-xilinx-bsp/recipes-kernel/lopper/lopper.bb | 56 | ||||
-rw-r--r-- | meta-xilinx-bsp/recipes-kernel/lopper/lopper.bbappend | 54 |
2 files changed, 54 insertions, 56 deletions
diff --git a/meta-xilinx-bsp/recipes-kernel/lopper/lopper.bb b/meta-xilinx-bsp/recipes-kernel/lopper/lopper.bb deleted file mode 100644 index fc8dc755..00000000 --- a/meta-xilinx-bsp/recipes-kernel/lopper/lopper.bb +++ /dev/null | |||
@@ -1,56 +0,0 @@ | |||
1 | SUMMARY = "Device tree lopper" | ||
2 | DESCRIPTION = "Tool to subset a system device tree" | ||
3 | SECTION = "bootloader" | ||
4 | LICENSE = "BSD-3-Clause" | ||
5 | |||
6 | RDEPENDS:${PN} += " \ | ||
7 | python3-core \ | ||
8 | dtc \ | ||
9 | python3-dtc \ | ||
10 | python3-flask \ | ||
11 | python3-flask-restful \ | ||
12 | python3-six \ | ||
13 | python3-pandas \ | ||
14 | python3-ruamel-yaml \ | ||
15 | python3-anytree \ | ||
16 | python3-pyyaml \ | ||
17 | python3-humanfriendly \ | ||
18 | " | ||
19 | |||
20 | SRC_URI = "git://github.com/devicetree-org/lopper.git;branch=master" | ||
21 | |||
22 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=8e5f5f691f01c9fdfa7a7f2d535be619" | ||
23 | |||
24 | SRCREV = "4fc085c4be031996e7f48dcaf03d0782989c8d58" | ||
25 | |||
26 | S = "${WORKDIR}/git" | ||
27 | |||
28 | do_configure() { | ||
29 | : | ||
30 | } | ||
31 | |||
32 | do_compile() { | ||
33 | sed -i 's,#!/usr/bin/python3,#!/usr/bin/env python3,' lopper.py | ||
34 | sed -i 's,#!/usr/bin/python3,#!/usr/bin/env python3,' lopper_sanity.py | ||
35 | } | ||
36 | |||
37 | do_install() { | ||
38 | datadirrelpath=${@os.path.relpath(d.getVar('datadir'), d.getVar('bindir'))} | ||
39 | |||
40 | mkdir -p ${D}/${bindir} | ||
41 | mkdir -p ${D}/${datadir}/lopper | ||
42 | |||
43 | cp -r ${S}/README* ${D}/${datadir}/lopper/. | ||
44 | cp -r ${S}/assists* ${D}/${datadir}/lopper/. | ||
45 | cp -r ${S}/lop* ${D}/${datadir}/lopper/. | ||
46 | cp -r ${S}/LICENSE* ${D}/${datadir}/lopper/. | ||
47 | cp -r ${S}/device-tree* ${D}/${datadir}/lopper/. | ||
48 | cp -r ${S}/.gitignore ${D}/${datadir}/lopper/. | ||
49 | if [ -f ${S}/*.dts ]; then | ||
50 | cp -rf ${S}/*.dts ${D}/${datadir}/lopper/. | ||
51 | fi | ||
52 | |||
53 | ln -s ${datadirrelpath}/lopper/lopper.py ${D}/${bindir}/. | ||
54 | } | ||
55 | |||
56 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta-xilinx-bsp/recipes-kernel/lopper/lopper.bbappend b/meta-xilinx-bsp/recipes-kernel/lopper/lopper.bbappend new file mode 100644 index 00000000..aa552fe5 --- /dev/null +++ b/meta-xilinx-bsp/recipes-kernel/lopper/lopper.bbappend | |||
@@ -0,0 +1,54 @@ | |||
1 | DEPENDS = " \ | ||
2 | dtc \ | ||
3 | 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 \ | ||
12 | " | ||
13 | |||
14 | RDEPENDS:${PN} += " \ | ||
15 | python3-flask \ | ||
16 | python3-flask-restful \ | ||
17 | python3-six \ | ||
18 | python3-pandas \ | ||
19 | python3-ruamel-yaml \ | ||
20 | python3-anytree \ | ||
21 | python3-pyyaml \ | ||
22 | " | ||
23 | |||
24 | SRC_URI = "git://github.com/devicetree-org/lopper.git;branch=master" | ||
25 | SRCREV = "4fc085c4be031996e7f48dcaf03d0782989c8d58" | ||
26 | |||
27 | do_install() { | ||
28 | install -d "${D}/${bindir}" | ||
29 | install -d "${D}/${datadir}/${BPN}" | ||
30 | |||
31 | install -m 0644 "${S}/README" "${D}/${datadir}/${BPN}" | ||
32 | install -m 0644 "${S}/README-architecture.txt" "${D}/${datadir}/${BPN}" | ||
33 | install -m 0644 "${S}/README.pydoc" "${D}/${datadir}/${BPN}" | ||
34 | install -m 0644 "${S}/LICENSE.md" "${D}/${datadir}/${BPN}" | ||
35 | |||
36 | install -d "${D}/${datadir}/${BPN}/assists" | ||
37 | #install -m 0644 "${S}/assists/"* "${D}/${datadir}/${BPN}/assists/" | ||
38 | cp -r "${S}/assists/"* "${D}/${datadir}/${BPN}/assists/" | ||
39 | |||
40 | install -d "${D}/${datadir}/${BPN}/lops" | ||
41 | install -m 0644 "${S}/lops/"* "${D}/${datadir}/${BPN}/lops/" | ||
42 | |||
43 | install -d "${D}/${datadir}/${BPN}/device-trees" | ||
44 | install -m 0644 "${S}/device-trees/"* "${D}/${datadir}/${BPN}/device-trees/" | ||
45 | |||
46 | install -m 0644 "${S}/"lopper.ini "${D}/${datadir}/${BPN}/" | ||
47 | |||
48 | install -m 0755 "${S}/"lopper*.py "${D}/${datadir}/${BPN}/" | ||
49 | sed -i 's,#!/usr/bin/python3,#!/usr/bin/env python3,' ${D}/${datadir}/${BPN}/lopper.py | ||
50 | sed -i 's,#!/usr/bin/python3,#!/usr/bin/env python3,' ${D}/${datadir}/${BPN}/lopper_sanity.py | ||
51 | |||
52 | datadir_relpath=${@os.path.relpath(d.getVar('datadir'), d.getVar('bindir'))} | ||
53 | ln -s "${datadir_relpath}/${BPN}/lopper.py" "${D}/${bindir}/" | ||
54 | } | ||