diff options
author | Damjan Marion <damarion@cisco.com> | 2017-04-24 20:48:53 +0200 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2017-04-25 07:38:49 +0000 |
commit | 1664f9ba4a154f6d11870e0bb9fdaa527b5afbaf (patch) | |
tree | 73dfeb10e87420e50cf84c2a34111bf3eb4bd38f /build-data | |
parent | 36c1308b35baac817c2c0b21335b1eed02689f0a (diff) |
Add support for 32-bit x86 compilation in Makefiles
Change-Id: Ida73678b47b685abef4e81b5cad9fc13eb330850
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'build-data')
-rw-r--r-- | build-data/platforms/vpp.mk | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/build-data/platforms/vpp.mk b/build-data/platforms/vpp.mk index c61375d8..5aafdd76 100644 --- a/build-data/platforms/vpp.mk +++ b/build-data/platforms/vpp.mk @@ -12,11 +12,14 @@ # limitations under the License. # vector packet processor + +MACHINE=$(shell uname -m) + vpp_arch = native -ifeq ($(shell uname -m),x86_64) +ifeq ($(MACHINE),$(filter $(MACHINE),x86_64 i686)) vpp_march = corei7 # Nehalem Instruction set vpp_mtune = corei7-avx # Optimize for Sandy Bridge -else ifeq ($(shell uname -m),aarch64) +else ifeq ($(MACHINE),aarch64) ifeq ($(TARGET_PLATFORM),thunderx) vpp_march = armv8-a+crc vpp_mtune = thunderx |