aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2016-11-12 01:23:55 +0100
committerNeale Ranns <nranns@cisco.com>2016-11-12 18:55:49 +0000
commite30872e6606b4ce6fe1d6ff44be69e590427e45f (patch)
tree23905481022bf88b030ea78b7770181bdf5965d5 /Makefile
parente5af88c8205f4615e86f333bfd837d7a1cc97c7d (diff)
Add clang to 'make verify'
Change-Id: I9ba84632da93ffb7713064db51f2888fc212713a Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 5d20bd23..41a45c88 100644
--- a/Makefile
+++ b/Makefile
@@ -329,6 +329,24 @@ doxygen:
wipe-doxygen:
$(call make-doxy)
+define banner
+ @echo "========================================================================"
+ @echo " $(1)"
+ @echo "========================================================================"
+ @echo " "
+endef
+
verify: $(BR)/.bootstrap.ok
+ifeq ($(OS_ID),ubuntu)
+ifeq ($(OS_VERSION_ID),16.04)
+ $(call banner,"Installing dependencies")
+ @sudo -E apt-get update
+ @sudo -E apt-get $(CONFIRM) $(FORCE) install clang
+ $(call banner,"Building for PLATFORM=vpp using clang")
+ @make -C build-root CC=clang PLATFORM=vpp TAG=vpp_clang wipe-all install-packages
+endif
+endif
+ $(call banner,"Building for PLATFORM=vpp using gcc")
@make -C build-root PLATFORM=vpp TAG=vpp wipe-all install-packages
+ $(call banner,"Building for PLATFORM=vpp_lite using gcc")
@make -C build-root PLATFORM=vpp_lite TAG=vpp_lite wipe-all install-packages