helpers/envkernel.sh: add gawk when initialising chroot (MR 2186)

The Awk implementation from BusyBox cannot run the
arch/arm64/tools/gen-sysreg.awk script, and results in the
following error:

  GEN     arch/arm64/include/generated/asm/sysreg-defs.h
Error at 51: unhandled statement
make[2]: *** [../arch/arm64/tools/Makefile:24: arch/arm64/include/generated/asm/sysreg-defs.h] Error 1
make[2]: *** Deleting file 'arch/arm64/include/generated/asm/sysreg-defs.h'
make[1]: *** [../arch/arm64/Makefile:176: archprepare] Error 2
make[1]: Leaving directory '/mnt/linux/.output'
make: *** [Makefile:228: __sub-make] Error 2
make: Leaving directory '/mnt/linux'

Add gawk (GNU Awk) to work around this issue.
This commit is contained in:
Newbyte 2022-05-31 16:49:48 +02:00 committed by Luca Weiss
parent dc1433ead0
commit 22117de4bd
No known key found for this signature in database
GPG Key ID: 72D843B89D4DD756
1 changed files with 1 additions and 0 deletions

View File

@ -158,6 +158,7 @@ initialize_chroot() {
findutils \
flex \
g++ \
gawk \
"$gcc_pkgname" \
gmp-dev \
linux-headers \