envkernel.sh: add dependencies for x86_64 (!1870)

x86_64 kernels require some additional dependencies to build properly.

At this point, the list is getting quite long. Ideally we should only
install the build dependencies that are necessary for a particular
kernel package. Add a FIXME to document this for the future.
This commit is contained in:
Minecrell 2020-02-02 16:50:06 +01:00 committed by Alexey Min
parent 569c8ff5b0
commit 6540c25a9b
No known key found for this signature in database
GPG Key ID: 463F84201DACD7B9
1 changed files with 12 additions and 0 deletions

View File

@ -131,23 +131,35 @@ initialize_chroot() {
cross_gcc="$gcc_pkgname-$deviceinfo_arch"
fi
# FIXME: Ideally we would not "guess" the dependencies here.
# It might be better to take a kernel package name as parameter
# (e.g. . envkernel.sh linux-postmarketos-mainline)
# and install its build dependencies.
# shellcheck disable=SC2086,SC2154
"$pmbootstrap" -q chroot -- apk -q add \
abuild \
bash \
bc \
binutils \
bison \
$cross_binutils \
$cross_gcc \
diffutils \
elfutils-dev \
findutils \
flex \
"$gcc_pkgname" \
gmp-dev \
linux-headers \
openssl-dev \
make \
mpc1-dev \
mpfr-dev \
musl-dev \
ncurses-dev \
perl \
sed \
xz || return 1
# Create /mnt/linux