summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-xilinx-bsp/recipes-devtools/python/python3-humanfriendly_%.bbappend1
-rw-r--r--meta-xilinx-bsp/recipes-devtools/python/python3-ruamel-yaml_%.bbappend1
-rw-r--r--meta-xilinx-bsp/recipes-devtools/python/python3-six_%.bbappend1
-rw-r--r--meta-xilinx-bsp/recipes-kernel/lopper/lopper.bb56
-rw-r--r--meta-xilinx-bsp/recipes-kernel/lopper/lopper.bbappend54
5 files changed, 54 insertions, 59 deletions
diff --git a/meta-xilinx-bsp/recipes-devtools/python/python3-humanfriendly_%.bbappend b/meta-xilinx-bsp/recipes-devtools/python/python3-humanfriendly_%.bbappend
deleted file mode 100644
index 608377e3..00000000
--- a/meta-xilinx-bsp/recipes-devtools/python/python3-humanfriendly_%.bbappend
+++ /dev/null
@@ -1 +0,0 @@
1BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-xilinx-bsp/recipes-devtools/python/python3-ruamel-yaml_%.bbappend b/meta-xilinx-bsp/recipes-devtools/python/python3-ruamel-yaml_%.bbappend
deleted file mode 100644
index 608377e3..00000000
--- a/meta-xilinx-bsp/recipes-devtools/python/python3-ruamel-yaml_%.bbappend
+++ /dev/null
@@ -1 +0,0 @@
1BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-xilinx-bsp/recipes-devtools/python/python3-six_%.bbappend b/meta-xilinx-bsp/recipes-devtools/python/python3-six_%.bbappend
deleted file mode 100644
index 608377e3..00000000
--- a/meta-xilinx-bsp/recipes-devtools/python/python3-six_%.bbappend
+++ /dev/null
@@ -1 +0,0 @@
1BBCLASSEXTEND = "native nativesdk"
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 @@
1SUMMARY = "Device tree lopper"
2DESCRIPTION = "Tool to subset a system device tree"
3SECTION = "bootloader"
4LICENSE = "BSD-3-Clause"
5
6RDEPENDS:${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
20SRC_URI = "git://github.com/devicetree-org/lopper.git;branch=master"
21
22LIC_FILES_CHKSUM = "file://LICENSE.md;md5=8e5f5f691f01c9fdfa7a7f2d535be619"
23
24SRCREV = "4fc085c4be031996e7f48dcaf03d0782989c8d58"
25
26S = "${WORKDIR}/git"
27
28do_configure() {
29 :
30}
31
32do_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
37do_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
56BBCLASSEXTEND = "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 @@
1DEPENDS = " \
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
14RDEPENDS:${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
24SRC_URI = "git://github.com/devicetree-org/lopper.git;branch=master"
25SRCREV = "4fc085c4be031996e7f48dcaf03d0782989c8d58"
26
27do_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}