diff options
author | Andrew Cady <d@cryptonomic.net> | 2021-02-23 22:05:53 -0500 |
---|---|---|
committer | Andrew Cady <d@cryptonomic.net> | 2021-02-23 22:05:53 -0500 |
commit | c08551a63baa3cab98a6172cb819f7b8b62ba0d0 (patch) | |
tree | 1b835b6dc4fac2c6efeb408be94259ad89b32694 /partitions | |
parent | 6889986a93415a55691fb145abe2de4cf959b62e (diff) |
key-only mode for partvi; integrated partvi
These commands are available in sami:
make upgrade
make emu
make key
They use partvi.
Diffstat (limited to 'partitions')
-rw-r--r-- | partitions/Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/partitions/Makefile b/partitions/Makefile index cf8ac28..a1a7fea 100644 --- a/partitions/Makefile +++ b/partitions/Makefile | |||
@@ -6,12 +6,20 @@ all: whole.img | |||
6 | whole.img: | 6 | whole.img: |
7 | partvi | 7 | partvi |
8 | 8 | ||
9 | .PHONY: usb emu | 9 | key.img: |
10 | partvi key | ||
11 | |||
12 | .PHONY: usb emu key | ||
10 | usb: whole.img | 13 | usb: whole.img |
11 | usb=$$(usb) && dd status=progress if="$<" of="$$usb" | 14 | usb=$$(usb) && sudo dd status=progress if="$<" of="$$usb" |
12 | 15 | ||
13 | emu: whole.img | 16 | emu: whole.img |
14 | qemu-system-x86_64 -m 800 -enable-kvm -boot c "$<" | 17 | qemu-system-x86_64 -m 800 -enable-kvm -boot c "$<" |
15 | 18 | ||
19 | key: key.img | ||
20 | usb=$$(usb) && \ | ||
21 | sudo dd status=progress bs=1048576 if="$<" of="$$usb" && \ | ||
22 | sudo qemu-system-x86_64 -m 800 -enable-kvm -boot c "$$usb" | ||
23 | |||
16 | clean: | 24 | clean: |
17 | rm -rf _build whole.img | 25 | rm -rf _build whole.img |