Skip to content
Snippets Groups Projects
Commit 7c6b3926 authored by Anna Wilcox's avatar Anna Wilcox :fox:
Browse files

sys-kernel/easy-kernel: the first kernel ebuild (x86_64 only right now, help wanted)

parent 534def61
No related branches found
No related tags found
No related merge requests found
DIST linux-4.4.9-mc2.patch.xz 523768 SHA256 cc824653c957d5bc44d5f2b52a286e30b392ffddac9c3c7d46a35f63adf90b77 SHA512 6bbb36bc20c4ff3d702b7bfd6c299b493d788e139630f5de8853e085fd1c5b0d905ee79bcd7ba5e368a733c5a703b403c4a7e42569a2b8391850fd8eae5f05ee WHIRLPOOL 79627b729b91de1f53155879d5b8d8d02f03b60991722e7ef5acff21c36edecec142f81cf07f433e2adb0772c47f9beaea83126ff443b14b6f4f7c7c739c98a2
DIST linux-4.4.tar.xz 87295988 SHA256 401d7c8fef594999a460d10c72c5a94e9c2e1022f16795ec51746b0d165418b2 SHA512 13c8459933a8b80608e226a1398e3d1848352ace84bcfb7e6a4a33cb230bbe1ab719d4b58e067283df91ce5311be6d2d595fc8c19e2ae6ecc652499415614b3e WHIRLPOOL 02abc203d867404b9934aaa4c1e5b5dcbb0b0021e91a03f3a7e7fd224eed106821d8b4949f32a590536db150e5a88c16fcde88538777a26d0c17900f0257b1bc
# 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"
}
This diff is collapsed.
From 0ae6554c2bbfa89218cf3a6e8d8d10581334f551 Mon Sep 17 00:00:00 2001
From: Matti Gottlieb <matti.gottlieb@intel.com>
Date: Sun, 14 Feb 2016 17:05:39 +0200
Subject: iwlwifi: mvm: Fix paging memory leak
commit 905e36ae172c83a30894a3adefab7d4f850fcf54 upstream.
If the opmode is stopped and started again we did not free
the paging buffers. Fix that.
In addition when freeing the firmware's paging download
buffer, set the pointer to NULL.
Signed-off-by: Matti Gottlieb <matti.gottlieb@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
drivers/net/wireless/iwlwifi/mvm/fw.c | 2 +-
drivers/net/wireless/iwlwifi/mvm/mvm.h | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/net/wireless/iwlwifi/mvm/fw.c b/drivers/net/wireless/iwlwifi/mvm/fw.c
index d906fa1..610c442 100644
--- a/drivers/net/wireless/iwlwifi/mvm/fw.c
+++ b/drivers/net/wireless/iwlwifi/mvm/fw.c
@@ -106,7 +106,7 @@ static int iwl_send_tx_ant_cfg(struct iwl_mvm *mvm, u8 valid_tx_ant)
sizeof(tx_ant_cmd), &tx_ant_cmd);
}
-static void iwl_free_fw_paging(struct iwl_mvm *mvm)
+void iwl_free_fw_paging(struct iwl_mvm *mvm)
{
int i;
diff --git a/drivers/net/wireless/iwlwifi/mvm/mvm.h b/drivers/net/wireless/iwlwifi/mvm/mvm.h
index 4bde2d0..244e26c 100644
--- a/drivers/net/wireless/iwlwifi/mvm/mvm.h
+++ b/drivers/net/wireless/iwlwifi/mvm/mvm.h
@@ -1190,6 +1190,9 @@ void iwl_mvm_rx_umac_scan_complete_notif(struct iwl_mvm *mvm,
void iwl_mvm_rx_umac_scan_iter_complete_notif(struct iwl_mvm *mvm,
struct iwl_rx_cmd_buffer *rxb);
+/* Paging */
+void iwl_free_fw_paging(struct iwl_mvm *mvm);
+
/* MVM debugfs */
#ifdef CONFIG_IWLWIFI_DEBUGFS
int iwl_mvm_dbgfs_register(struct iwl_mvm *mvm, struct dentry *dbgfs_dir);
--
cgit v0.12
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>horst@adelielinux.org</email>
</maintainer>
<longdescription lang="en">
The easy-kernel package provides a generic kernel suitable for most hardware
compatible with the Adélie Linux distribution. It is comparable to the
linux-image package provided by Debian/Ubuntu or the kernel package provided
by Red Hat/CentOS.
Most users that have read the description this far probably want to download
a vanilla kernel tarball, optionally apply their own preferred patches, and
install it manually. This package is strictly for those who do not want to
bother with building their own kernel.
</longdescription>
</pkgmetadata>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment