forked from rancher/os
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
executable file
·91 lines (68 loc) · 1.76 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
TARGETS := $(shell ls scripts | grep -vE 'clean|run|help|release*|build-moby|run-moby')
.dapper:
@echo Downloading dapper
@curl -sL https://releases.rancher.com/dapper/latest/dapper-`uname -s`-`uname -m|sed 's/v7l//'` > .dapper.tmp
@@chmod +x .dapper.tmp
@./.dapper.tmp -v
@mv .dapper.tmp .dapper
$(TARGETS): .dapper
./.dapper $@
pr-validation: .dapper
ARCH="amd64" \
KERNEL_URL_amd64="skip" \
SKIP_BUILD="true" \
./.dapper ci
trash: .dapper
./.dapper -m bind trash
trash-keep: .dapper
./.dapper -m bind trash -k
deps: trash
build/initrd/.id: .dapper
./.dapper prepare
run: build/initrd/.id .dapper
./.dapper -m bind build-target
./scripts/run
build-moby:
./scripts/build-moby
run-moby:
./scripts/run-moby
shell-bind: .dapper
./.dapper -m bind -s
clean:
@./scripts/clean
release: .dapper release-build
release-build:
mkdir -p dist
./.dapper release
rpi64: .dapper
./scripts/release-rpi64
vmware: .dapper
mkdir -p dist
OS_FIRMWARE="false" \
APPEND_SYSTEM_IMAGES="burmilla/os-openvmtools:11.2.0-5" \
./.dapper release-vmware
hyperv: .dapper
mkdir -p dist
OS_FIRMWARE="false" \
APPEND_SYSTEM_IMAGES="burmilla/os-hypervvmtools:v4.14.206-burmilla-1" \
./.dapper release-hyperv
azurebase: .dapper
mkdir -p dist
AZURE_SERVICE="true" \
OS_FIRMWARE="false" \
APPEND_SYSTEM_IMAGES="burmilla/os-hypervvmtools:v4.14.206-burmilla-1 burmilla/os-waagent:v2.2.49.2-1" \
./.dapper release-azurebase
4glte: .dapper
mkdir -p dist
APPEND_SYSTEM_IMAGES="burmilla/os-modemmanager:v1.6.4-1" \
./.dapper release-4glte
proxmoxve: .dapper
mkdir -p dist
PROXMOXVE_SERVICE="true" \
OS_FIRMWARE="false" \
APPEND_SYSTEM_IMAGES="burmilla/os-qemuguestagent:v3.1.0-1" \
./.dapper release-proxmoxve
help:
@./scripts/help
.DEFAULT_GOAL := default
.PHONY: $(TARGETS)