forked from killermoehre/fedIPA
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (37 loc) · 882 Bytes
/
Makefile
File metadata and controls
46 lines (37 loc) · 882 Bytes
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
ifeq ($(UID),0)
mkosi = ./mkosi/mkosi
qemu = qemu-system-x86_64
else
mkosi = sudo ./mkosi/mkosi
qemu = sudo qemu-system-x86_64
endif
DISTRIBUTION ?= fedora
.PHONY: default
default: git-submodule-init clean build
.PHONY: all
all: git-submodule-init clean build-all
.PHONY: clean
clean:
$(mkosi) clean
.PHONY: build
build:
$(mkosi) build --default mkosi.file/mkosi.$(DISTRIBUTION)
.PHONY: build-all
build-all:
$(mkosi) build --all
.PHONY: shell
shell:
$(mkosi) shell
.PHONY: test
test:
$(qemu) -accel kvm \
-m 1024 \
-kernel mkosi.builddir/tinyipa.$(DISTRIBUTION).kernel \
-initrd mkosi.builddir/tinyipa.$(DISTRIBUTION).initramfs \
-nographic \
-display vnc=0.0.0.0:0 \
-append "console=ttyS0 rd.shell rd.systemd.debug_shell systemd.debug_shell"
.PHONY: git-submodule-init
git-submodule-init:
git submodule init -- mkosi
git submodule update -- mkosi