| Message ID | 20240919143706.6074-2-mikko.rapeli@linaro.org |
|---|---|
| State | New |
| Headers | show |
| Series | systemd uki support | expand |
On Thu, 2024-09-19 at 17:36 +0300, Mikko Rapeli via lists.openembedded.org wrote: > It is needed by systemd ukify tool and uki.bbclass to generate > UEFI boot binaries. > > Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> > --- > .../python/python3-pefile/run-ptest | 3 ++ > .../python/python3-pefile_2023.2.7.bb | 28 +++++++++++++++++++ > 2 files changed, 31 insertions(+) > create mode 100644 meta/recipes-devtools/python/python3-pefile/run-ptest > create mode 100644 meta/recipes-devtools/python/python3-pefile_2023.2.7.bb > > 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 @@ > +#!/bin/sh > + > +pytest --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 @@ > +SUMMARY = "Python PE parsing module" > +DESCRIPTION = "A multi-platform Python module to parse and work with Portable Executable (PE) files." > +HOMEPAGE = "https://github.com/erocarrera/pefile" > +LICENSE = "MIT" > +LIC_FILES_CHKSUM = "file://LICENSE;md5=38066667888b01d8118ff9cc23da1873" > + > +inherit setuptools3 ptest > +SRCREV = "1ab2807c4eec16041e791d7a6acc68cc23fd5266" > +SRC_URI = "git://github.com/erocarrera/pefile;branch=master;protocol=https \ > + file://run-ptest" > +S = "${WORKDIR}/git" > + > +BBCLASSEXTEND = "native nativesdk" > + > +do_install_ptest() { > + install -d ${D}${PTEST_PATH}/tests > + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ > +} > + > +RDEPENDS:${PN} += " \ > + python3-mmap \ > + python3-netclient \ > + python3-stringold \ > +" > +RDEPENDS:${PN}-ptest += "\ > + python3-pytest \ > + python3-unittest-automake-output \ > +" I've not gone into the series in detail but there was testing capacity so I did run it through that. This recipe caused: https://valkyrie.yoctoproject.org/#/builders/59/builds/140/steps/11/logs/stdio https://valkyrie.yoctoproject.org/#/builders/17/builds/144/steps/12/logs/stdio https://valkyrie.yoctoproject.org/#/builders/37/builds/169/steps/12/logs/stdio https://valkyrie.yoctoproject.org/#/builders/6/builds/153/steps/11/logs/stdio https://valkyrie.yoctoproject.org/#/builders/3/builds/162/steps/11/logs/stdio https://valkyrie.yoctoproject.org/#/builders/25/builds/154/steps/11/logs/stdio Cheers, Richard
Hi, On Fri, Sep 20, 2024 at 08:24:58AM +0100, Richard Purdie wrote: > On Thu, 2024-09-19 at 17:36 +0300, Mikko Rapeli via lists.openembedded.org wrote: > > It is needed by systemd ukify tool and uki.bbclass to generate > > UEFI boot binaries. > > > > Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> > > --- > > �.../python/python3-pefile/run-ptest���������� |� 3 ++ > > �.../python/python3-pefile_2023.2.7.bb�������� | 28 +++++++++++++++++++ > > �2 files changed, 31 insertions(+) > > �create mode 100644 meta/recipes-devtools/python/python3-pefile/run-ptest > > �create mode 100644 meta/recipes-devtools/python/python3-pefile_2023.2.7.bb > > > > 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 @@ > > +#!/bin/sh > > + > > +pytest --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 @@ > > +SUMMARY = "Python PE parsing module" > > +DESCRIPTION = "A multi-platform Python module to parse and work with Portable Executable (PE) files." > > +HOMEPAGE = "https://github.com/erocarrera/pefile" > > +LICENSE = "MIT" > > +LIC_FILES_CHKSUM = "file://LICENSE;md5=38066667888b01d8118ff9cc23da1873" > > + > > +inherit setuptools3 ptest > > +SRCREV = "1ab2807c4eec16041e791d7a6acc68cc23fd5266" > > +SRC_URI = "git://github.com/erocarrera/pefile;branch=master;protocol=https \ > > +���������� file://run-ptest" > > +S = "${WORKDIR}/git" > > + > > +BBCLASSEXTEND = "native nativesdk" > > + > > +do_install_ptest() { > > +�� install -d ${D}${PTEST_PATH}/tests > > +�� cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ > > +} > > + > > +RDEPENDS:${PN} += " \ > > +��� python3-mmap \ > > +��� python3-netclient \ > > +��� python3-stringold \ > > +" > > +RDEPENDS:${PN}-ptest += "\ > > +��� python3-pytest \ > > +��� python3-unittest-automake-output \ > > +" > > I've not gone into the series in detail but there was testing capacity > so I did run it through that. This recipe caused: > > https://valkyrie.yoctoproject.org/#/builders/59/builds/140/steps/11/logs/stdio > https://valkyrie.yoctoproject.org/#/builders/17/builds/144/steps/12/logs/stdio > https://valkyrie.yoctoproject.org/#/builders/37/builds/169/steps/12/logs/stdio > https://valkyrie.yoctoproject.org/#/builders/6/builds/153/steps/11/logs/stdio > https://valkyrie.yoctoproject.org/#/builders/3/builds/162/steps/11/logs/stdio > https://valkyrie.yoctoproject.org/#/builders/25/builds/154/steps/11/logs/stdio Sorry about this. Looking into the details. Cheers, -Mikko
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 @@ +#!/bin/sh + +pytest --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 @@ +SUMMARY = "Python PE parsing module" +DESCRIPTION = "A multi-platform Python module to parse and work with Portable Executable (PE) files." +HOMEPAGE = "https://github.com/erocarrera/pefile" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=38066667888b01d8118ff9cc23da1873" + +inherit setuptools3 ptest +SRCREV = "1ab2807c4eec16041e791d7a6acc68cc23fd5266" +SRC_URI = "git://github.com/erocarrera/pefile;branch=master;protocol=https \ + file://run-ptest" +S = "${WORKDIR}/git" + +BBCLASSEXTEND = "native nativesdk" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +} + +RDEPENDS:${PN} += " \ + python3-mmap \ + python3-netclient \ + python3-stringold \ +" +RDEPENDS:${PN}-ptest += "\ + python3-pytest \ + python3-unittest-automake-output \ +"
It is needed by systemd ukify tool and uki.bbclass to generate UEFI boot binaries. Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> --- .../python/python3-pefile/run-ptest | 3 ++ .../python/python3-pefile_2023.2.7.bb | 28 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-pefile/run-ptest create mode 100644 meta/recipes-devtools/python/python3-pefile_2023.2.7.bb