Skip to content

Commit abfc352

Browse files
committed
feat: add ARGS for parted list
1 parent e6841a5 commit abfc352

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))
2+
13
define EXTRA_ARG
24
-device virtio-net,netdev=net0 -netdev user,id=net0,net=192.168.1.0/24,hostfwd=tcp::8080-:80 \
35
-device virtio-net,netdev=net1 -netdev user,id=net1,net=100.0.0.0/24
@@ -67,3 +69,6 @@ uboot-efi:
6769
-drive if=none,file=$(shell find openwrt-*-squashfs-combined-efi.img),id=hd0 \
6870
-device virtio-blk-device,drive=hd0 \
6971
$(EXTRA_ARG)
72+
73+
parted-list:
74+
parted $(ARGS) unit MiB print

0 commit comments

Comments
 (0)