mk: rework cpu flags detection
authorBruce Richardson <bruce.richardson@intel.com>
Mon, 17 Feb 2014 12:46:06 +0000 (13:46 +0100)
committerDavid Marchand <david.marchand@6wind.com>
Tue, 25 Feb 2014 20:29:18 +0000 (21:29 +0100)
commit5e0c946a27d6c00c6ce9341065abbc8b01a2a6b3
tree871ab2fe3df78d51a80fee8eb35eb32c51516f3a
parentcb05bb4d33f441a56e77219714c295676d68413a
mk: rework cpu flags detection

For cases where the compilation microarchitecture is explicitly given, we
extract the cpu-flags to use from the compiler rather than hard-coding. This
means that we will only ever use instruction sets supported by the compiler,
rather than having a case where the uarch and the Intel DPDK both support a
given instruction-set, but the compiler does not.
In the case where 'native' uarch support is requested, the same mechanism is
also used to detect the instruction-sets supported

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Signed-off-by: David Marchand <david.marchand@6wind.com>
mk/machine/atm/rte.vars.mk
mk/machine/default/rte.vars.mk
mk/machine/ivb/rte.vars.mk
mk/machine/native/rte.vars.mk
mk/machine/nhm/rte.vars.mk
mk/machine/snb/rte.vars.mk
mk/machine/wsm/rte.vars.mk
mk/rte.cpuflags.mk [new file with mode: 0644]
mk/target/generic/rte.vars.mk
mk/toolchain/gcc/rte.toolchain-compat.mk
mk/toolchain/icc/rte.toolchain-compat.mk