numam-dpdk/mk
David Hunt 6ace79505d mk: fix make defconfig on FreeBSD
On FreeBSD, make defconfig generates the config as
"defconfig_x86_64-bsdapp-", which does not resolve to any known
config file.

On FreeBSD, we get amd64 out of "uname -m", which was not handled by
the list of checks, but which now resolves to x86_64-native.

Then we run '$CC --version', and use grep -o with the list of known
compilers, and set to either gcc, icc or clang. Grep's '-o' option
returns the matched word rather than the whole line, making the
result easier to use.

The remaining code in the patch then takes ${compiler}, the "uname -m"
output and assembles them all together into a valid freebsd config name,
i.e. "defconfig_x86_64-native-bsdapp-clang".

Fixes: bce6c42c4a ("mk: add sensible default target with defconfig")
Cc: stable@dpdk.org

Signed-off-by: David Hunt <david.hunt@intel.com>
Tested-by: Anatoly Burakov <anatoly.burakov@intel.com>
2018-04-23 22:55:36 +02:00
..
arch use SPDX tag for RehiveTech copyright files 2018-04-11 01:47:43 +02:00
exec-env mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
internal mk: fix external build 2018-02-05 23:39:04 +01:00
machine use SPDX tag for RehiveTech copyright files 2018-04-11 01:47:43 +02:00
target/generic mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
toolchain mk: add experimental tag check 2018-01-29 23:35:29 +01:00
rte.app.mk crypto/virtio: add virtio crypto PMD 2018-04-23 18:20:10 +01:00
rte.bsdmodule.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.combinedlib.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.cpuflags.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.extapp.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.extlib.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.extobj.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.extshared.mk mk: allow to build shared libraries 2014-02-26 11:01:13 +01:00
rte.extsubdir.mk mk: do not generate LDLIBS from directory dependencies 2017-10-24 02:14:57 +02:00
rte.gnuconfigure.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.hostapp.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.hostlib.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.install.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.lib.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.module.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.obj.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.sdkbuild.mk mk: fix kernel modules build dependency 2018-03-30 13:01:17 +02:00
rte.sdkconfig.mk mk: fix make defconfig on FreeBSD 2018-04-23 22:55:36 +02:00
rte.sdkdepdirs.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.sdkdoc.mk doc: improve HTML spacing in release notes 2018-02-14 00:23:25 +01:00
rte.sdkexamples.mk mk: add "make examples" target in root makefile 2014-05-16 16:02:55 +02:00
rte.sdkgcov.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.sdkinstall.mk mk: fix excluding files when installing docs 2017-06-27 01:16:22 +02:00
rte.sdkroot.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.sdktest.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.shared.mk mk: sort libraries in dependency lists 2017-10-12 22:31:33 +02:00
rte.subdir.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.vars.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00