summaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-intel.inc
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2017-07-25 13:52:47 -0700
committerSaul Wold <sgw@linux.intel.com>2017-07-31 09:00:58 -0700
commitd0ba6fc045dffda5aa1e6e015b926615febfbf9f (patch)
treeea566a26f5381fe426d9db452db6cc74134e85e2 /common/recipes-kernel/linux/linux-intel.inc
parent3dfbb5cd08acf4300a4336177e0a8f511a460b01 (diff)
downloadmeta-intel-d0ba6fc045dffda5aa1e6e015b926615febfbf9f.tar.gz
linux-intel: refactor and remove iwlwifi modules for out of tree enablement
Create a linux-intel.inc that is shared between standard and rt kernel for the common bits. By removing these modules here, we can then build and install the out of tree modules from the backport-iwlwifi tree. Move the Autoloading to the kernel module also Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'common/recipes-kernel/linux/linux-intel.inc')
-rw-r--r--common/recipes-kernel/linux/linux-intel.inc39
1 files changed, 39 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-intel.inc b/common/recipes-kernel/linux/linux-intel.inc
new file mode 100644
index 00000000..f3fbd59a
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-intel.inc
@@ -0,0 +1,39 @@
1require recipes-kernel/linux/linux-yocto.inc
2
3SRC_URI = "git://github.com/01org/linux-intel-4.9.git;protocol=https;name=machine;branch=${KBRANCH}; \
4 git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-4.9;destsuffix=${KMETA}"
5
6
7LINUX_VERSION ?= "4.9.30"
8LINUX_VERSION_EXTENSION ?= "-intel-pk-${LINUX_KERNEL_TYPE}"
9
10PV = "${LINUX_VERSION}+git${SRCPV}"
11
12KMETA = "kernel-meta"
13KCONF_BSP_AUDIT_LEVEL = "2"
14
15KERNEL_FEATURES_INTEL_COMMON ?= ""
16
17COMPATIBLE_MACHINE_core2-32-intel-common = "${MACHINE}"
18KMACHINE_core2-32-intel-common = "intel-core2-32"
19KERNEL_FEATURES_append_core2-32-intel-common = "${KERNEL_FEATURES_INTEL_COMMON}"
20
21COMPATIBLE_MACHINE_corei7-64-intel-common = "${MACHINE}"
22KMACHINE_corei7-64-intel-common = "intel-corei7-64"
23KERNEL_FEATURES_append_corei7-64-intel-common = "${KERNEL_FEATURES_INTEL_COMMON}"
24
25COMPATIBLE_MACHINE_i586-nlp-32-intel-common = "${MACHINE}"
26KMACHINE_i586-nlp-32-intel-common = "intel-quark"
27KERNEL_FEATURES_append_i586-nlp-32-intel-common = "features/qat/qat.scc"
28
29# Functionality flags
30KERNEL_FEATURES_append = " ${KERNEL_EXTRA_FEATURES}"
31KERNEL_FEATURES_append = " ${@bb.utils.contains("TUNE_FEATURES", "mx32", " cfg/x32.scc", "" ,d)}"
32
33do_compile_kernelmodules_append() {
34 rm -rf ${B}/drivers/net/wireless/intel/iwlwifi
35 rm -rf ${B}/net/mac80211
36 rm -rf ${B}/net/wireless
37}
38
39RDEPENDS_kernel-modules += "iwlwifi"