diff options
author | Andrew Cady <d@cryptonomic.net> | 2021-02-23 20:55:34 -0500 |
---|---|---|
committer | Andrew Cady <d@cryptonomic.net> | 2021-02-23 20:55:49 -0500 |
commit | 7a5f63c4818bdaa9589ebb0564af8c4edb4dcdc3 (patch) | |
tree | 74448f48a2b04f38afd924835c590c5f82045dae | |
parent | d1d6155aa07e476a42cb3403065618b9bc262657 (diff) |
new targets: "make emu" "make upgrade"
-rw-r--r-- | .gitmodules | 3 | ||||
-rw-r--r-- | Makefile | 9 | ||||
-rw-r--r-- | partitions/Makefile | 7 | ||||
m--------- | tuntox | 0 |
4 files changed, 17 insertions, 2 deletions
diff --git a/.gitmodules b/.gitmodules index fa1f7a0..502863e 100644 --- a/.gitmodules +++ b/.gitmodules | |||
@@ -10,3 +10,6 @@ | |||
10 | [submodule "cryptonomic-dyndns-server"] | 10 | [submodule "cryptonomic-dyndns-server"] |
11 | path = cryptonomic-dyndns-server | 11 | path = cryptonomic-dyndns-server |
12 | url = d@cryptonomic.net:public_git/cryptonomic-dyndns-server.git | 12 | url = d@cryptonomic.net:public_git/cryptonomic-dyndns-server.git |
13 | [submodule "tuntox"] | ||
14 | path = tuntox | ||
15 | url = ./tuntox | ||
@@ -348,5 +348,14 @@ install-stamp: install-bin-programs samizdat-paths.sh ${compiled_programs} | |||
348 | $(CP) ${isolinux_files} ${instdir}${samizdat_isolinux_dir} | 348 | $(CP) ${isolinux_files} ${instdir}${samizdat_isolinux_dir} |
349 | touch $@ | 349 | touch $@ |
350 | 350 | ||
351 | emu: | ||
352 | make -C partitions emu | ||
353 | |||
351 | bootclean: | 354 | bootclean: |
352 | rm -f samizdat.disk.img boot-disk.template.img boot-disk.img | 355 | rm -f samizdat.disk.img boot-disk.template.img boot-disk.img |
356 | |||
357 | upgrade: | ||
358 | make install-submodules | ||
359 | make install | ||
360 | ./src/mkinitramfs-samizdat | ||
361 | make key | ||
diff --git a/partitions/Makefile b/partitions/Makefile index da25615..cf8ac28 100644 --- a/partitions/Makefile +++ b/partitions/Makefile | |||
@@ -6,9 +6,12 @@ all: whole.img | |||
6 | whole.img: | 6 | whole.img: |
7 | partvi | 7 | partvi |
8 | 8 | ||
9 | .PHONY: usb | 9 | .PHONY: usb emu |
10 | usb: whole.img | 10 | usb: whole.img |
11 | usb=$$(usb) && dd status=progress if=$< of="$$usb" | 11 | usb=$$(usb) && dd status=progress if="$<" of="$$usb" |
12 | |||
13 | emu: whole.img | ||
14 | qemu-system-x86_64 -m 800 -enable-kvm -boot c "$<" | ||
12 | 15 | ||
13 | clean: | 16 | clean: |
14 | rm -rf _build whole.img | 17 | rm -rf _build whole.img |
diff --git a/tuntox b/tuntox new file mode 160000 | |||
Subproject 5961303fc6e8f87e61a7abb1b4c14d24e7e3075 | |||