diff options
| author | Mark Hatle <mark.hatle@xilinx.com> | 2022-01-14 15:57:22 -0800 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@xilinx.com> | 2022-01-19 08:20:13 -0800 |
| commit | 161018ee953783879e8456522b213e140b08abc0 (patch) | |
| tree | 23796bc7fdf169027d814e6201ee53024084a9d8 /meta-xilinx-core/dynamic-layers | |
| parent | da33abe7c4e50fc312f140ca87ad3b3c6e6b8c66 (diff) | |
| download | meta-xilinx-161018ee953783879e8456522b213e140b08abc0.tar.gz | |
core: Move lopper and python modules to dynamic-layers
Lopper comes from meta-virtualization, the python modules are required by
it and the related changes.
Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
Diffstat (limited to 'meta-xilinx-core/dynamic-layers')
6 files changed, 59 insertions, 0 deletions
diff --git a/meta-xilinx-core/dynamic-layers/meta-python/recipes-devtools/python/python3-flask-restful_%.bbappend b/meta-xilinx-core/dynamic-layers/meta-python/recipes-devtools/python/python3-flask-restful_%.bbappend new file mode 100644 index 00000000..608377e3 --- /dev/null +++ b/meta-xilinx-core/dynamic-layers/meta-python/recipes-devtools/python/python3-flask-restful_%.bbappend | |||
| @@ -0,0 +1 @@ | |||
| BBCLASSEXTEND = "native nativesdk" | |||
diff --git a/meta-xilinx-core/dynamic-layers/meta-python/recipes-devtools/python/python3-flask_%.bbappend b/meta-xilinx-core/dynamic-layers/meta-python/recipes-devtools/python/python3-flask_%.bbappend new file mode 100644 index 00000000..608377e3 --- /dev/null +++ b/meta-xilinx-core/dynamic-layers/meta-python/recipes-devtools/python/python3-flask_%.bbappend | |||
| @@ -0,0 +1 @@ | |||
| BBCLASSEXTEND = "native nativesdk" | |||
diff --git a/meta-xilinx-core/dynamic-layers/meta-python/recipes-devtools/python/python3-itsdangerous_%.bbappend b/meta-xilinx-core/dynamic-layers/meta-python/recipes-devtools/python/python3-itsdangerous_%.bbappend new file mode 100644 index 00000000..608377e3 --- /dev/null +++ b/meta-xilinx-core/dynamic-layers/meta-python/recipes-devtools/python/python3-itsdangerous_%.bbappend | |||
| @@ -0,0 +1 @@ | |||
| BBCLASSEXTEND = "native nativesdk" | |||
diff --git a/meta-xilinx-core/dynamic-layers/meta-python/recipes-devtools/python/python3-pandas_%.bbappend b/meta-xilinx-core/dynamic-layers/meta-python/recipes-devtools/python/python3-pandas_%.bbappend new file mode 100644 index 00000000..608377e3 --- /dev/null +++ b/meta-xilinx-core/dynamic-layers/meta-python/recipes-devtools/python/python3-pandas_%.bbappend | |||
| @@ -0,0 +1 @@ | |||
| BBCLASSEXTEND = "native nativesdk" | |||
diff --git a/meta-xilinx-core/dynamic-layers/meta-python/recipes-devtools/python/python3-werkzeug_%.bbappend b/meta-xilinx-core/dynamic-layers/meta-python/recipes-devtools/python/python3-werkzeug_%.bbappend new file mode 100644 index 00000000..608377e3 --- /dev/null +++ b/meta-xilinx-core/dynamic-layers/meta-python/recipes-devtools/python/python3-werkzeug_%.bbappend | |||
| @@ -0,0 +1 @@ | |||
| BBCLASSEXTEND = "native nativesdk" | |||
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 new file mode 100644 index 00000000..aa552fe5 --- /dev/null +++ b/meta-xilinx-core/dynamic-layers/virtualization-layer/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 | } | ||
