zephyr/Makefile: Add qemu-net target to run QEMU virtual networking.
parent
ed312b0575
commit
0b552e7f06
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue