diff options
author | 2014-04-13 17:54:36 -0700 | |
---|---|---|
committer | 2014-04-13 17:54:36 -0700 | |
commit | dfbf55f690e21637786023777a216c6a6040dcac (patch) | |
tree | 800fce656d38402830643dc0fa4b51a196689730 | |
parent | Fix install with kernel outputdir. (diff) | |
download | genkernel-dfbf55f690e21637786023777a216c6a6040dcac.tar.gz genkernel-dfbf55f690e21637786023777a216c6a6040dcac.tar.bz2 genkernel-dfbf55f690e21637786023777a216c6a6040dcac.zip |
Fix System.map location for src!=output dir.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-x | gen_compile.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gen_compile.sh b/gen_compile.sh index f10aa04..a90977f 100755 --- a/gen_compile.sh +++ b/gen_compile.sh @@ -345,6 +345,7 @@ compile_kernel() { # if source != outputdir, we need this: tmp_kernel_binary="${KERNEL_OUTPUTDIR}"/"${tmp_kernel_binary}" tmp_kernel_binary2="${KERNEL_OUTPUTDIR}"/"${tmp_kernel_binary2}" + systemmap="${KERNEL_OUTPUTDIR}"/System.map if isTrue "${CMD_INSTALL}" then @@ -353,7 +354,7 @@ compile_kernel() { "kernel-${KNAME}-${ARCH}-${KV}" copy_image_with_preserve "System.map" \ - "System.map" \ + "${systemmap}" \ "System.map-${KNAME}-${ARCH}-${KV}" if isTrue "${GENZIMAGE}" @@ -365,7 +366,7 @@ compile_kernel() { else cp "${tmp_kernel_binary}" "${TMPDIR}/kernel-${KNAME}-${ARCH}-${KV}" || gen_die "Could not copy the kernel binary to ${TMPDIR}!" - cp "System.map" "${TMPDIR}/System.map-${KNAME}-${ARCH}-${KV}" || + cp "${systemmap}" "${TMPDIR}/System.map-${KNAME}-${ARCH}-${KV}" || gen_die "Could not copy System.map to ${TMPDIR}!" if isTrue "${GENZIMAGE}" then |