aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>2018-11-15 10:52:43 +0100
committerChristian Ehrhardt <christian.ehrhardt@canonical.com>2018-11-15 10:52:43 +0100
commit850c962cc5a082ed112fd1be31e965044ac43c4f (patch)
treee73bf32d341461fd95e271c4a789f7a64e505075
parent8d3742ad6a9c0c6ecfc9b078a6f13154c901df33 (diff)
d/rules: select baseline RTE_MACHINE=default
Change-Id: Ic08f51b9d8aa8d76b34a1d9dd35972109253e7dd Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
-rwxr-xr-xdebian/rules20
1 files changed, 3 insertions, 17 deletions
diff --git a/debian/rules b/debian/rules
index 59c620cf..b88051ef 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,29 +12,15 @@ ifeq (,$(findstring terse,$(DEB_BUILD_OPTIONS)))
export DH_OPTIONS=-v
endif
+# default to minimal base, without setting this it would build
+# -march=native which is a non portable invariant
+RTE_MACHINE ?= "default"
# People rebuilding this package can overwrite RTE_MACHINE
# via DEB_BUILD_OPTIONS if they like
ifneq (,$(filter rte_machine=%,$(DEB_BUILD_OPTIONS)))
RTE_MACHINE ?= $(patsubst rte_machine=%,%,$(filter rte_machine=%,$(DEB_BUILD_OPTIONS)))
endif
-# Use default for arm* where there is a defined list.
-# x86 and power would just use "native", which is an invariant, so set
-# power8 and corei7 to keep it stable.
-ifneq (,$(filter $(DEB_HOST_ARCH), arm64))
-RTE_MACHINE ?= "default"
-else
-ifneq (,$(filter $(DEB_HOST_ARCH), armhf))
-RTE_MACHINE ?= "armv7a"
-else
-ifneq (,$(filter $(DEB_HOST_ARCH), ppc64el))
-RTE_MACHINE ?= "power8"
-else
-RTE_MACHINE ?= "corei7"
-endif
-endif
-endif
-
# now stable with parallel comilation, so support -j
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
PAR := $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))