-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
20 lines (15 loc) · 970 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.PHONY: build configure prepare clean
build: configure
docker run --rm -t --privileged -v $(PWD)/vyos-build:/vyos -w /vyos vyos/vyos-build:current sudo make iso
mkdir -p ./build
mv vyos-build/build/vyos-*.iso ./build
configure: prepare
docker run --rm -t --privileged -v $(PWD)/vyos-build:/vyos -w /vyos vyos/vyos-build:current ./configure --architecture amd64 --build-comment "VyOS with Netclient" --build-type production --version 1.4-rolling-`date +%Y%m%d%H%M`
prepare:
# mkdir -p vyos-build/data/live-build-config/includes.chroot/etc/netclient
mkdir -p vyos-build/data/live-build-config/includes.chroot/usr/sbin
cp netmaker/netclient vyos-build/data/live-build-config/includes.chroot/usr/sbin/netclient
mkdir -p vyos-build/data/live-build-config/includes.chroot/etc/systemd/system/netclient.service.d
cp netmaker/override.conf vyos-build/data/live-build-config/includes.chroot/etc/systemd/system/netclient.service.d/override.conf
clean:
rm -rf ./build