summaryrefslogtreecommitdiff
path: root/sys-kernel/easy-kernel/easy-kernel-4.4.9_p2.ebuild
diff options
context:
space:
mode:
authorAndrew Wilcox <AWilcox@Wilcox-Tech.com>2016-07-09 23:41:52 -0500
committerAndrew Wilcox <AWilcox@Wilcox-Tech.com>2016-07-09 23:41:52 -0500
commit7c6b392643ddef544fef53ad35e7d7383aa63a7e (patch)
tree1f14087a3b11905fd5ef2ae15189dca4b823a31d /sys-kernel/easy-kernel/easy-kernel-4.4.9_p2.ebuild
parent534def617483df1a1779a8912587361d060bd6a7 (diff)
downloadpackages-7c6b392643ddef544fef53ad35e7d7383aa63a7e.tar.gz
packages-7c6b392643ddef544fef53ad35e7d7383aa63a7e.tar.bz2
packages-7c6b392643ddef544fef53ad35e7d7383aa63a7e.tar.xz
packages-7c6b392643ddef544fef53ad35e7d7383aa63a7e.zip
sys-kernel/easy-kernel: the first kernel ebuild (x86_64 only right now, help wanted)
Diffstat (limited to 'sys-kernel/easy-kernel/easy-kernel-4.4.9_p2.ebuild')
-rw-r--r--sys-kernel/easy-kernel/easy-kernel-4.4.9_p2.ebuild44
1 files changed, 44 insertions, 0 deletions
diff --git a/sys-kernel/easy-kernel/easy-kernel-4.4.9_p2.ebuild b/sys-kernel/easy-kernel/easy-kernel-4.4.9_p2.ebuild
new file mode 100644
index 000000000..cbc460235
--- /dev/null
+++ b/sys-kernel/easy-kernel/easy-kernel-4.4.9_p2.ebuild
@@ -0,0 +1,44 @@
+# Copyright 2015-2016 Adélie Linux Team
+# Distributed under the terms of the NCSA License
+
+EAPI=6
+
+DESCRIPTION="The Linux kernel - easy edition"
+SLOT="0"
+KEYWORDS="arm mips ppc x86 x86_64 ~alpha ~arm64 ~hppa ~ppc64 ~sparc64"
+
+SRC_URI="https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.4.tar.xz
+ http://mc.680x0.com/linux-4.4.9-mc2.patch.xz"
+
+DEPEND="sys-apps/tuxonice-userui"
+RDEPEND="!sys-kernel/kernel-kit
+ ${DEPEND}"
+RESTRICT="test" # no way you can test a kernel.
+
+S="${WORKDIR}/linux-4.4"
+
+src_prepare() {
+ eapply "${WORKDIR}"/linux-4.4.9-mc2.patch
+ eapply "${FILESDIR}"/sop-to-elizafox-for-wifi.patch
+ default
+}
+
+src_configure() {
+ cp "${FILESDIR}"/config_${PV}_${ARCH} "${S}"/.config || \
+ die "No configuration available for your architecture."
+ emake silentoldconfig
+}
+
+src_compile() {
+ emake bzImage
+ emake modules
+ emake firmware
+}
+
+src_install() {
+ dodir /boot
+ emake install INSTALL_PATH="${D}/boot"
+ emake modules_install INSTALL_MOD_PATH="${D}"
+ emake firmware_install INSTALL_FW_PATH="${D}/lib/firmware"
+}
+