summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu-gen-tapdevs
diff options
context:
space:
mode:
authorAdrian Freihofer <adrian.freihofer@gmail.com>2023-06-22 19:01:25 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-06-24 12:19:52 +0100
commitc47322297fcd0408c5e290e74eee4344754e03e4 (patch)
tree8a9806e614fd346b1d578674a9f43a833ea6374b /scripts/runqemu-gen-tapdevs
parentf65fb5fce45d13c2881acd8295d417635449c52d (diff)
downloadopenembedded-core-contrib-c47322297fcd0408c5e290e74eee4344754e03e4.tar.gz
runqemu-gen-tapdevs: remove staging dir parameter
The parameter staging_bindir_native is no longer used. Remove it. For now the script is backward compatible. With 4 parameters it logs an error message but still works. Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu-gen-tapdevs')
-rwxr-xr-xscripts/runqemu-gen-tapdevs12
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/runqemu-gen-tapdevs b/scripts/runqemu-gen-tapdevs
index ec3ecb03b9..75547c1361 100755
--- a/scripts/runqemu-gen-tapdevs
+++ b/scripts/runqemu-gen-tapdevs
@@ -18,19 +18,22 @@ if [ -n "$SUDO_GID" ]; then
fi
usage() {
- echo "Usage: sudo $0 <uid> <gid> <num> <staging_bindir_native>"
+ echo "Usage: sudo $0 <uid> <gid> <num>"
echo "Where <uid> is the numeric user id the tap devices will be owned by"
echo "Where <gid> is the numeric group id the tap devices will be owned by"
echo "<num> is the number of tap devices to create (0 to remove all)"
- echo "<native-sysroot-basedir> is the path to the build system's native sysroot"
echo "For example:"
echo "$ bitbake qemu-helper-native"
- echo "$ sudo $0 $uid $gid 4 tmp/sysroots-components/x86_64/qemu-helper-native/usr/bin"
+ echo "$ sudo $0 $uid $gid 4"
echo ""
exit 1
}
-if [ $# -ne 4 ]; then
+# Allow passing 4 arguments for backward compatibility with warning
+if [ $# -eq 4 ]; then
+ echo "Warning: The <native-sysroot-basedir> parameter is no longer needed. Ignoring."
+fi
+if [ $# -lt 3 ] || [ $# -gt 4 ]; then
echo "Error: Incorrect number of arguments"
usage
fi
@@ -38,7 +41,6 @@ fi
TUID=$1
GID=$2
COUNT=$3
-STAGING_BINDIR_NATIVE=$4
# check if COUNT is a number and >= 0
if ! [ $COUNT -ge 0 ]; then