summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2014-04-13 17:54:36 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2014-04-13 17:54:36 -0700
commitdfbf55f690e21637786023777a216c6a6040dcac (patch)
tree800fce656d38402830643dc0fa4b51a196689730
parentFix install with kernel outputdir. (diff)
downloadgenkernel-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-xgen_compile.sh5
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