patches and low-level development discussion
 help / color / mirror / code / Atom feed
blob 367010c86c5e64272a404a480ed8a43213b3a875 1181 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
 
# SPDX-License-Identifier: EUPL-1.2+
# SPDX-FileCopyrightText: 2021-2025 Alyssa Ross <hi@alyssa.is>

.POSIX:

include ../../lib/common.mk
include ../../lib/kcmdline-utils.mk

DTBS ?= build/empty

dest = build/live.img

$(dest): build/boot.fat $(LIVE_IMAGE_DEPS) $(ROOT_FS) $(ROOT_FS_VERITY) $(ROOT_FS_VERITY_ROOTHASH)
	../../scripts/make-live-image.sh release $@

build/empty:
	mkdir -p $@

build/boot.fat: $(SYSTEMD_BOOT_EFI) $(EFI_IMAGE) build/empty
	ln -sf -- "$$EFI_IMAGE" build/spectrum.efi
	$(TRUNCATE) -s 440401920 $@
	$(MKFS_FAT) $@
	$(MMD) -i $@ ::/EFI ::/EFI/BOOT ::/EFI/Linux
	$(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 367010c86c5e64272a404a480ed8a43213b3a875 ...
found 367010c86c5e64272a404a480ed8a43213b3a875 in https://inbox.spectrum-os.org/spectrum-devel/20251112-updates-v2-4-88d96bf81b79@gmail.com/
found 4de8743f42dec65aa863c3020cd70124316a6118 in https://inbox.spectrum-os.org/spectrum-devel/20251111-refactor-verity-v3-2-575726639f9e@gmail.com/ ||
	https://inbox.spectrum-os.org/spectrum-devel/20251107-refactor-verity-v2-2-2af58b1a4a87@gmail.com/ ||
	https://inbox.spectrum-os.org/spectrum-devel/20251105-refactor-verity-v1-2-b8ba27dfdf06@gmail.com/
found 191b44944af0adf965e1d5f2785719b236bfd99c in https://inbox.spectrum-os.org/spectrum-devel/20251107-refactor-verity-v2-1-2af58b1a4a87@gmail.com/ ||
	https://inbox.spectrum-os.org/spectrum-devel/20251111-refactor-verity-v3-1-575726639f9e@gmail.com/ ||
	https://inbox.spectrum-os.org/spectrum-devel/20251105-refactor-verity-v1-1-b8ba27dfdf06@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/20251107-refactor-verity-v2-1-2af58b1a4a87@gmail.com/
diff --git a/release/live/Makefile b/release/live/Makefile
index 6dcbdeedda5d6ccf293f60dc62043f46c81ecf83..191b44944af0adf965e1d5f2785719b236bfd99c 100644

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

skipping https://inbox.spectrum-os.org/spectrum-devel/20251111-refactor-verity-v3-1-575726639f9e@gmail.com/ for 191b44944af0adf965e1d5f2785719b236bfd99c
skipping https://inbox.spectrum-os.org/spectrum-devel/20251105-refactor-verity-v1-1-b8ba27dfdf06@gmail.com/ for 191b44944af0adf965e1d5f2785719b236bfd99c
index at:
100644 191b44944af0adf965e1d5f2785719b236bfd99c	release/live/Makefile

applying [2/3] https://inbox.spectrum-os.org/spectrum-devel/20251111-refactor-verity-v3-2-575726639f9e@gmail.com/
diff --git a/release/live/Makefile b/release/live/Makefile
index 191b44944af0adf965e1d5f2785719b236bfd99c..4de8743f42dec65aa863c3020cd70124316a6118 100644

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

skipping https://inbox.spectrum-os.org/spectrum-devel/20251107-refactor-verity-v2-2-2af58b1a4a87@gmail.com/ for 4de8743f42dec65aa863c3020cd70124316a6118
skipping https://inbox.spectrum-os.org/spectrum-devel/20251105-refactor-verity-v1-2-b8ba27dfdf06@gmail.com/ for 4de8743f42dec65aa863c3020cd70124316a6118
index at:
100644 4de8743f42dec65aa863c3020cd70124316a6118	release/live/Makefile

applying [3/3] https://inbox.spectrum-os.org/spectrum-devel/20251112-updates-v2-4-88d96bf81b79@gmail.com/
diff --git a/release/live/Makefile b/release/live/Makefile
index 4de8743f42dec65aa863c3020cd70124316a6118..367010c86c5e64272a404a480ed8a43213b3a875 100644

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

index at:
100644 367010c86c5e64272a404a480ed8a43213b3a875	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).