patches and low-level development discussion
 help / color / mirror / code / Atom feed
blob cf2ace4f5e4ba20a2c0ce9803f72acf0e23f9df3 1642 bytes (raw)
name: release/live/Makefile 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
 
# SPDX-License-Identifier: EUPL-1.2+
# SPDX-FileCopyrightText: 2021-2025 Alyssa Ross <hi@alyssa.is>

.POSIX:

include ../../lib/common.mk

DTBS ?= build/empty

dest = build/live.img

$(dest): ../../scripts/format-uuid.awk ../../scripts/make-gpt.sh ../../scripts/sfdisk-field.awk build/boot.fat $(ROOT_FS_IMAGES)
	# 162MiB was calculated by running `veritysetup format` on 20GiB from /dev/urandom
	uuids=$$(awk -f ../../scripts/format-uuid.awk < $(ROOT_FS_VERITY_ROOTHASH)) && \
	set -euo pipefail -- $$uuids && \
	bash ../../scripts/make-gpt.sh $@.tmp \
	    build/boot.fat:c12a7328-f81f-11d2-ba4b-00a0c93ec93b \
	    $(ROOT_FS_VERITY):verity:$$3:Spectrum_'$(VERSION).verity:162MiB' \
	    $(ROOT_FS):root:$$1:Spectrum_'$(VERSION):20000MiB' \
	    $(ROOT_FS_VERITY):verity:$$4:_empty:162MiB \
	    $(ROOT_FS):root:$$2:_empty:20000MiB
	mv $@.tmp $@

build/empty:
	mkdir -p $@

build/boot.fat: $(SYSTEMD_BOOT_EFI) $(EFI_IMAGE) build/empty
	$(TRUNCATE) -s 440401920 $@
	$(MKFS_FAT) $@
	$(MMD) -i $@ ::/EFI ::/EFI/BOOT ::/EFI/Linux
	$(MCOPY) -i $@ $(EFI_IMAGE) '::/EFI/Linux/Spectrum_$(VERSION).efi'
	$(MCOPY) -i $@ $(SYSTEMD_BOOT_EFI) ::/EFI/BOOT/$(EFINAME)

clean:
	rm -rf build
.PHONY: clean

run: $(dest)
	@../../scripts/run-qemu.sh -m 4G \
	    -machine virtualization=on \
	    -cpu max \
	    -device virtio-keyboard \
	    -device virtio-mouse \
	    -device virtio-gpu \
	    -parallel none \
	    -vga none \
	    -device qemu-xhci \
	    -device usb-storage,drive=drive1,removable=true \
	    -drive file=$(OVMF_CODE),format=raw,if=pflash,readonly=true \
	    -drive file=$(dest),id=drive1,format=raw,if=none,readonly=true
.PHONY: run

debug log:

solving cf2ace4f5e4ba20a2c0ce9803f72acf0e23f9df3 ...
found cf2ace4f5e4ba20a2c0ce9803f72acf0e23f9df3 in https://inbox.spectrum-os.org/spectrum-devel/20251121-updates-v4-10-d4561c42776e@gmail.com/ ||
	https://inbox.spectrum-os.org/spectrum-devel/20251119-updates-v3-10-b88a99915509@gmail.com/
found a85edfde2d186716656ed23fe719ca63b31bcd59 in https://inbox.spectrum-os.org/spectrum-devel/20251121-updates-v4-9-d4561c42776e@gmail.com/ ||
	https://inbox.spectrum-os.org/spectrum-devel/20251119-updates-v3-8-b88a99915509@gmail.com/
found 78361a48512a37514ba0e57e0cc8b0ec3a71664b in https://inbox.spectrum-os.org/spectrum-devel/20251121-updates-v4-6-d4561c42776e@gmail.com/ ||
	https://inbox.spectrum-os.org/spectrum-devel/20251119-updates-v3-6-b88a99915509@gmail.com/
found a79947c57d562677760bc669c66320953a2b0d2d in https://inbox.spectrum-os.org/spectrum-devel/20251121-updates-v4-4-d4561c42776e@gmail.com/
found d61248e94599adc5229d0ad38d54b9f649d66ca1 in https://inbox.spectrum-os.org/spectrum-devel/20251121-refactor-verity-v5-2-938fc95f9752@gmail.com/ ||
	https://inbox.spectrum-os.org/spectrum-devel/20251119-refactor-verity-v4-2-9bc56d5216c0@gmail.com/
found 7372b41d94bfb10f7761955d9d1a246e9785b7f8 in https://inbox.spectrum-os.org/spectrum-devel/20251121-refactor-verity-v5-1-938fc95f9752@gmail.com/ ||
	https://inbox.spectrum-os.org/spectrum-devel/20251119-refactor-verity-v4-1-9bc56d5216c0@gmail.com/
found 6dcbdeedda5d6ccf293f60dc62043f46c81ecf83 in https://spectrum-os.org/git/spectrum
preparing index
index prepared:
100644 6dcbdeedda5d6ccf293f60dc62043f46c81ecf83	release/live/Makefile

applying [1/6] https://inbox.spectrum-os.org/spectrum-devel/20251121-refactor-verity-v5-1-938fc95f9752@gmail.com/
diff --git a/release/live/Makefile b/release/live/Makefile
index 6dcbdeedda5d6ccf293f60dc62043f46c81ecf83..7372b41d94bfb10f7761955d9d1a246e9785b7f8 100644

Checking patch release/live/Makefile...
Applied patch release/live/Makefile cleanly.

skipping https://inbox.spectrum-os.org/spectrum-devel/20251119-refactor-verity-v4-1-9bc56d5216c0@gmail.com/ for 7372b41d94bfb10f7761955d9d1a246e9785b7f8
index at:
100644 7372b41d94bfb10f7761955d9d1a246e9785b7f8	release/live/Makefile

applying [2/6] https://inbox.spectrum-os.org/spectrum-devel/20251121-refactor-verity-v5-2-938fc95f9752@gmail.com/
diff --git a/release/live/Makefile b/release/live/Makefile
index 7372b41d94bfb10f7761955d9d1a246e9785b7f8..d61248e94599adc5229d0ad38d54b9f649d66ca1 100644

Checking patch release/live/Makefile...
Applied patch release/live/Makefile cleanly.

skipping https://inbox.spectrum-os.org/spectrum-devel/20251119-refactor-verity-v4-2-9bc56d5216c0@gmail.com/ for d61248e94599adc5229d0ad38d54b9f649d66ca1
index at:
100644 d61248e94599adc5229d0ad38d54b9f649d66ca1	release/live/Makefile

applying [3/6] https://inbox.spectrum-os.org/spectrum-devel/20251121-updates-v4-4-d4561c42776e@gmail.com/
diff --git a/release/live/Makefile b/release/live/Makefile
index d61248e94599adc5229d0ad38d54b9f649d66ca1..a79947c57d562677760bc669c66320953a2b0d2d 100644


applying [4/6] https://inbox.spectrum-os.org/spectrum-devel/20251121-updates-v4-6-d4561c42776e@gmail.com/
diff --git a/release/live/Makefile b/release/live/Makefile
index a79947c57d562677760bc669c66320953a2b0d2d..78361a48512a37514ba0e57e0cc8b0ec3a71664b 100644

Checking patch release/live/Makefile...
Applied patch release/live/Makefile cleanly.
Checking patch release/live/Makefile...
Applied patch release/live/Makefile cleanly.

skipping https://inbox.spectrum-os.org/spectrum-devel/20251119-updates-v3-6-b88a99915509@gmail.com/ for 78361a48512a37514ba0e57e0cc8b0ec3a71664b
index at:
100644 78361a48512a37514ba0e57e0cc8b0ec3a71664b	release/live/Makefile

applying [5/6] https://inbox.spectrum-os.org/spectrum-devel/20251121-updates-v4-9-d4561c42776e@gmail.com/
diff --git a/release/live/Makefile b/release/live/Makefile
index 78361a48512a37514ba0e57e0cc8b0ec3a71664b..a85edfde2d186716656ed23fe719ca63b31bcd59 100644

Checking patch release/live/Makefile...
Applied patch release/live/Makefile cleanly.

skipping https://inbox.spectrum-os.org/spectrum-devel/20251119-updates-v3-8-b88a99915509@gmail.com/ for a85edfde2d186716656ed23fe719ca63b31bcd59
index at:
100644 a85edfde2d186716656ed23fe719ca63b31bcd59	release/live/Makefile

applying [6/6] https://inbox.spectrum-os.org/spectrum-devel/20251121-updates-v4-10-d4561c42776e@gmail.com/
diff --git a/release/live/Makefile b/release/live/Makefile
index a85edfde2d186716656ed23fe719ca63b31bcd59..cf2ace4f5e4ba20a2c0ce9803f72acf0e23f9df3 100644

Checking patch release/live/Makefile...
Applied patch release/live/Makefile cleanly.

skipping https://inbox.spectrum-os.org/spectrum-devel/20251119-updates-v3-10-b88a99915509@gmail.com/ for cf2ace4f5e4ba20a2c0ce9803f72acf0e23f9df3
index at:
100644 cf2ace4f5e4ba20a2c0ce9803f72acf0e23f9df3	release/live/Makefile

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).