summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorIntel <intel.com>2012-12-20 00:00:00 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2013-07-25 15:01:57 +0200
commit51d02e4f57a866d5930df408ab9fec1e921e7613 (patch)
treed46fab5eeda84749bde5a8d63632e09e2a93b5b3 /mk
parent74dfcac19983d5904896cb03b4800ed5877ae07f (diff)
downloaddpdk-51d02e4f57a866d5930df408ab9fec1e921e7613.zip
dpdk-51d02e4f57a866d5930df408ab9fec1e921e7613.tar.gz
dpdk-51d02e4f57a866d5930df408ab9fec1e921e7613.tar.xz
mk: minor changes
Signed-off-by: Intel
Diffstat (limited to 'mk')
-rw-r--r--mk/machine/native/rte.vars.mk28
1 files changed, 14 insertions, 14 deletions
diff --git a/mk/machine/native/rte.vars.mk b/mk/machine/native/rte.vars.mk
index 7208265..316e119 100644
--- a/mk/machine/native/rte.vars.mk
+++ b/mk/machine/native/rte.vars.mk
@@ -57,54 +57,54 @@
# CPU_ASFLAGS =
MACHINE_CFLAGS = -march=native
-AUTO_CPUFLAGS = $(shell cat /proc/cpuinfo | grep flags -m 1)
+AUTO_CPUFLAGS = $(shell grep -m 1 flags /proc/cpuinfo)
# adding flags to CPUFLAGS
ifneq ($(filter $(AUTO_CPUFLAGS),sse),)
- CPUFLAGS += SSE
+CPUFLAGS += SSE
endif
ifneq ($(filter $(AUTO_CPUFLAGS),sse2),)
- CPUFLAGS += SSE2
+CPUFLAGS += SSE2
endif
ifneq ($(filter $(AUTO_CPUFLAGS),sse3),)
- CPUFLAGS += SSE3
+CPUFLAGS += SSE3
endif
ifneq ($(filter $(AUTO_CPUFLAGS),ssse3),)
- CPUFLAGS += SSSE3
+CPUFLAGS += SSSE3
endif
ifneq ($(filter $(AUTO_CPUFLAGS),sse4_1),)
- CPUFLAGS += SSE4_1
+CPUFLAGS += SSE4_1
endif
ifneq ($(filter $(AUTO_CPUFLAGS),sse4_2),)
- CPUFLAGS += SSE4_2
+CPUFLAGS += SSE4_2
endif
ifneq ($(filter $(AUTO_CPUFLAGS),aes),)
- CPUFLAGS += AES
+CPUFLAGS += AES
endif
ifneq ($(filter $(AUTO_CPUFLAGS),pclmulqdq),)
- CPUFLAGS += PCLMULQDQ
+CPUFLAGS += PCLMULQDQ
endif
ifneq ($(filter $(AUTO_CPUFLAGS),avx),)
- CPUFLAGS += AVX
+CPUFLAGS += AVX
endif
ifneq ($(filter $(AUTO_CPUFLAGS),rdrnd),)
- CPUFLAGS += RDRAND
+CPUFLAGS += RDRAND
endif
ifneq ($(filter $(AUTO_CPUFLAGS),fsgsbase),)
- CPUFLAGS += FSGSBASE
+CPUFLAGS += FSGSBASE
endif
ifneq ($(filter $(AUTO_CPUFLAGS),f16c),)
- CPUFLAGS += F16C
-endif \ No newline at end of file
+CPUFLAGS += F16C
+endif