mirror of
https://github.com/subhobhai943/SUB-OS.git
synced 2026-10-25 16:52:29 +00:00
feat(qemu): add port forwarding for SSH (port 2222) and HTTP (port 8080) to Makefile
This commit is contained in:
1 parent
390e70bcd6
commit
c59af27cdb
1 file changed
+11
-2
@@ -114,10 +114,19 @@ $(BUILD_DIR)/boot:
|
||||
mkdir -p $(BUILD_DIR)/boot
|
||||
|
||||
run: $(IMAGE)
|
||||
qemu-system-x86_64 -drive format=raw,file=$(IMAGE) -nic model=e1000 -serial stdio
|
||||
qemu-system-x86_64 -drive format=raw,file=$(IMAGE) \
|
||||
-netdev user,id=net0,hostfwd=tcp::2222-:22,hostfwd=tcp::8080-:80 \
|
||||
-device e1000,netdev=net0 -serial stdio
|
||||
|
||||
run-server: $(IMAGE)
|
||||
qemu-system-x86_64 -drive format=raw,file=$(IMAGE) \
|
||||
-netdev user,id=net0,hostfwd=tcp::2222-:22,hostfwd=tcp::8080-:80 \
|
||||
-device e1000,netdev=net0 -serial stdio -display none
|
||||
|
||||
debug: $(IMAGE)
|
||||
qemu-system-x86_64 -drive format=raw,file=$(IMAGE) -nic model=e1000 -serial stdio -s -S
|
||||
qemu-system-x86_64 -drive format=raw,file=$(IMAGE) \
|
||||
-netdev user,id=net0,hostfwd=tcp::2222-:22,hostfwd=tcp::8080-:80 \
|
||||
-device e1000,netdev=net0 -serial stdio -s -S
|
||||
|
||||
info:
|
||||
@echo "C Sources: $(words $(ALL_C_SRCS)) files"
|
||||
|
||||
Reference in new issue
Block a user