diff options
Diffstat (limited to 'recipes-kernel/iwlwifi/backport-iwlwifi_git.bb')
-rw-r--r-- | recipes-kernel/iwlwifi/backport-iwlwifi_git.bb | 56 |
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 @@ | |||
1 | SUMMARY = "Intel Wireless LinuxCore kernel driver" | ||
2 | DESCRIPTION = "Intel Wireless LinuxCore kernel driver" | ||
3 | SECTION = "kernel" | ||
4 | LICENSE = "GPLv2" | ||
5 | |||
6 | REQUIRED_DISTRO_FEATURES = "wifi" | ||
7 | |||
8 | LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" | ||
9 | |||
10 | inherit 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 | |||
20 | PV = "30" | ||
21 | SRCREV = "b31221a99488021300e7f89d2ecf9bdd2bc52dd2" | ||
22 | |||
23 | # Add a patch for Intel's Production Kernel as it's got a backport of HRTimers | ||
24 | PK_PATCH = "${@bb.utils.contains('PREFERRED_PROVIDER_virtual/kernel','linux-intel','file://0001-hrtimer-fix-version-numbers-because-production-kerne.patch','',d)}" | ||
25 | |||
26 | SRC_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 | |||
33 | S = "${WORKDIR}/git" | ||
34 | |||
35 | EXTRA_OEMAKE = "INSTALL_MOD_PATH=${D} KLIB_BUILD=${KBUILD_OUTPUT}" | ||
36 | |||
37 | do_configure() { | ||
38 | CC=gcc CFLAGS= LDFLAGS= make defconfig-iwlwifi-public KLIB_BUILD=${KBUILD_OUTPUT} | ||
39 | } | ||
40 | |||
41 | MODULES_INSTALL_TARGET="install" | ||
42 | |||
43 | do_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 | |||
49 | SYSTEMD_AUTO_ENABLE_${PN} = "enable" | ||
50 | |||
51 | RDEPENDS_${PN} = "linux-firmware-iwlwifi" | ||
52 | |||
53 | KERNEL_MODULE_AUTOLOAD_append_core2-32-intel-common = " iwlwifi" | ||
54 | KERNEL_MODULE_AUTOLOAD_append_corei7-64-intel-common = " iwlwifi" | ||
55 | |||
56 | KERNEL_MODULE_PACKAGE_PREFIX = "backport-iwlwifi" | ||