feat(qemu): add port forwarding for SSH (port 2222) and HTTP (port 8080) to Makefile

This commit is contained in:
subhobhai943 committed 2026-08-17 13:20:51 +05:30
1 parent 390e70bcd6
commit c59af27cdb
1 file changed
+11 -2
+11 -2
View File
@@ -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"