]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
qemu-helper: depend on unfs3 and pseudo directly
authorAlexander Kanavin <alex.kanavin@gmail.com>
Mon, 28 Nov 2022 10:46:31 +0000 (11:46 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 29 Nov 2022 10:29:54 +0000 (10:29 +0000)
The eliminates having to do extra steps (e.g. meta-ide-support)
when booting an image with a nfs mount as rootfs - startng runqemu
with a nfs mount starts to 'just work' after building an image.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/recipes-devtools/qemu/nativesdk-qemu-helper_1.0.bb
meta/recipes-devtools/qemu/qemu-helper-native_1.0.bb
scripts/runqemu-export-rootfs
scripts/runqemu-extract-sdk

index abba7fe1595de37410cb92196c6f6b506a949611..2a5bcfb909d563a52aa36d4159c69d13de550e20 100644 (file)
@@ -1,6 +1,6 @@
 SUMMARY = "Qemu helper scripts"
 LICENSE = "GPL-2.0-only"
-RDEPENDS:${PN} = "nativesdk-qemu \
+RDEPENDS:${PN} = "nativesdk-qemu nativesdk-unfs3 nativesdk-pseudo \
                   nativesdk-python3-shell nativesdk-python3-fcntl nativesdk-python3-logging \
                 "
 
index e297586bbb80ff145a36ade14f752c84774792e9..6053b71717d159e1abdc912ede9e6b15ae55ce83 100644 (file)
@@ -25,5 +25,5 @@ do_install() {
        install qemu-oe-bridge-helper ${D}${bindir}/
 }
 
-DEPENDS += "qemu-system-native"
+DEPENDS += "qemu-system-native unfs3-native pseudo-native"
 addtask addto_recipe_sysroot after do_populate_sysroot before do_build
index c1fff7fcb39b694bee8d4f47c92e2cbba187c113..6a8acd0d5ab61eaabfdb5708906d17aa76a0a6a6 100755 (executable)
@@ -34,16 +34,12 @@ if [ -z "$SYSROOT_SETUP_SCRIPT" ]; then
        echo "Did you forget to source your build environment setup script?"
        exit 1
 fi
-. $SYSROOT_SETUP_SCRIPT meta-ide-support
+. $SYSROOT_SETUP_SCRIPT qemu-helper-native
 
 if [ ! -e "$OECORE_NATIVE_SYSROOT/usr/bin/unfsd" ]; then
        echo "Error: Unable to find unfsd binary in $OECORE_NATIVE_SYSROOT/usr/bin/"
 
-       if [ "x$OECORE_DISTRO_VERSION" = "x" ]; then
-               echo "Have you run 'bitbake meta-ide-support'?"
-       else
-               echo "This shouldn't happen - something is missing from your toolchain installation"
-       fi
+       echo "This shouldn't happen - something is missing from your toolchain installation"
        exit 1
 fi
 
index 9bc0c07fb809271aab7dbd872c882f81e33c13e2..db05da25f2999bdf46e14e2a6b76b2c792b1f09c 100755 (executable)
@@ -25,7 +25,7 @@ if [ -z "$SYSROOT_SETUP_SCRIPT" ]; then
        echo "Did you forget to source your build system environment setup script?"
        exit 1
 fi
-. $SYSROOT_SETUP_SCRIPT meta-ide-support
+. $SYSROOT_SETUP_SCRIPT qemu-helper-native
 PSEUDO_OPTS="-P $OECORE_NATIVE_SYSROOT/usr"
 
 ROOTFS_TARBALL=$1