devtools: support FreeBSD
authorOlivier Matz <olivier.matz@6wind.com>
Thu, 11 Jul 2019 14:25:30 +0000 (16:25 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 30 Jul 2019 22:22:33 +0000 (00:22 +0200)
commit4a4a20c4775b578379fc964952b0bbcff1ac88d6
tree9023a8c33187717112a743ac9856e017841de982
parent7f12dfdcaec0b09bc7c077fd4a2481f8065b9991
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>
devtools/check-dup-includes.sh
devtools/checkpatches.sh
devtools/get-maintainer.sh
devtools/load-devel-config
devtools/test-build.sh
devtools/validate-abi.sh