summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikko Rapeli <mikko.rapeli@linaro.org>2024-09-22 11:41:17 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-10-01 12:40:48 +0100
commit996146db8f79a724a240864bb6593c125371fc8c (patch)
tree2070d42ff10b92dda081143ddaef6347e2ec4697
parentd41667a65320396012b3147a5c8132fbca487513 (diff)
downloadpoky-996146db8f79a724a240864bb6593c125371fc8c.tar.gz
python3-pefile: add recipe from meta-openembedded
It is needed by systemd ukify tool and uki.bbclass to generate UEFI boot binaries. Added to fast list in ptest-packagelists.inc. (From OE-Core rev: 4069c485046fe6d008dd0c48269f29d92146d923) Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/conf/distro/include/ptest-packagelists.inc1
-rw-r--r--meta/recipes-devtools/python/python3-pefile/run-ptest3
-rw-r--r--meta/recipes-devtools/python/python3-pefile_2023.2.7.bb28
3 files changed, 32 insertions, 0 deletions
diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc
index 7b8418654a..4a48188562 100644
--- a/meta/conf/distro/include/ptest-packagelists.inc
+++ b/meta/conf/distro/include/ptest-packagelists.inc
@@ -70,6 +70,7 @@ PTESTS_FAST = "\
70 python3-more-itertools \ 70 python3-more-itertools \
71 python3-packaging \ 71 python3-packaging \
72 python3-pluggy \ 72 python3-pluggy \
73 python3-pefile \
73 python3-pyasn1 \ 74 python3-pyasn1 \
74 python3-pytz \ 75 python3-pytz \
75 python3-pyyaml \ 76 python3-pyyaml \
diff --git a/meta/recipes-devtools/python/python3-pefile/run-ptest b/meta/recipes-devtools/python/python3-pefile/run-ptest
new file mode 100644
index 0000000000..95ae72306f
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-pefile/run-ptest
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3pytest --automake --ignore=./tests/pefile_test.py
diff --git a/meta/recipes-devtools/python/python3-pefile_2023.2.7.bb b/meta/recipes-devtools/python/python3-pefile_2023.2.7.bb
new file mode 100644
index 0000000000..e30b362323
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-pefile_2023.2.7.bb
@@ -0,0 +1,28 @@
1SUMMARY = "Python PE parsing module"
2DESCRIPTION = "A multi-platform Python module to parse and work with Portable Executable (PE) files."
3HOMEPAGE = "https://github.com/erocarrera/pefile"
4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=38066667888b01d8118ff9cc23da1873"
6
7inherit setuptools3 ptest
8SRCREV = "1ab2807c4eec16041e791d7a6acc68cc23fd5266"
9SRC_URI = "git://github.com/erocarrera/pefile;branch=master;protocol=https \
10 file://run-ptest"
11S = "${WORKDIR}/git"
12
13BBCLASSEXTEND = "native nativesdk"
14
15do_install_ptest() {
16 install -d ${D}${PTEST_PATH}/tests
17 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
18}
19
20RDEPENDS:${PN} += " \
21 python3-mmap \
22 python3-netclient \
23 python3-stringold \
24"
25RDEPENDS:${PN}-ptest += "\
26 python3-pytest \
27 python3-unittest-automake-output \
28"