mirror of
https://github.com/apache/nuttx.git
synced 2025-05-08 22:32:04 +08:00
tools/checkpatch: Use gmake on BSD, make otherwise.
* BSD has its own BSD Make that is incompatible with GNU Make. * When BSD is detected use (gnu) gmake in place of (bsd) make. * This fixes nxstyle build inside tools/checkpatch.sh. Signed-off-by: Tomasz 'CeDeROM' CEDRO <tomek@cedro.info>
This commit is contained in:
parent
c7d72bc95c
commit
5ad4667a63
@ -21,6 +21,11 @@
|
||||
|
||||
TOOLDIR=$(dirname $0)
|
||||
|
||||
case "$OSTYPE" in
|
||||
*bsd*) MAKECMD=gmake;;
|
||||
*) MAKECMD=make;;
|
||||
esac
|
||||
|
||||
check=check_patch
|
||||
fail=0
|
||||
range=0
|
||||
@ -189,7 +194,7 @@ check_commit() {
|
||||
check_ranges <<< "$diffs"
|
||||
}
|
||||
|
||||
make -C $TOOLDIR -f Makefile.host nxstyle 1>/dev/null
|
||||
$MAKECMD -C $TOOLDIR -f Makefile.host nxstyle 1>/dev/null
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
usage
|
||||
|
Loading…
x
Reference in New Issue
Block a user