diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-10-16 22:23:52 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-10-16 22:23:52 +0100 |
commit | f92beebe2a93c7bdda44e25ef955b8a609f9250b (patch) | |
tree | 68103db4511e9d5f2ec656fd1ffb180337fbeaca | |
parent | 96d3ab8825b2a733f3c38ee6f56f5ba9cd257fb2 (diff) |
sys-kernel/linux-image-redcore-lts : allow merging to /boot, remove double slash, fix kernel modules removal in pkg_postinst
-rw-r--r-- | packages/sys-kernel/linux-image-redcore-lts/linux-image-redcore-lts-4.14.65.exheres-0 | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/packages/sys-kernel/linux-image-redcore-lts/linux-image-redcore-lts-4.14.65.exheres-0 b/packages/sys-kernel/linux-image-redcore-lts/linux-image-redcore-lts-4.14.65.exheres-0 index bc6ed3c..fd98180 100644 --- a/packages/sys-kernel/linux-image-redcore-lts/linux-image-redcore-lts-4.14.65.exheres-0 +++ b/packages/sys-kernel/linux-image-redcore-lts/linux-image-redcore-lts-4.14.65.exheres-0 @@ -51,6 +51,8 @@ DEFAULT_SRC_PREPARE_PATCHES=( WORK="${WORKBASE}"/linux-"${PV}" pkg_setup() { + exdirectory --allow /boot + export KBUILD_BUILD_USER="nexus" export KBUILD_BUILD_HOST="nexus.redcorelinux.org" @@ -113,10 +115,10 @@ src_install() { edo emake \ "${src_install_params[@]}" \ - INSTALL_MOD_PATH="${IMAGE}"/usr/"$(exhost --target)" modules_install + INSTALL_MOD_PATH="${IMAGE}"usr/"$(exhost --target)" modules_install - edo rm -f "${IMAGE}"/usr/"$(exhost --target)"/lib/modules/"${KV_FULL}"/build - edo rm -f "${IMAGE}"/usr/"$(exhost --target)"/lib/modules/"${KV_FULL}"/source + edo rm -f "${IMAGE}"usr/"$(exhost --target)"/lib/modules/"${KV_FULL}"/build + edo rm -f "${IMAGE}"usr/"$(exhost --target)"/lib/modules/"${KV_FULL}"/source export local KSYMS for KSYMS in build source ; do dosym ../../../../../usr/src/linux-"${KV_FULL}" usr/"$(exhost --target)"/lib/modules/"${KV_FULL}"/"${KSYMS}" @@ -149,7 +151,7 @@ _dkms_modules_delete() { } _kernel_modules_delete() { - edo rm -rf "${ROOT}"lib/modules/"${KV_FULL}" + edo rm -rf "${ROOT}"usr/"$(exhost --target)"/lib/modules/"${KV_FULL}" } pkg_postinst() { |