eal: fix build on FreeBSD
authorThomas Monjalon <thomas@monjalon.net>
Fri, 27 Apr 2018 01:49:19 +0000 (03:49 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 27 Apr 2018 09:13:59 +0000 (11:13 +0200)
commita5c9b9278cd4fa0b61db045ed19df449f07ab139
treec6b866d9d1a4f9d6bd910031aa04eb039e5e3cf4
parent8ddd6a90ea3cbd3724191984039c71de8b58d41b
eal: fix build on FreeBSD

The auxiliary vector read is implemented only for Linux.
It could be done with procstat_getauxv() for FreeBSD.

Since the commit below, the auxiliary vector functions
are compiled for every architectures, including x86
which is tested with FreeBSD.

This patch is moving the Linux implementation in Linux directory,
and adding a fake/empty implementation for FreeBSD.

Fixes: 2ed9bf330709 ("eal: abstract away the auxiliary vector")

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_eal/bsdapp/eal/Makefile
lib/librte_eal/bsdapp/eal/eal_cpuflags.c [new file with mode: 0644]
lib/librte_eal/bsdapp/eal/meson.build
lib/librte_eal/common/eal_common_cpuflags.c
lib/librte_eal/linuxapp/eal/Makefile
lib/librte_eal/linuxapp/eal/eal_cpuflags.c [new file with mode: 0644]
lib/librte_eal/linuxapp/eal/meson.build