From 0b73523bd40778a283380c3cf7fe0a2b5794868e Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 28 Sep 2022 12:15:31 +0200 Subject: kernel.inc: Copy .config to build dir --- core/includes/kernel.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/includes') diff --git a/core/includes/kernel.inc b/core/includes/kernel.inc index 9d7ff839..a77f9bbc 100644 --- a/core/includes/kernel.inc +++ b/core/includes/kernel.inc @@ -213,7 +213,8 @@ copy_kernel () { [ -d "${KERNEL_DIR}" ] || mkdir -p "${KERNEL_DIR}" - cp "${ROOT_DIR}/tmp/work/kernel/build/kernel" "${KERNEL_DIR}" || perror "Could not copy '${ROOT_DIR}/tmp/work/kernel/build/kernel' to '${KERNEL_DIR}'" + cp "${ROOT_DIR}/tmp/work/kernel/build/kernel" "${KERNEL_DIR}/" || perror "Could not copy '${ROOT_DIR}/tmp/work/kernel/build/kernel' to '${KERNEL_DIR}'" + cp "${ROOT_DIR}/tmp/work/kernel/ksrc/.config" "${KERNEL_DIR}/config" # kernel has 0600 perms since ubuntu 14.04, change that once we copied it chmod +r "${KERNEL_DIR}/kernel" -- cgit v1.2.3-55-g7522