buildtools: fix build with busybox
If using busybox for mktemp and awk (as in Alpine), some bugs prevent the script from running: 1/ It seems busybox mktemp requires the pattern to have at least 6 X and no other suffix. The same has been fixed for other scripts in the past: commit3771edc354
("buildtools: fix build for some mktemp") 2/ It seems busybox awk does not accept the regex ^.*{ except if the opening curly brace is escaped. Fixes:4c82473412
("build: add internal tag check") Fixes:68b1f1cda5
("build: check AVX512 rather than binutils version") Fixes:3290ac14eb
("buildtools: detect discrepancies for experimental symbols") Cc: stable@dpdk.org Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Acked-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru> Acked-by: David Marchand <david.marchand@redhat.com>
This commit is contained in:
parent
bfb42c3777
commit
e1ab26df48
@ -3,7 +3,7 @@
|
||||
# Copyright(c) 2020 Intel Corporation
|
||||
|
||||
AS=${AS:-as}
|
||||
OBJFILE=$(mktemp -t dpdk.binutils-check.XXXXXX.o)
|
||||
OBJFILE=$(mktemp -t dpdk.binutils-check.XXXXXX)
|
||||
trap 'rm -f "$OBJFILE"' EXIT
|
||||
# from https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90028
|
||||
GATHER_PARAMS='0x8(,%ymm1,1),%ymm0{%k2}'
|
||||
|
@ -18,7 +18,7 @@ then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
DUMPFILE=$(mktemp -t dpdk.${0##*/}.XXX.objdump)
|
||||
DUMPFILE=$(mktemp -t dpdk.${0##*/}.objdump.XXXXXX)
|
||||
trap 'rm -f "$DUMPFILE"' EXIT
|
||||
objdump -t $OBJFILE >$DUMPFILE
|
||||
|
||||
|
@ -44,7 +44,7 @@ for file in $@; do
|
||||
ret = 1;
|
||||
}
|
||||
}
|
||||
/^.*{/ {
|
||||
/^.*\{/ {
|
||||
if ("'$section'" == "all" || $1 == "'$section'") {
|
||||
current_section = $1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user