blob: d3c1beec6e0d3f9a29c06b1428c5f8dae76f1526 (
plain)
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
92
93
|
build_dir := build
.PHONY: all
all:
@echo "Make what specifically?"
@echo "The most common target is 'iso'"
.PHONY: prepare
prepare:
@set -e
@echo "Starting VyOS ISO image build"
@scripts/check-build-env
@scripts/check-config
rm -rf build/config/*
@scripts/live-build-config
cp -r data/live-build-config/* build/config/
@scripts/import-local-packages
@scripts/make-version-file
@scripts/build-flavour
.PHONY: iso
.ONESHELL:
iso: clean prepare
@set -e
@echo "It's not like I'm building this specially for you or anything!"
cd $(build_dir)
lb build 2>&1 | tee build.log
cd ..
@scripts/copy-image
.PHONY: prepare-package-env
.ONESHELL:
prepare-package-env:
@set -e
@scripts/pbuilder-config
@scripts/pbuilder-setup
.PHONY: qemu
.ONESHELL:
qemu:
@set -e
@scripts/check-vm-build-env
@scripts/build-qemu-image
.PHONY: vagrant-libvirt
.ONESHELL:
vagrant-libvirt:
@set -e
@scripts/check-vm-build-env
@scripts/build-vagrant-libvirt-box
.PHONY: vmware
.ONESHELL:
vmware:
@set -e
@scripts/check-vm-build-env
@scripts/build-vmware-image
.PHONY: hyperv
.ONESHELL:
hyperv:
@set -e
@scripts/check-vm-build-env
@scripts/build-hyperv-image
.PHONY: clearfog
.ONESHELL:
clearfog: clean prepare
@set -e
@echo "It's not like I'm building this specially for you or anything!"
cd $(build_dir)
@../scripts/build-clearfog-image
.PHONY: clean
.ONESHELL:
clean:
@set -e
cd $(build_dir)
lb clean
rm -f config/binary config/bootstrap config/chroot config/common config/source
rm -f build.log
rm -f vyos-*.iso
rm -f *.img
rm -f *.xz
.PHONY: purge
purge:
rm -rf build/*
|