summaryrefslogtreecommitdiff
path: root/mk/rte.cpuflags.mk
diff options
context:
space:
mode:
authorThomas Monjalon <thomas.monjalon@6wind.com>2016-03-21 21:12:55 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-03-22 20:18:33 +0100
commit8744d7a9450edde63769a5e46dd1aadd202007d1 (patch)
tree91b819cd9e237ecfbe8effd815eea268aafe8e02 /mk/rte.cpuflags.mk
parent1604ce1e60ac1bac46e323e8bd277e5117e4013a (diff)
downloaddpdk-8744d7a9450edde63769a5e46dd1aadd202007d1.zip
dpdk-8744d7a9450edde63769a5e46dd1aadd202007d1.tar.gz
dpdk-8744d7a9450edde63769a5e46dd1aadd202007d1.tar.xz
mk: restrict CPU flags list
When compiling each file, the CPU flags are given as RTE_MACHINE_CPUFLAG_* and in the list RTE_COMPILE_TIME_CPUFLAGS. RTE_MACHINE_CPUFLAG_* are used to check the CPU features when compiling. The list RTE_COMPILE_TIME_CPUFLAGS is used only to check the CPU at runtime in the function rte_cpu_check_supported(). So it is not needed to define this list for every files. That's why RTE_COMPILE_TIME_CPUFLAGS is removed from the common variable MACHINE_CFLAGS and is added only to the CFLAGS of eal_common_cpuflags.c. Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Diffstat (limited to 'mk/rte.cpuflags.mk')
-rw-r--r--mk/rte.cpuflags.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/mk/rte.cpuflags.mk b/mk/rte.cpuflags.mk
index 19a3e7e..c494654 100644
--- a/mk/rte.cpuflags.mk
+++ b/mk/rte.cpuflags.mk
@@ -128,4 +128,4 @@ empty:=
space:= $(empty) $(empty)
CPUFLAGSTMP1 := $(addprefix RTE_CPUFLAG_,$(CPUFLAGS))
CPUFLAGSTMP2 := $(subst $(space),$(comma),$(CPUFLAGSTMP1))
-MACHINE_CFLAGS += -DRTE_COMPILE_TIME_CPUFLAGS=$(CPUFLAGSTMP2)
+CPUFLAGS_LIST := -DRTE_COMPILE_TIME_CPUFLAGS=$(CPUFLAGSTMP2)