patches and low-level development discussion
 help / color / mirror / code / Atom feed
blob c712db3727b7008105388a278552fd3d81eb3b4c 1596 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
 
# 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.sh ../../scripts/make-gpt.sh ../../scripts/sfdisk-field.awk build/boot.fat $(ROOT_FS_IMAGES)
	bash ../../scripts/make-gpt.sh $@.tmp \
	    build/boot.fat:c12a7328-f81f-11d2-ba4b-00a0c93ec93b \
	    $(ROOT_FS_VERITY):verity:$$(../../scripts/format-uuid.sh "$$(dd if=$(ROOT_FS_VERITY_ROOTHASH) bs=32 skip=1 count=1 status=none)") \
	    $(ROOT_FS_IMAGE):root:$$(../../scripts/format-uuid.sh "$$(head -c 32 $(ROOT_FS_VERITY_ROOTHASH))")
	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
# This symlink is necessary.  Copying $(EFI_IMAGE) directly
# results in an unbootable image.  TODO: figure out why.
	ln -s $(EFI_IMAGE) build/spectrum.efi
	$(MCOPY) -i $@ build/spectrum.efi ::/EFI/Linux
	$(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 c712db3727b7008105388a278552fd3d81eb3b4c ...
found c712db3727b7008105388a278552fd3d81eb3b4c in https://inbox.spectrum-os.org/spectrum-devel/20251126-updates-v4-2-40c438d2dcaf@gmail.com/ ||
	https://inbox.spectrum-os.org/spectrum-devel/20251126-updates-v5-2-fd746748febd@gmail.com/
found b37ccce42feb3ac7e8ce4faf96a67902b55be808 in https://inbox.spectrum-os.org/spectrum-devel/20251126-refactor-verity-v5-2-0aa3d8bd180d@gmail.com/ ||
	https://inbox.spectrum-os.org/spectrum-devel/20251126-refactor-verity-v6-2-f09555546a85@gmail.com/
found ba81c7e679429e045b24c1591a9f0b72f016cfab in https://inbox.spectrum-os.org/spectrum-devel/20251126-refactor-verity-v5-1-0aa3d8bd180d@gmail.com/ ||
	https://inbox.spectrum-os.org/spectrum-devel/20251126-refactor-verity-v6-1-f09555546a85@gmail.com/
found 6dcbdeedda5d6ccf293f60dc62043f46c81ecf83 in https://spectrum-os.org/git/spectrum
preparing index
index prepared:
100644 6dcbdeedda5d6ccf293f60dc62043f46c81ecf83	release/live/Makefile

applying [1/3] https://inbox.spectrum-os.org/spectrum-devel/20251126-refactor-verity-v5-1-0aa3d8bd180d@gmail.com/
diff --git a/release/live/Makefile b/release/live/Makefile
index 6dcbdeedda5d6ccf293f60dc62043f46c81ecf83..ba81c7e679429e045b24c1591a9f0b72f016cfab 100644

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

skipping https://inbox.spectrum-os.org/spectrum-devel/20251126-refactor-verity-v6-1-f09555546a85@gmail.com/ for ba81c7e679429e045b24c1591a9f0b72f016cfab
index at:
100644 ba81c7e679429e045b24c1591a9f0b72f016cfab	release/live/Makefile

applying [2/3] https://inbox.spectrum-os.org/spectrum-devel/20251126-refactor-verity-v5-2-0aa3d8bd180d@gmail.com/
diff --git a/release/live/Makefile b/release/live/Makefile
index ba81c7e679429e045b24c1591a9f0b72f016cfab..b37ccce42feb3ac7e8ce4faf96a67902b55be808 100644

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

skipping https://inbox.spectrum-os.org/spectrum-devel/20251126-refactor-verity-v6-2-f09555546a85@gmail.com/ for b37ccce42feb3ac7e8ce4faf96a67902b55be808
index at:
100644 b37ccce42feb3ac7e8ce4faf96a67902b55be808	release/live/Makefile

applying [3/3] https://inbox.spectrum-os.org/spectrum-devel/20251126-updates-v4-2-40c438d2dcaf@gmail.com/
diff --git a/release/live/Makefile b/release/live/Makefile
index b37ccce42feb3ac7e8ce4faf96a67902b55be808..c712db3727b7008105388a278552fd3d81eb3b4c 100644

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

skipping https://inbox.spectrum-os.org/spectrum-devel/20251126-updates-v5-2-fd746748febd@gmail.com/ for c712db3727b7008105388a278552fd3d81eb3b4c
index at:
100644 c712db3727b7008105388a278552fd3d81eb3b4c	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).