X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=build-root%2FMakefile;h=6e26e90e4dd94460ac0b27fa736a9f41b3b55494;hb=f62ae1288a776527c7f7ba3951531fbd07bc63da;hp=a7d89434f0818925e349b1bc2c3a3297890166d1;hpb=46040a513bc32b0f4e9993fbd7f0fc4bc4e1c42c;p=vpp.git diff --git a/build-root/Makefile b/build-root/Makefile index a7d89434f08..6e26e90e4dd 100644 --- a/build-root/Makefile +++ b/build-root/Makefile @@ -220,6 +220,11 @@ else endif export MARCH +MTUNE = $(strip $($(PLATFORM)_mtune)) +ifeq ($(MTUNE),) + MTUNE = generic +endif + ###################################################################### # Generic build stuff ###################################################################### @@ -237,28 +242,10 @@ TAG_PREFIX = $(if $(TAG),$(TAG)-) tag_var_with_added_space_fn = $(if $($(TAG)_TAG_$(1)),$($(TAG)_TAG_$(1)) ) # TAG=debug for debugging -debug_TAG_CFLAGS = -g -O0 -DCLIB_DEBUG -march=$(MARCH) -debug_TAG_LDFLAGS = -g -O0 -DCLIB_DEBUG -march=$(MARCH) - -# TAG=prof for profiling -prof_TAG_CFLAGS = -g -pg -O2 -prof_TAG_LDFLAGS = -g -pg -O2 - -# TAG=o0 -o0_TAG_CFLAGS = -g -O0 -o1_TAG_LDFLAGS = -g -O0 - -# TAG=o1 -o1_TAG_CFLAGS = -g -O1 -o1_TAG_LDFLAGS = -g -O1 - -# TAG=o2 -o2_TAG_CFLAGS = -g -O2 -o2_TAG_LDFLAGS = -g -O2 - -# TAG=o3 -o3_TAG_CFLAGS = -g -O3 -o3_TAG_LDFLAGS = -g -O3 +debug_TAG_CFLAGS = -g -O0 -DCLIB_DEBUG -DFORTIFY_SOURCE=2 -march=$(MARCH) \ + -fstack-protector-all -fPIC +debug_TAG_LDFLAGS = -g -O0 -DCLIB_DEBUG -DFORTIFY_SOURCE=2 -march=$(MARCH) \ + -fstack-protector-all -fPIC BUILD_PREFIX_package = build-$(TAG_PREFIX) BUILD_PREFIX_tool = build-tool-$(TAG_PREFIX) @@ -1177,6 +1164,7 @@ distclean: rm -rf $(MU_BUILD_ROOT_DIR)/*.deb rm -rf $(MU_BUILD_ROOT_DIR)/*.rpm rm -rf $(MU_BUILD_ROOT_DIR)/*.changes + rm -rf $(MU_BUILD_ROOT_DIR)/python if [ -e /usr/bin/dh ];then (cd $(MU_BUILD_ROOT_DIR)/deb/;debian/rules clean); fi rm -f $(MU_BUILD_ROOT_DIR)/deb/debian/*.install rm -f $(MU_BUILD_ROOT_DIR)/deb/debian/*.dkms