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" cross_gcc="$gcc_pkgname-$deviceinfo_arch"
fi 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 # shellcheck disable=SC2086,SC2154
"$pmbootstrap" -q chroot -- apk -q add \ "$pmbootstrap" -q chroot -- apk -q add \
abuild \ abuild \
bash \
bc \ bc \
binutils \ binutils \
bison \ bison \
$cross_binutils \ $cross_binutils \
$cross_gcc \ $cross_gcc \
diffutils \
elfutils-dev \
findutils \ findutils \
flex \ flex \
"$gcc_pkgname" \ "$gcc_pkgname" \
gmp-dev \
linux-headers \ linux-headers \
openssl-dev \ openssl-dev \
make \ make \
mpc1-dev \
mpfr-dev \
musl-dev \ musl-dev \
ncurses-dev \ ncurses-dev \
perl \ perl \
sed \
xz || return 1 xz || return 1
# Create /mnt/linux # Create /mnt/linux