aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2019-07-28 16:33:25 +0200
committerThomas Deutschmann <whissi@gentoo.org>2019-07-29 22:00:24 +0200
commit769a07fd3e947ffb216ea94887d752a27ea212d9 (patch)
tree055af5d9402ab9cb59438c0719be73b6eb559be3 /gen_compile.sh
parentkeymaps: Add bepo and colemak keymap (diff)
downloadgenkernel-769a07fd3e947ffb216ea94887d752a27ea212d9.tar.gz
genkernel-769a07fd3e947ffb216ea94887d752a27ea212d9.tar.bz2
genkernel-769a07fd3e947ffb216ea94887d752a27ea212d9.zip
Make initramfs and kernel filename customizable
New options like --initramfs-filename or --kernel-filename will allow user to customize filenames used when installing initramfs or kernel into $BOOTDIR. Therefore --kernelname (KNAME) option was removed. Filename can contain placeholders like '%%ARCH%%' which will get replaced at runtime. Man page contains more information. Bug: https://bugs.gentoo.org/395095 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'gen_compile.sh')
-rwxr-xr-xgen_compile.sh26
1 files changed, 13 insertions, 13 deletions
diff --git a/gen_compile.sh b/gen_compile.sh
index b3a8382e..dd2e7d7e 100755
--- a/gen_compile.sh
+++ b/gen_compile.sh
@@ -303,38 +303,38 @@ 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
+ local tmp_systemmap="${KERNEL_OUTPUTDIR}"/System.map
if isTrue "${CMD_INSTALL}"
then
copy_image_with_preserve \
- "kernel" \
+ "${GK_FILENAME_KERNEL_SYMLINK}" \
"${tmp_kernel_binary}" \
- "kernel-${KNAME}-${ARCH}-${KV}"
+ "${GK_FILENAME_KERNEL}"
copy_image_with_preserve \
- "System.map" \
- "${systemmap}" \
- "System.map-${KNAME}-${ARCH}-${KV}"
+ "${GK_FILENAME_SYSTEMMAP_SYMLINK}" \
+ "${tmp_systemmap}" \
+ "${GK_FILENAME_SYSTEMMAP}"
if isTrue "${GENZIMAGE}"
then
copy_image_with_preserve \
"kernelz" \
"${tmp_kernel_binary2}" \
- "kernelz-${KV}"
+ "${GK_FILENAME_KERNELZ}"
fi
else
- cp "${tmp_kernel_binary}" "${TMPDIR}/kernel-${KNAME}-${ARCH}-${KV}" \
- || gen_die "Could not copy the kernel binary to '${TMPDIR}'!"
+ cp "${tmp_kernel_binary}" "${TMPDIR}/${GK_FILENAME_TEMP_KERNEL}" \
+ || gen_die "Could not copy kernel binary '${tmp_kernel_binary}' to '${TMPDIR}'!"
- cp "${systemmap}" "${TMPDIR}/System.map-${KNAME}-${ARCH}-${KV}" \
- || gen_die "Could not copy System.map to '${TMPDIR}'!"
+ cp "${tmp_systemmap}" "${TMPDIR}/${GK_FILENAME_TEMP_SYSTEMMAP}" \
+ || gen_die "Could not copy System.map '${tmp_systemmap}' to '${TMPDIR}'!"
if isTrue "${GENZIMAGE}"
then
- cp "${tmp_kernel_binary2}" "${TMPDIR}/kernelz-${KV}" \
- || gen_die "Could not copy the kernelz binary to '${TMPDIR}'!"
+ cp "${tmp_kernel_binary2}" "${TMPDIR}/${GK_FILENAME_TEMP_KERNELZ}" \
+ || gen_die "Could not copy kernelz binary '${tmp_kernel_binary2}' to '${TMPDIR}'!"
fi
fi
}