1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-17 13:10:29 +03:00

kernel-builder: Fix correctness with makeFlags and menuconfig

This commit is contained in:
Samuel Dionne-Riel 2020-09-29 20:46:14 -04:00
parent 5b14ef0650
commit c708340e8e

View File

@ -279,7 +279,7 @@ let kernel = stdenv.mkDerivation {
sed -i"" -e 's/$< .*$(Kconfig)/echo "no-op"/' scripts/kconfig/Makefile
# Build the ...config application.
make $buildFlags
make $makeFlags "''${makeFlagsArray[@]}" $buildFlags
mv scripts/kconfig/Makefile.old scripts/kconfig/Makefile
)
@ -329,7 +329,8 @@ let kernel = stdenv.mkDerivation {
export ARCH="${stdenv.hostPlatform.platform.kernelArch}"
export KERNELVERSION="${version}"
cd "\$KERNEL_TREE"
make run-nconfig "\$@"
${/* We're expanding the builder's makeFlags variable here. This is not a mistake. */""}
make $makeFlags run-nconfig "\$@"
EOF
)