aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux
diff options
context:
space:
mode:
authorAwais Belal <awais_belal@mentor.com>2018-05-16 15:38:03 +0500
committerAwais Belal <awais_belal@mentor.com>2018-05-16 16:02:40 +0500
commit6e58a34b807b472651dcd5594f8ac69718ebc282 (patch)
tree7fc767d35a733a8528311f2252d52f122c67e778 /common/recipes-kernel/linux
parenta4cdc99cc8f06fad6ea34a103c929c332e6c5530 (diff)
downloadmeta-amd-6e58a34b807b472651dcd5594f8ac69718ebc282.tar.gz
meta-amd-6e58a34b807b472651dcd5594f8ac69718ebc282.tar.bz2
meta-amd-6e58a34b807b472651dcd5594f8ac69718ebc282.zip
linux-yocto_4.9: further unify the support using the common layer
This will allow for an easier maintenance procedure such that the common fragments can be handled more seamlessly. Signed-off-by: Awais Belal <awais_belal@mentor.com>
Diffstat (limited to 'common/recipes-kernel/linux')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-common_4.9.inc18
-rw-r--r--common/recipes-kernel/linux/linux-yocto_4.9.bbappend10
2 files changed, 19 insertions, 9 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-common_4.9.inc b/common/recipes-kernel/linux/linux-yocto-common_4.9.inc
new file mode 100644
index 00000000..de646bbe
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-common_4.9.inc
@@ -0,0 +1,18 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/linux-yocto-${LINUX_VERSION}:"
+
+PR := "${INC_PR}.1"
+
+KMACHINE_amdx86 ?= "common-pc-64"
+SRCREV_meta_amdx86 ?= "803b8d600e45afa0375459bf599fe365571a3866"
+LINUX_VERSION_amdx86 ?= "4.9.21"
+
+SRC_URI_append_amdx86 += " \
+ file://hid.cfg \
+ file://efi-partition.cfg \
+ file://usb-serial.cfg \
+ file://wifi-drivers.cfg \
+ ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'file://enable-bluetooth.cfg', 'file://disable-bluetooth.cfg', d)} \
+ ${@bb.utils.contains('DISTRO', 'mel', 'file://enable-kgdb.cfg', 'file://disable-kgdb.cfg', d)} \
+"
+
+KERNEL_FEATURES_append_amdx86 = " cfg/smp.scc"
diff --git a/common/recipes-kernel/linux/linux-yocto_4.9.bbappend b/common/recipes-kernel/linux/linux-yocto_4.9.bbappend
index 783a4aba..f646d13d 100644
--- a/common/recipes-kernel/linux/linux-yocto_4.9.bbappend
+++ b/common/recipes-kernel/linux/linux-yocto_4.9.bbappend
@@ -1,14 +1,6 @@
-FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${LINUX_VERSION}:"
+require linux-yocto-common_4.9.inc
-PR := "${INC_PR}.1"
-
-KMACHINE_amdx86 ?= "common-pc-64"
KBRANCH_amdx86 ?= "standard/base"
-
SRCREV_machine_amdx86 ?= "81055b89bd32414ecaf95156ce9a5fa6643e530a"
-SRCREV_meta_amdx86 ?= "803b8d600e45afa0375459bf599fe365571a3866"
-LINUX_VERSION_amdx86 ?= "4.9.21"
SRC_URI_append_amdx86 = " file://upstream-backports.scc"
-
-KERNEL_FEATURES_append_amdx86 = " cfg/smp.scc"