30 lines
561 B
Bash
30 lines
561 B
Bash
# Copyright 1999-2017 Dustin C. Hatch
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=6
|
|
|
|
inherit dchkernel mount-boot
|
|
|
|
DESCRIPTION="Kernel for ${PN#*-}"
|
|
HOMEPAGE=""
|
|
SRC_URI=""
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
IUSE="modules"
|
|
|
|
DEPEND="app-arch/lz4
|
|
sys-kernel/linux-firmware"
|
|
|
|
pkg_postinst() {
|
|
local installpath=/usr/$(get_libdir)/kernels/"${PN}"
|
|
|
|
if [[ -e /boot/vmlinuz ]]; then
|
|
mv /boot/vmlinuz /boot/vmlinuz.old || die
|
|
fi
|
|
cp "${ROOT%/}${installpath}"/vmlinuz-${KERNELRELEASE} /boot/vmlinuz
|
|
|
|
mount-boot_pkg_postinst
|
|
}
|