summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/iwlwifi/backport-iwlwifi_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/iwlwifi/backport-iwlwifi_git.bb')
-rw-r--r--recipes-kernel/iwlwifi/backport-iwlwifi_git.bb56
1 files changed, 56 insertions, 0 deletions
diff --git a/recipes-kernel/iwlwifi/backport-iwlwifi_git.bb b/recipes-kernel/iwlwifi/backport-iwlwifi_git.bb
new file mode 100644
index 00000000..d391045f
--- /dev/null
+++ b/recipes-kernel/iwlwifi/backport-iwlwifi_git.bb
@@ -0,0 +1,56 @@
1SUMMARY = "Intel Wireless LinuxCore kernel driver"
2DESCRIPTION = "Intel Wireless LinuxCore kernel driver"
3SECTION = "kernel"
4LICENSE = "GPLv2"
5
6REQUIRED_DISTRO_FEATURES = "wifi"
7
8LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
9
10inherit module
11
12# For some iwfwifi LinuxCore supported wireless chips, the best/latest
13# firmware blobs are found in the iwlwifi's linux-firmware.git fork.
14#
15# See: https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi/core_release
16#
17# When updating this recipe, ensure that the proper firmware is included from
18# either the linux-firmware or iwlwifi-firmware repos.
19
20PV = "30"
21SRCREV = "b31221a99488021300e7f89d2ecf9bdd2bc52dd2"
22
23# Add a patch for Intel's Production Kernel as it's got a backport of HRTimers
24PK_PATCH = "${@bb.utils.contains('PREFERRED_PROVIDER_virtual/kernel','linux-intel','file://0001-hrtimer-fix-version-numbers-because-production-kerne.patch','',d)}"
25
26SRC_URI = " \
27 git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/backport-iwlwifi;branch=release/LinuxCore${PV} \
28 file://0001-Makefile.real-skip-host-install-scripts.patch \
29 ${PK_PATCH} \
30 file://iwlwifi.conf \
31 "
32
33S = "${WORKDIR}/git"
34
35EXTRA_OEMAKE = "INSTALL_MOD_PATH=${D} KLIB_BUILD=${KBUILD_OUTPUT}"
36
37do_configure() {
38 CC=gcc CFLAGS= LDFLAGS= make defconfig-iwlwifi-public KLIB_BUILD=${KBUILD_OUTPUT}
39}
40
41MODULES_INSTALL_TARGET="install"
42
43do_install_append() {
44 ## install configs and service scripts
45 install -d ${D}${sysconfdir}/modprobe.d
46 install -m 0644 ${WORKDIR}/iwlwifi.conf ${D}${sysconfdir}/modprobe.d
47}
48
49SYSTEMD_AUTO_ENABLE_${PN} = "enable"
50
51RDEPENDS_${PN} = "linux-firmware-iwlwifi"
52
53KERNEL_MODULE_AUTOLOAD_append_core2-32-intel-common = " iwlwifi"
54KERNEL_MODULE_AUTOLOAD_append_corei7-64-intel-common = " iwlwifi"
55
56KERNEL_MODULE_PACKAGE_PREFIX = "backport-iwlwifi"