diff options
author | Łukasz Stelmach <stlman@poczta.fm> | 2012-09-13 22:44:45 +0200 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2012-10-13 21:48:19 +0000 |
commit | 79d7fa1948de033bf5a2523fe8eca25d7f1f4438 (patch) | |
tree | ff82a54471a30196fd049d779587871fdf2c301b /gen_compile.sh | |
parent | Bug #397947: Run depmod on new modules to avoid need to run at every boot on ... (diff) | |
download | genkernel-79d7fa1948de033bf5a2523fe8eca25d7f1f4438.tar.gz genkernel-79d7fa1948de033bf5a2523fe8eca25d7f1f4438.tar.bz2 genkernel-79d7fa1948de033bf5a2523fe8eca25d7f1f4438.zip |
Add --kernel-outputdir to save files outside the source tree.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'gen_compile.sh')
-rwxr-xr-x | gen_compile.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gen_compile.sh b/gen_compile.sh index c923967..87fd586 100755 --- a/gen_compile.sh +++ b/gen_compile.sh @@ -25,6 +25,10 @@ compile_kernel_args() { then ARGS="${ARGS} ARCH=\"${KERNEL_ARCH}\"" fi + if [ -n "${KERNEL_OUTPUTDIR}" ] + then + ARGS="${ARGS} O=\"${KERNEL_OUTPUTDIR}\"" + fi fi echo -n "${ARGS}" } @@ -318,7 +322,7 @@ compile_kernel() { compile_generic "${KERNEL_MAKE_DIRECTIVE_2}" kernel fi - local firmware_in_kernel_line=`fgrep CONFIG_FIRMWARE_IN_KERNEL "${KERNEL_DIR}"/.config` + local firmware_in_kernel_line=`fgrep CONFIG_FIRMWARE_IN_KERNEL "${KERNEL_OUTPUTDIR}"/.config` if [ -n "${firmware_in_kernel_line}" -a "${firmware_in_kernel_line}" != CONFIG_FIRMWARE_IN_KERNEL=y ] then print_info 1 " >> Installing firmware ('make firmware_install') due to CONFIG_FIRMWARE_IN_KERNEL != y..." |