-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
76 lines (57 loc) · 1.31 KB
/
Makefile
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#
# Copyright (C) 2019,2021 Gaël PORTAY
# 2017-2018 Savoir-Faire Linux Inc.
#
# SPDX-License-Identifier: LGPL-2.1-or-later
#
-include local.mk
.NOTPARALLEL:
.PHONY: all
all:
$(MAKE) -C src $@
.PHONY: runuml
runuml: override export CMDLINE+=rdinit=/sbin/tini
runuml:
$(MAKE) -C tests $@
.PHONY: verbose
verbose: override export CMDLINE+=rdinit=/sbin/tini --verbose
verbose: runqemu
.PHONY: debug
debug: override export CMDLINE+=rdinit=/sbin/tini --debug
debug: runqemu
.PHONY: runqemu
runqemu: override export CMDLINE+=rdinit=/sbin/tini vga=0x301
runqemu:
$(MAKE) -C tests $@
.PHONY: nographic
nographic: override export CMDLINE+=rdinit=/sbin/tini console=ttyS0
nographic: override export QEMUFLAGS+=-nographic -serial mon:stdio
nographic:
$(MAKE) -C tests runqemu
.PHONY: vga-ask
vga-ask: override export CMDLINE=vga=ask
vga-ask: runqemu
.PHONY: bootup-logo
bootup-logo: S=$(CURDIR)/tests/linux
bootup-logo:
$(MAKE) -C tests -f [email protected]
.PHONY: menuconfig
menuconfig: tests_linux_menuconfig
tests_%:
$(MAKE) -C tests $*
.PHONY: doc
doc: tini.1.gz
.PHONY: test
test: override export CMDLINE+=rdinit=/sbin/tini
test:
$(MAKE) -C tests
.PHONY: clean check
clean check:
$(MAKE) -C tests $@
$(MAKE) -C src $@
%.1: %.1.adoc
asciidoctor -b manpage -o $@ $<
%.gz: %
gzip -c $^ >$@
%:
$(MAKE) -C tests $@