diff --git a/zephyr/Makefile b/zephyr/Makefile index 34c5e57bf..195dae473 100644 --- a/zephyr/Makefile +++ b/zephyr/Makefile @@ -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)