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:
parent
569c8ff5b0
commit
6540c25a9b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue