zephyr/Makefile: Add qemu-net target to run QEMU virtual networking.

hacking-on-plane
Paul Sokolovsky 2016-09-13 12:21:05 +03:00
parent 6b1ed34336
commit c3695b3212
1 changed files with 12 additions and 0 deletions

View File

@ -62,6 +62,18 @@ all: $(LIBMICROPYTHON)
qemu: all
make -f Makefile.zephyr qemu BOARD=$(BOARD)
# Note: doesn't rebuild binary, just runs qemu against it
qemu-net:
$(ZEPHYR_SDK_INSTALL_DIR)/sysroots/i686-pokysdk-linux/usr/bin/qemu-system-i386 -m 32 -cpu qemu32 \
-no-reboot -nographic -vga none -display none -net none -clock dynticks -no-acpi -balloon none \
-L $(ZEPHYR_SDK_INSTALL_DIR)/sysroots/i686-pokysdk-linux/usr/share/qemu \
-bios bios.bin -machine type=pc-0.14 -pidfile qemu.pid \
-serial mon:stdio -serial none -serial unix:/tmp/slip.sock \
-kernel outdir/$(OUTDIR_PREFIX)/zephyr.elf
# For GDB debugging with QEMU
#-s -S
Z_AUTOCONF_H = outdir/$(OUTDIR_PREFIX)/include/generated/autoconf.h
$(LIBMICROPYTHON): $(Z_AUTOCONF_H)