From d2bee631e169395a87a49639c1219473853eafcf Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Tue, 6 Dec 2016 15:31:24 -0700 Subject: [PATCH] Virtualbox net=no support --- Makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index ef291a3..b3c2e00 100644 --- a/Makefile +++ b/Makefile @@ -276,11 +276,14 @@ virtualbox: build/harddrive.bin echo "Set Configuration" $(VBM) modifyvm Redox --memory 1024 $(VBM) modifyvm Redox --vram 16 - $(VBM) modifyvm Redox --nic1 nat - $(VBM) modifyvm Redox --nictype1 82540EM - $(VBM) modifyvm Redox --cableconnected1 on - $(VBM) modifyvm Redox --nictrace1 on - $(VBM) modifyvm Redox --nictracefile1 build/network.pcap + if [ "$(net)" != "no" ]; \ + then \ + $(VBM) modifyvm Redox --nic1 nat; \ + $(VBM) modifyvm Redox --nictype1 82540EM; \ + $(VBM) modifyvm Redox --cableconnected1 on; \ + $(VBM) modifyvm Redox --nictrace1 on; \ + $(VBM) modifyvm Redox --nictracefile1 build/network.pcap; \ + fi $(VBM) modifyvm Redox --uart1 0x3F8 4 $(VBM) modifyvm Redox --uartmode1 file build/serial.log $(VBM) modifyvm Redox --usb off # on