5 .PHONY: submodules-init submodules-clean
11 # Cleans any changes made to submodules
13 @git submodule -q foreach \
15 git checkout -q armband-workbench-root; \
16 git branch -q -D armband-workbench; \
17 git tag -d armband-workbench-root; \
18 git reset -q --hard HEAD; git clean -xdff'
20 .PHONY: patches-export patches-import
21 # Generate patches from submodules
23 @git submodule -q foreach 'mkdir -p ${root}/patches/$$name'
24 @git submodule -q foreach 'git format-patch \
25 -o ${root}/patches/$$name -N armband-workbench-root \
27 @find ${root}/patches -name '*.patch' -exec sed -i -e '1d' {} \;
29 # apply patches from patches/* to respective submodules
31 @git submodule -q foreach 'mkdir -p ${root}/patches/$$name'
32 @git submodule -q foreach 'git tag armband-workbench-root'
33 @git submodule -q foreach 'git checkout -q -b armband-workbench'
34 @git submodule -q foreach \
35 'if [ ! -z "$$(ls ${root}/patches/$$name/)" ]; then \
36 git am ${root}/patches/$$name/*.patch; \
39 docker stop FUEL_CENTOS_8.0 || true
40 docker rm $(shell docker ps -a -q) || true
41 docker rmi -f $(shell docker images -q) || true
44 sudo rm -rf /tmp/fuel-main
45 git -C ${root}/upstream/fuel reset --hard HEAD
46 git -C ${root}/upstream/fuel clean -xdff
48 release: export LC_ALL=en_US.UTF-8
49 release: submodules-clean clean-docker clean-build submodules-init patches-import build
52 EXTRA_PARAMS="REVSTATE=$(REVSTATE)"
56 cd ${root}/upstream/fuel/build && \
58 BUILD_FUEL_PLUGINS=f_odlpluginbuild \
59 FUEL_MAIN_REPO=${root}/upstream/fuel-main \
61 UBUNTU_ARCH="amd64 arm64" \
62 FUELLIB_REPO=${root}/upstream/fuel-library \
63 NAILGUN_REPO=${root}/upstream/fuel-web \
64 FUEL_AGENT_REPO=${root}/upstream/fuel-agent \
65 FUEL_NAILGUN_AGENT_REPO=${root}/upstream/fuel-nailgun-agent \
66 FUEL_MIRROR_REPO=${root}/upstream/fuel-mirror \
67 QEMU_REPO=${root}/upstream/fuel-plugin-qemu \
68 OVSNFV_DPDK_REPO=${root}/upstream/fuel-plugin-ovsnfv \
69 ODL_REPO=${root}/upstream/fuel-plugin-opendaylight \
73 FUEL_AGENT_COMMIT=HEAD \
74 FUEL_NAILGUN_AGENT_COMMIT=HEAD \
75 FUEL_MIRROR_COMMIT=HEAD \
77 OVSNFV_DPDK_BRANCH=armband-workbench \
78 ODL_BRANCH=armband-workbench \
82 EXTRA_RPM_REPOS="armband,http://linux.enea.com/mos-repos/centos/mos8.0-centos7-fuel/armband/x86_64,10" \
83 MIRROR_UBUNTU_URL=http://archive.ubuntu.com/ubuntu/ \
84 LATEST_MIRROR_ID_URL=http://linux.enea.com/ \
85 JAVA8_URL=https://launchpad.net/~openjdk-r/+archive/ubuntu/ppa/+files/openjdk-8-jre-headless_8u72-b15-1~trusty1_arm64.deb \
87 iso 2>&1 | tee ${root}/build.log