summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-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
18fi 18fi
19 19
20usage() { 20usage() {
21 echo "Usage: sudo $0 <uid> <gid> <num> <staging_bindir_native>" 21 echo "Usage: sudo $0 <uid> <gid> <num>"
22 echo "Where <uid> is the numeric user id the tap devices will be owned by" 22 echo "Where <uid> is the numeric user id the tap devices will be owned by"
23 echo "Where <gid> is the numeric group id the tap devices will be owned by" 23 echo "Where <gid> is the numeric group id the tap devices will be owned by"
24 echo "<num> is the number of tap devices to create (0 to remove all)" 24 echo "<num> is the number of tap devices to create (0 to remove all)"
25 echo "<native-sysroot-basedir> is the path to the build system's native sysroot"
26 echo "For example:" 25 echo "For example:"
27 echo "$ bitbake qemu-helper-native" 26 echo "$ bitbake qemu-helper-native"
28 echo "$ sudo $0 $uid $gid 4 tmp/sysroots-components/x86_64/qemu-helper-native/usr/bin" 27 echo "$ sudo $0 $uid $gid 4"
29 echo "" 28 echo ""
30 exit 1 29 exit 1
31} 30}
32 31
33if [ $# -ne 4 ]; then 32# Allow passing 4 arguments for backward compatibility with warning
33if [ $# -eq 4 ]; then
34 echo "Warning: The <native-sysroot-basedir> parameter is no longer needed. Ignoring."
35fi
36if [ $# -lt 3 ] || [ $# -gt 4 ]; then
34 echo "Error: Incorrect number of arguments" 37 echo "Error: Incorrect number of arguments"
35 usage 38 usage
36fi 39fi
@@ -38,7 +41,6 @@ fi
38TUID=$1 41TUID=$1
39GID=$2 42GID=$2
40COUNT=$3 43COUNT=$3
41STAGING_BINDIR_NATIVE=$4
42 44
43# check if COUNT is a number and >= 0 45# check if COUNT is a number and >= 0
44if ! [ $COUNT -ge 0 ]; then 46if ! [ $COUNT -ge 0 ]; then