aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorFlorin Dumitrascu <florin.dumitrascu@enea.com>2016-03-13 18:49:38 +0100
committerFlorin Dumitrascu <florin.dumitrascu@enea.com>2016-03-13 17:55:05 +0000
commitc715e7bb460f499f4fd20f7ab000d7a6d670636a (patch)
tree79ec69ccb6f19278ac7f0d025fdab9e0f2cbe57b /Makefile
parent1732427ab05ed1301bf9d53fcf47128f44d04811 (diff)
Initial code commit
This brings initial code base for Armband project that allows building an OPNFV Fuel 8 iso based on Brahmaputra components to be deployed on arm64 servers. Signed-off-by: Stanislaw Kardach <kda@semihalf.com> Signed-off-by: Alexandru Avadanii <alexandru.avadanii@enea.com> Signed-off-by: Florin Dumitrascu <florin.dumitrascu@enea.com> JIRA:FUEL-39
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile65
1 files changed, 65 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..34bfde7a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,65 @@
+root:=$(shell pwd)
+
+all: build
+
+.PHONY: submodules-init submodules-clean
+submodules-init:
+ @git submodule -q init
+ @git submodule -q sync
+ @git submodule update
+
+# Cleans any changes made to submodules
+submodules-clean:
+ @git submodule -q foreach \
+ 'git checkout -q armband-workbench-root; \
+ git branch -q -D armband-workbench; \
+ git tag -d armband-workbench-root; \
+ git reset -q --hard HEAD; git clean -xdff'
+
+.PHONY: patches-export patches-import
+# Generate patches from submodules
+patches-export:
+ @git submodule -q foreach 'mkdir -p ${root}/patches/$$name'
+ @git submodule -q foreach 'git format-patch \
+ -o ${root}/patches/$$name -N armband-workbench-root'
+ @find ${root}/patches -name '*.patch' -exec sed -i -e '1d' {} \;
+
+# apply patches from patches/* to respective submodules
+patches-import:
+ @git submodule -q foreach 'mkdir -p ${root}/patches/$$name'
+ @git submodule -q foreach 'git tag armband-workbench-root'
+ @git submodule -q foreach 'git checkout -q -b armband-workbench'
+ @git submodule -q foreach \
+ 'for p in $$(ls ${root}/patches/$$name/); do \
+ git am ${root}/patches/$$name/$$p; \
+ done'
+
+build:
+ cd ${root}/upstream/fuel/build && \
+ time make \
+ BUILD_FUEL_PLUGINS=f_odlpluginbuild \
+ FUEL_MAIN_REPO=${root}/upstream/fuel-main \
+ FUEL_MAIN_TAG= \
+ UBUNTU_ARCH="amd64 arm64" \
+ SEPARATE_IMAGES="/boot,ext2 /,ext4 /boot/efi,vfat" \
+ FUELLIB_REPO=${root}/upstream/fuel-library \
+ NAILGUN_REPO=${root}/upstream/fuel-web \
+ FUEL_AGENT_REPO=${root}/upstream/fuel-agent \
+ FUEL_MIRROR_REPO=${root}/upstream/fuel-mirror \
+ QEMU_REPO=${root}/upstream/fuel-plugin-qemu \
+ OVSNFV_DPDK_REPO=${root}/upstream/fuel-plugin-ovsnfv \
+ FUELLIB_COMMIT=HEAD \
+ NAILGUN_COMMIT=HEAD \
+ FUEL_AGENT_COMMIT=HEAD \
+ FUEL_MIRROR_COMMIT=HEAD \
+ QEMU_BRANCH=HEAD \
+ OVSNFV_DPDK_BRANCH=armband-workbench \
+ PRODUCT_VERSION=8.0 \
+ PRODUCT_NAME=mos \
+ CENTOS_MAJOR=7 \
+ MIRROR_FUEL=http://linux.enea.com/mos-repos/centos/mos8.0-centos7-fuel/os/x86_64/ \
+ MIRROR_UBUNTU_URL=http://archive.ubuntu.com/ubuntu/ \
+ LATEST_MIRROR_ID_URL=http://linux.enea.com/ \
+ JAVA8_URL=https://launchpad.net/~openjdk-r/+archive/ubuntu/ppa/+files/openjdk-8-jre-headless_8u72-b15-1~trusty1_arm64.deb \
+ iso 2>&1 | tee ${root}/build.log
+