From 63461d385776e56ce92b5030afc9184560adbc34 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 30 Jun 2020 00:10:02 +0100 Subject: Fix genkernel missing cd with --no-install --- .../genkernel-next/missing-no-install-cd.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 sys-kernel/genkernel-next/missing-no-install-cd.patch (limited to 'sys-kernel') diff --git a/sys-kernel/genkernel-next/missing-no-install-cd.patch b/sys-kernel/genkernel-next/missing-no-install-cd.patch new file mode 100644 index 0000000..96b2e04 --- /dev/null +++ b/sys-kernel/genkernel-next/missing-no-install-cd.patch @@ -0,0 +1,21 @@ +diff --git a/gen_compile.sh b/gen_compile.sh +index 69eb414..60ed2a7 100755 +--- a/gen_compile.sh ++++ b/gen_compile.sh +@@ -334,6 +334,8 @@ compile_kernel() { + "kernelz-${KV}" + fi + else ++ local curdir=$(pwd) ++ cd ${KERNEL_OUTPUTDIR} + cp "${tmp_kernel_binary}" "${TMPDIR}/kernel-${KNAME}-${ARCH}-${KV}${KAPPENDNAME}" || + gen_die "Could not copy the kernel binary to ${TMPDIR}!" + cp "System.map" "${TMPDIR}/System.map-${KNAME}-${ARCH}-${KV}${KAPPENDNAME}" || +@@ -343,6 +345,7 @@ compile_kernel() { + cp "${tmp_kernel_binary2}" "${TMPDIR}/kernelz-${KV}" || + gen_die "Could not copy the kernelz binary to ${TMPDIR}!" + fi ++ cd "${curdir}" + fi + } + -- cgit v1.2.3