We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7705fdf commit af02368Copy full SHA for af02368
tools/labs/qemu/Makefile
@@ -60,7 +60,7 @@ gdb: $(ZIMAGE)
60
61
$(YOCTO_IMAGE):
62
wget $(YOCTO_URL)/$(YOCTO_IMAGE)
63
- sudo qemu/prepare-image.sh $(YOCTO_IMAGE)
+ sudo ARCH=$(ARCH) qemu/prepare-image.sh $(YOCTO_IMAGE)
64
65
tap0:
66
qemu/create_net.sh $@
tools/labs/qemu/prepare-image.sh
@@ -11,7 +11,11 @@ TMP=$(mktemp -d)
11
mount -t ext4 -o loop $1 $TMP
12
13
# add console
14
-echo "hvc0:12345:respawn:/sbin/getty 115200 hvc0" >> $TMP/etc/inittab
+if [ "$ARCH" = "x86" ]; then
15
+ echo "hvc0:12345:respawn:/sbin/getty 115200 hvc0" >> $TMP/etc/inittab
16
+else
17
+ echo "mxc0:12345:respawn:/sbin/getty 115200 ttymxc0" >> $TMP/etc/inittab
18
+fi
19
20
# add more vty
21
cat >> $TMP/etc/inittab <<EOF
0 commit comments