patchtest: update to work with latest Yocto changes
cover patchtest: update to work with latest Yocto changes
This is the first series of patches intended to help get patchtest up and running again. Specifically, these make core-image-patchtest build and run again (although one of the initscripts still shuts the image down shortly after boot, so testing it may seem confusing). In the longer-term, patchtest may be moved to oe-core, so right now the focus for this repo is to make sure it's in a working state so that it can be cleaned up and prepared for that change.There are some other additions that will be coming soon, namely updates to the pylint version and some updated documentation.
In order to start core-image-patchtest with runqemu, I had to invoke it like so:
runqemu kvm nographic qemuparams="-snapshot \
-fsdev local,id=test_dev,path=/workspace/yocto/manual/openembedded-core/build/test_share,security_model=mapped \
-device virtio-9p-pci,fsdev=test_dev,mount_tag=test_mount -m 2048"
which is similar to the contents of the patchtest/scripts/guest script (but in this case I created the share directory "test_share" inside my build directory). The PACKAGECONFIG for qemu-system-native wasn't being set to properly support the required virtio-9p-pci device, hence the addition of the .bbappend file for that recipe. I've left the corresponding qemu .bbappend in place for now, but it might be removable after more testing.
Trevor Gamblin (7):
python3-pylint: update to use new override syntax
qemu: update to use new override syntax
initscripts: update to use new override syntax
initscripts: use mkdir before mv with patchtest initscript
linux-yocto: update version, fix override syntax
qemu-system-native: add virtfs to PACKAGECONFIG
README: Update maintainer list
README | 1 + .../recipes-core/initscripts/initscripts/patchtest | 1 + .../recipes-core/initscripts/initscripts_1.0.bbappend | 8 ++++---- .../recipes-devtools/python/python3-pylint_1.6.5.bb | 2 +- .../recipes-devtools/qemu/qemu-system-native_%.bbappend | 1 + meta-patchtest/recipes-devtools/qemu/qemu_%.bbappend | 2 +- .../recipes-kernel/linux/linux-yocto_4.%.bbappend | 2 -- .../recipes-kernel/linux/linux-yocto_6.%.bbappend | 2 ++ 8 files changed, 11 insertions(+), 8 deletions(-) create mode 100644 meta-patchtest/recipes-devtools/qemu/qemu-system-native_%.bbappend delete mode 100644 meta-patchtest/recipes-kernel/linux/linux-yocto_4.%.bbappend create mode 100644 meta-patchtest/recipes-kernel/linux/linux-yocto_6.%.bbappend
Signature · 1 line
2.40.0
PATCH 1/7 python3-pylint: update to use new override syntax
--- meta-patchtest/recipes-devtools/python/python3-pylint_1.6.5.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-patchtest/recipes-devtools/python/python3-pylint_1.6.5.bb +1 -1
@@ -22,7 +22,7 @@ RDEPENDS_${PN} += "${PYTHON_PN}-astroid \ ${PYTHON_PN}-netserver \ " -do_install_append(){ +do_install:append(){ rm ${D}${bindir}/pylint cat >> ${D}${bindir}/pylint <<EOF #!/usr/bin/env ${PYTHON_PN}
Signature · 1 line
2.40.0
PATCH 2/7 qemu: update to use new override syntax
In reply to Trevor Gamblin--- meta-patchtest/recipes-devtools/qemu/qemu_%.bbappend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-patchtest/recipes-devtools/qemu/qemu_%.bbappend +1 -1
@@ -1 +1 @@ -PACKAGECONFIG_append_pn-qemu-native = " virtfs" +PACKAGECONFIG:append:class-native = " virtfs"
Signature · 1 line
2.40.0
PATCH 3/7 initscripts: update to use new override syntax
In reply to Trevor Gamblin--- .../recipes-core/initscripts/initscripts_1.0.bbappend | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
meta-patchtest/recipes-core/initscripts/initscripts_1.0.bbappend +4 -4
@@ -1,13 +1,13 @@ -FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" -SRC_URI_append =" file://patchtest" +SRC_URI:append =" file://patchtest" inherit useradd USERADD_PACKAGES = "${PN}" -USERADD_PARAM_${PN} = "-u 1200 -r -m -s /bin/sh patchtest" +USERADD_PARAM:${PN} = "-u 1200 -r -m -s /bin/sh patchtest" -do_install_append () { +do_install:append () { install -m 0755 ${WORKDIR}/patchtest ${D}${sysconfdir}/init.d update-rc.d -r ${D} patchtest start 99 3 5 . }
Signature · 1 line
2.40.0
PATCH 4/7 initscripts: use mkdir before mv with patchtest initscript
In reply to Trevor Gamblin--- meta-patchtest/recipes-core/initscripts/initscripts/patchtest | 1 + 1 file changed, 1 insertion(+)
meta-patchtest/recipes-core/initscripts/initscripts/patchtest +1 -0
@@ -53,6 +53,7 @@ if [ -d $REPO ]; then fi # Move results dir to MP as root +mkdir -p $RESULTS mv $RESULTS $MP/results # Poweroff machine
Signature · 1 line
2.40.0
PATCH 5/7 linux-yocto: update version, fix override syntax
In reply to Trevor Gamblin--- meta-patchtest/recipes-kernel/linux/linux-yocto_4.%.bbappend | 2 -- meta-patchtest/recipes-kernel/linux/linux-yocto_6.%.bbappend | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 meta-patchtest/recipes-kernel/linux/linux-yocto_4.%.bbappend create mode 100644 meta-patchtest/recipes-kernel/linux/linux-yocto_6.%.bbappend
meta-patchtest/recipes-kernel/linux/linux-yocto_4.%.bbappend deleted +0 -2
@@ -1,2 +0,0 @@ -FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" -SRC_URI += "file://virtio.cfg"
meta-patchtest/recipes-kernel/linux/linux-yocto_6.%.bbappend new file +2 -0
@@ -0,0 +1,2 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" +SRC_URI += "file://virtio.cfg"
Signature · 1 line
2.40.0
PATCH 6/7 qemu-system-native: add virtfs to PACKAGECONFIG
In reply to Trevor Gamblin--- .../recipes-devtools/qemu/qemu-system-native_%.bbappend | 1 + 1 file changed, 1 insertion(+) create mode 100644 meta-patchtest/recipes-devtools/qemu/qemu-system-native_%.bbappend
meta-patchtest/recipes-devtools/qemu/qemu-system-native_%.bbappend new file +1 -0
@@ -0,0 +1 @@ +PACKAGECONFIG:append:class-native = " virtfs"
Signature · 1 line
2.40.0
PATCH 7/7 README: Update maintainer list
In reply to Trevor Gamblin--- README | 1 + 1 file changed, 1 insertion(+)
README +1 -0
@@ -44,6 +44,7 @@ Maintenance Maintainers: Paul Barker <[email protected]> + Trevor Gamblin <[email protected]> Links -----
Signature · 1 line
2.40.0