numam-dpdk/devtools/load-devel-config
Olivier Matz 4a4a20c477 devtools: support FreeBSD
- As "readlink -e" and "readlink -m" do not exist on freebsd,
  use "readlink -f", it should not have any impact in these cases.
- "sed -ri" is invalid on freebsd and should be replaced by
  "sed -ri=''"
- Use gmake instead of make.

This fixes the following command:
  SYSDIR=/usr/src/sys ./devtools/test-build.sh \
    -j4 x86_64-native-freebsd-gcc

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
2019-07-31 00:22:33 +02:00

13 lines
420 B
Plaintext

# Load DPDK devel config and allow override
# from system file
test ! -r /etc/dpdk/devel.config ||
. /etc/dpdk/devel.config
# from user file
test ! -r ~/.config/dpdk/devel.config ||
. ~/.config/dpdk/devel.config
# from local file
test ! -r $(dirname $(readlink -f $0))/../.develconfig ||
. $(dirname $(readlink -f $0))/../.develconfig
# The config files must export variables in the shell style