summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@cryptonomic.net>2021-02-23 20:55:34 -0500
committerAndrew Cady <d@cryptonomic.net>2021-02-23 20:55:49 -0500
commit7a5f63c4818bdaa9589ebb0564af8c4edb4dcdc3 (patch)
tree74448f48a2b04f38afd924835c590c5f82045dae
parentd1d6155aa07e476a42cb3403065618b9bc262657 (diff)
new targets: "make emu" "make upgrade"
-rw-r--r--.gitmodules3
-rw-r--r--Makefile9
-rw-r--r--partitions/Makefile7
m---------tuntox0
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
diff --git a/Makefile b/Makefile
index 45a122f..58b7aa6 100644
--- a/Makefile
+++ b/Makefile
@@ -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
351emu:
352 make -C partitions emu
353
351bootclean: 354bootclean:
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
357upgrade:
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
6whole.img: 6whole.img:
7 partvi 7 partvi
8 8
9.PHONY: usb 9.PHONY: usb emu
10usb: whole.img 10usb: whole.img
11 usb=$$(usb) && dd status=progress if=$< of="$$usb" 11 usb=$$(usb) && dd status=progress if="$<" of="$$usb"
12
13emu: whole.img
14 qemu-system-x86_64 -m 800 -enable-kvm -boot c "$<"
12 15
13clean: 16clean:
14 rm -rf _build whole.img 17 rm -rf _build whole.img
diff --git a/tuntox b/tuntox
new file mode 160000
Subproject 5961303fc6e8f87e61a7abb1b4c14d24e7e3075