diff options
author | Luca Boccassi <luca.boccassi@gmail.com> | 2016-09-21 16:07:57 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2016-09-21 16:07:57 +0100 |
commit | 103ddb445e7ffef5f565783f67c67b0390774180 (patch) | |
tree | 97514356f1344eb422367333f23d045a1acb08e6 /debian/rules | |
parent | 5626defbd5bbf462de7a9fb5d5133a9343ea17e1 (diff) |
Use ?= to allow env var overrides in d/rules
In order to allow users to call debian/rules manually and overriding
the default values of DPDK_CONFIG, RTE_MACHINE and RTE_TARGET assign
the defaults with ?= instead of :=
Change-Id: I5b4b63e62572705b37ff37d610df6305546c62f5
Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/debian/rules b/debian/rules index 0002871d..768203f5 100755 --- a/debian/rules +++ b/debian/rules @@ -35,18 +35,18 @@ export RTE_DEVEL_BUILD=n # People rebuilding this package can overwrite DPDK_CONFIG, RTE_MACHINE and # RTE_TARGET via environment variables if they like ifneq (,$(filter $(DEB_HOST_ARCH), arm64)) -DPDK_CONFIG := "arm64-armv8a-linuxapp-gcc" -RTE_MACHINE := "armv8a" -RTE_TARGET := "arm64-armv8a-linuxapp-gcc" +DPDK_CONFIG ?= "arm64-armv8a-linuxapp-gcc" +RTE_MACHINE ?= "armv8a" +RTE_TARGET ?= "arm64-armv8a-linuxapp-gcc" else ifneq (,$(filter $(DEB_HOST_ARCH), ppc64el)) -DPDK_CONFIG := "ppc_64-power8-linuxapp-gcc" -RTE_MACHINE := "power8" -RTE_TARGET := "ppc_64-power8-linuxapp-gcc" +DPDK_CONFIG ?= "ppc_64-power8-linuxapp-gcc" +RTE_MACHINE ?= "power8" +RTE_TARGET ?= "ppc_64-power8-linuxapp-gcc" else -DPDK_CONFIG := "$(DEB_HOST_GNU_CPU)-native-linuxapp-gcc" -RTE_MACHINE := "default" -RTE_TARGET := "$(DEB_HOST_GNU_CPU)-default-linuxapp-gcc" +DPDK_CONFIG ?= "$(DEB_HOST_GNU_CPU)-native-linuxapp-gcc" +RTE_MACHINE ?= "default" +RTE_TARGET ?= "$(DEB_HOST_GNU_CPU)-default-linuxapp-gcc" endif endif DPDK_STATIC_DIR = "debian/build/static-root" |