summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
Diffstat (limited to 'eclass')
-rw-r--r--eclass/linux-build.eclass11
1 files changed, 8 insertions, 3 deletions
diff --git a/eclass/linux-build.eclass b/eclass/linux-build.eclass
index 9255d3ea..7d10f0af 100644
--- a/eclass/linux-build.eclass
+++ b/eclass/linux-build.eclass
@@ -413,6 +413,7 @@ _linux-build_src_install_sources() {
_linux-build_src_install_build() {
einfo "Installing kernel"
emake install "${myopt[@]}" \
+ INSTALLKERNEL=../bin/true \
INSTALL_PATH="${WORKDIR}/boot"
if _linux-build_configval ARM ||
@@ -424,9 +425,13 @@ _linux-build_src_install_build() {
fi
insinto "/boot/${KV_FULL}"
- newins "${WORKDIR}/boot/config-${KV_FULL}" kernel.cfg
- newins "${WORKDIR}/boot/vmlinuz-${KV_FULL}" kernel.img
- newins "${WORKDIR}/boot/System.map-${KV_FULL}" System.map
+ newins "${BUILDDIR}/.config" kernel.cfg
+ newins "${BUILDDIR}/System.map" System.map
+
+ case "$(tc-arch-kernel)" in
+ x86) newins "${BUILDDIR}/arch/$(tc-arch-kernel)/boot/bzImage" kernel.img ;;
+ arm|arm64) newins "${BUILDDIR}/arch/$(tc-arch-kernel)/boot/Image" kernel.img ;;
+ esac
if _linux-build_configval CMDLINE_BOOL && _linux-build_configval CMDLINE ; then
insinto "/boot/${KV_FULL}"