git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mk: rework cpu flags detection
[dpdk.git]
/
mk
/
target
/
generic
/
rte.vars.mk
diff --git
a/mk/target/generic/rte.vars.mk
b/mk/target/generic/rte.vars.mk
index
8b0cc25
..
796cca7
100644
(file)
--- a/
mk/target/generic/rte.vars.mk
+++ b/
mk/target/generic/rte.vars.mk
@@
-102,6
+102,10
@@
include $(RTE_SDK)/mk/exec-env/$(RTE_EXEC_ENV)/rte.vars.mk
# provided by Kbuild framework.
ifeq ($(KERNELRELEASE),)
# provided by Kbuild framework.
ifeq ($(KERNELRELEASE),)
+# now that the environment is mostly set up, including the machine type we will
+# be passing to the compiler, set up the specific CPU flags based on that info.
+include $(RTE_SDK)/mk/rte.cpuflags.mk
+
# merge all CFLAGS
CFLAGS := $(CPU_CFLAGS) $(EXECENV_CFLAGS) $(TOOLCHAIN_CFLAGS) $(MACHINE_CFLAGS)
CFLAGS += $(TARGET_CFLAGS)
# merge all CFLAGS
CFLAGS := $(CPU_CFLAGS) $(EXECENV_CFLAGS) $(TOOLCHAIN_CFLAGS) $(MACHINE_CFLAGS)
CFLAGS += $(TARGET_CFLAGS)