From 6540c25a9b6ba704f419319c51bcf86c1f507b50 Mon Sep 17 00:00:00 2001 From: Minecrell Date: Sun, 2 Feb 2020 16:50:06 +0100 Subject: [PATCH] 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. --- helpers/envkernel.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/helpers/envkernel.sh b/helpers/envkernel.sh index 508d9eee..db76b384 100644 --- a/helpers/envkernel.sh +++ b/helpers/envkernel.sh @@ -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