diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-11-28 11:46:31 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-11-29 10:29:58 +0000 |
| commit | dea0b2d2a9345e6df771aaaf2f9f2796343d6e30 (patch) | |
| tree | 76cd1225ecb86759261dafc88c216bc6686c6759 | |
| parent | afa94425a056f209ab78773f20c1c3873660bf98 (diff) | |
| download | poky-dea0b2d2a9345e6df771aaaf2f9f2796343d6e30.tar.gz | |
qemu-helper: depend on unfs3 and pseudo directly
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.
(From OE-Core rev: f73e370bec16d206592a7ca01b4a86b1d1316ada)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-devtools/qemu/nativesdk-qemu-helper_1.0.bb | 2 | ||||
| -rw-r--r-- | meta/recipes-devtools/qemu/qemu-helper-native_1.0.bb | 2 | ||||
| -rwxr-xr-x | scripts/runqemu-export-rootfs | 8 | ||||
| -rwxr-xr-x | scripts/runqemu-extract-sdk | 2 |
4 files changed, 5 insertions, 9 deletions
diff --git a/meta/recipes-devtools/qemu/nativesdk-qemu-helper_1.0.bb b/meta/recipes-devtools/qemu/nativesdk-qemu-helper_1.0.bb index abba7fe159..2a5bcfb909 100644 --- a/meta/recipes-devtools/qemu/nativesdk-qemu-helper_1.0.bb +++ b/meta/recipes-devtools/qemu/nativesdk-qemu-helper_1.0.bb | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | SUMMARY = "Qemu helper scripts" | 1 | SUMMARY = "Qemu helper scripts" |
| 2 | LICENSE = "GPL-2.0-only" | 2 | LICENSE = "GPL-2.0-only" |
| 3 | RDEPENDS:${PN} = "nativesdk-qemu \ | 3 | RDEPENDS:${PN} = "nativesdk-qemu nativesdk-unfs3 nativesdk-pseudo \ |
| 4 | nativesdk-python3-shell nativesdk-python3-fcntl nativesdk-python3-logging \ | 4 | nativesdk-python3-shell nativesdk-python3-fcntl nativesdk-python3-logging \ |
| 5 | " | 5 | " |
| 6 | 6 | ||
diff --git a/meta/recipes-devtools/qemu/qemu-helper-native_1.0.bb b/meta/recipes-devtools/qemu/qemu-helper-native_1.0.bb index e297586bbb..6053b71717 100644 --- a/meta/recipes-devtools/qemu/qemu-helper-native_1.0.bb +++ b/meta/recipes-devtools/qemu/qemu-helper-native_1.0.bb | |||
| @@ -25,5 +25,5 @@ do_install() { | |||
| 25 | install qemu-oe-bridge-helper ${D}${bindir}/ | 25 | install qemu-oe-bridge-helper ${D}${bindir}/ |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | DEPENDS += "qemu-system-native" | 28 | DEPENDS += "qemu-system-native unfs3-native pseudo-native" |
| 29 | addtask addto_recipe_sysroot after do_populate_sysroot before do_build | 29 | addtask addto_recipe_sysroot after do_populate_sysroot before do_build |
diff --git a/scripts/runqemu-export-rootfs b/scripts/runqemu-export-rootfs index c1fff7fcb3..6a8acd0d5a 100755 --- a/scripts/runqemu-export-rootfs +++ b/scripts/runqemu-export-rootfs | |||
| @@ -34,16 +34,12 @@ if [ -z "$SYSROOT_SETUP_SCRIPT" ]; then | |||
| 34 | echo "Did you forget to source your build environment setup script?" | 34 | echo "Did you forget to source your build environment setup script?" |
| 35 | exit 1 | 35 | exit 1 |
| 36 | fi | 36 | fi |
| 37 | . $SYSROOT_SETUP_SCRIPT meta-ide-support | 37 | . $SYSROOT_SETUP_SCRIPT qemu-helper-native |
| 38 | 38 | ||
| 39 | if [ ! -e "$OECORE_NATIVE_SYSROOT/usr/bin/unfsd" ]; then | 39 | if [ ! -e "$OECORE_NATIVE_SYSROOT/usr/bin/unfsd" ]; then |
| 40 | echo "Error: Unable to find unfsd binary in $OECORE_NATIVE_SYSROOT/usr/bin/" | 40 | echo "Error: Unable to find unfsd binary in $OECORE_NATIVE_SYSROOT/usr/bin/" |
| 41 | 41 | ||
| 42 | if [ "x$OECORE_DISTRO_VERSION" = "x" ]; then | 42 | echo "This shouldn't happen - something is missing from your toolchain installation" |
| 43 | echo "Have you run 'bitbake meta-ide-support'?" | ||
| 44 | else | ||
| 45 | echo "This shouldn't happen - something is missing from your toolchain installation" | ||
| 46 | fi | ||
| 47 | exit 1 | 43 | exit 1 |
| 48 | fi | 44 | fi |
| 49 | 45 | ||
diff --git a/scripts/runqemu-extract-sdk b/scripts/runqemu-extract-sdk index 9bc0c07fb8..db05da25f2 100755 --- a/scripts/runqemu-extract-sdk +++ b/scripts/runqemu-extract-sdk | |||
| @@ -25,7 +25,7 @@ if [ -z "$SYSROOT_SETUP_SCRIPT" ]; then | |||
| 25 | echo "Did you forget to source your build system environment setup script?" | 25 | echo "Did you forget to source your build system environment setup script?" |
| 26 | exit 1 | 26 | exit 1 |
| 27 | fi | 27 | fi |
| 28 | . $SYSROOT_SETUP_SCRIPT meta-ide-support | 28 | . $SYSROOT_SETUP_SCRIPT qemu-helper-native |
| 29 | PSEUDO_OPTS="-P $OECORE_NATIVE_SYSROOT/usr" | 29 | PSEUDO_OPTS="-P $OECORE_NATIVE_SYSROOT/usr" |
| 30 | 30 | ||
| 31 | ROOTFS_TARBALL=$1 | 31 | ROOTFS_TARBALL=$1 |
