summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoru <u@billy>2023-11-17 11:21:36 -0500
committeru <u@billy>2023-11-17 11:21:36 -0500
commit8486a7ddebfe82af59e85d9a52cda099ee441482 (patch)
tree2a79da909dbdabf413d1fd1d8e32be66c8abe28a
parent11bdb26906efeaf7b5bdeba7b2196fb73e80acb8 (diff)
rootfs/Makefile
cleanups
-rw-r--r--Makefile4
m---------kiki0
-rw-r--r--partitions/Makefile11
-rw-r--r--rootfs/Makefile9
4 files changed, 18 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index c1dfb8a..e29dbb7 100644
--- a/Makefile
+++ b/Makefile
@@ -274,7 +274,8 @@ initrd: install
274update: apt-get-update-stamp 274update: apt-get-update-stamp
275 git pull --ff-only --recurse-submodules 275 git pull --ff-only --recurse-submodules
276 276
277upgrade: install-submodules install initrd 277upgrade: install-submodules install
278 ./src/mkinitramfs-samizdat -f
278 279
279upgrade-key: upgrade key 280upgrade-key: upgrade key
280 281
@@ -289,6 +290,7 @@ $(PERSIST_FILE):
289usb emu efi: initrd rootfs 290usb emu efi: initrd rootfs
290key keymu emu-key: initrd 291key keymu emu-key: initrd
291cleanmu: rootfs-clean total-destroy emu 292cleanmu: rootfs-clean total-destroy emu
293up: update upgrade
292mu: up cleanmu 294mu: up cleanmu
293 295
294usb emu key keymu emu-key total-destroy efi: 296usb emu key keymu emu-key total-destroy efi:
diff --git a/kiki b/kiki
deleted file mode 160000
Subproject a791ba78a5e63bb96de359ee53251e1e79e25d8
diff --git a/partitions/Makefile b/partitions/Makefile
index 91a60d9..e51ddd7 100644
--- a/partitions/Makefile
+++ b/partitions/Makefile
@@ -33,13 +33,20 @@ optional_persist_disk != [ ! -e $(PERSIST_FILE) ] || printf %s '-drive file=$(PE
33usb: $(whole) 33usb: $(whole)
34 usb=$$(usb) && sudo dd status=progress if="$<" of="$$usb" 34 usb=$$(usb) && sudo dd status=progress if="$<" of="$$usb"
35 35
36
36# QEMU_DISPLAY_OPTIONS = -nographic 37# QEMU_DISPLAY_OPTIONS = -nographic
37QEMU_DISPLAY_OPTIONS = -display gtk 38QEMU_DISPLAY_OPTIONS = -display gtk
38 39
39QEMU_OPTIONS = $(QEMU_BIOS_OPTIONS) $(QEMU_DISPLAY_OPTIONS) 40define QEMU_OPTIONS
41-global isa-fdc.fdtypeA=none
42$(QEMU_BIOS_OPTIONS)
43$(QEMU_DISPLAY_OPTIONS)
44endef
40 45
41define emu 46define emu
42 NO_AT_BRIDGE=1 qemu-system-x86_64 ${QEMU_OPTIONS} -m 800 -enable-kvm -boot c \ 47 NO_AT_BRIDGE=1 qemu-system-x86_64 \
48 ${QEMU_OPTIONS:%=%} \
49 -m 800 -enable-kvm -boot c \
43 -drive file=$(1),media=disk,driver=raw \ 50 -drive file=$(1),media=disk,driver=raw \
44 $(optional_persist_disk) 51 $(optional_persist_disk)
45endef 52endef
diff --git a/rootfs/Makefile b/rootfs/Makefile
index 09dba42..3c7cf0a 100644
--- a/rootfs/Makefile
+++ b/rootfs/Makefile
@@ -12,11 +12,14 @@ patchfs ?= samizdat.patch.btrfs
12 12
13.DEFAULT_GOAL = all 13.DEFAULT_GOAL = all
14 14
15.PHONY: all rootfs patchfs gold 15.PHONY: all rootfs patchfs clean
16all: $(rootfs) $(patchfs) $(gold) 16all: $(rootfs) $(patchfs)
17
18clean = $(patchfs) $(rootfs) $(rootfs:%.seed.btrfs=%.btrfs)
19clean := $(clean) $(clean:%=%.tmp)
17 20
18clean: 21clean:
19 rm -f $(patsubst %.seed.btrfs,%.btrfs,$(rootfs)) $(rootfs) $(patchfs) $(gold) 22 rm -f $(clean)
20 23
21rootfs: $(rootfs) 24rootfs: $(rootfs)
22patchfs: $(patchfs) 25patchfs: $(patchfs)