summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/sys-kernel/linux-image-redcore-lts/linux-image-redcore-lts-4.14.65.exheres-015
1 files changed, 11 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 8da26b1..3635961 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
@@ -106,13 +106,20 @@ src_install() {
exeinto /usr/src/linux-"${KV_FULL}"
doexe vmlinux
- emake INSTALL_MOD_PATH="${IMAGE}" modules_install
+ src_install_params=(
+ CC="${CC}"
+ HOSTCC="${CC}"
+ )
+
+ edo emake \
+ "${src_install_params[@]}" \
+ INSTALL_MOD_PATH="${IMAGE}"/usr/"$(exhost --target)"/lib modules_install
- edo rm -f "${IMAGE}"lib/modules/"${KV_FULL}"/build
- edo rm -f "${IMAGE}"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}" lib/modules/"${KV_FULL}"/"${KSYMS}"
+ dosym ../../../../../usr/src/linux-"${KV_FULL}" usr/"$(exhost --target)"/lib/modules/"${KV_FULL}"/"${KSYMS}"
done
}