summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meta-phosphor/common/recipes-kernel/linux/linux-obmc.inc6
-rw-r--r--meta-phosphor/common/recipes-kernel/linux/linux-obmc/phosphor-vlan.cfg1
-rw-r--r--meta-phosphor/common/recipes-kernel/linux/linux-obmc/phosphor-vlan.scc2
3 files changed, 9 insertions, 0 deletions
diff --git a/meta-phosphor/common/recipes-kernel/linux/linux-obmc.inc b/meta-phosphor/common/recipes-kernel/linux/linux-obmc.inc
index 78da46967..72819bf4b 100644
--- a/meta-phosphor/common/recipes-kernel/linux/linux-obmc.inc
+++ b/meta-phosphor/common/recipes-kernel/linux/linux-obmc.inc
@@ -10,6 +10,9 @@ KSRC ?= "git://github.com/openbmc/linux;protocol=git;branch=${KBRANCH}"
SRC_URI = "${KSRC}"
SRC_URI += "file://phosphor-gpio-keys.scc"
SRC_URI += "file://phosphor-gpio-keys.cfg"
+SRC_URI += "file://phosphor-vlan.scc"
+SRC_URI += "file://phosphor-vlan.cfg"
+
LINUX_VERSION_EXTENSION ?= "-${SRCREV}"
@@ -29,3 +32,6 @@ do_patch_append() {
inherit kernel
require recipes-kernel/linux/linux-yocto.inc
+
+KERNEL_FEATURES_append = " phosphor-vlan"
+KERNEL_FEATURES_remove_qemuall = " phosphor-vlan"
diff --git a/meta-phosphor/common/recipes-kernel/linux/linux-obmc/phosphor-vlan.cfg b/meta-phosphor/common/recipes-kernel/linux/linux-obmc/phosphor-vlan.cfg
new file mode 100644
index 000000000..1ea3eed08
--- /dev/null
+++ b/meta-phosphor/common/recipes-kernel/linux/linux-obmc/phosphor-vlan.cfg
@@ -0,0 +1 @@
+CONFIG_VLAN_8021Q=y
diff --git a/meta-phosphor/common/recipes-kernel/linux/linux-obmc/phosphor-vlan.scc b/meta-phosphor/common/recipes-kernel/linux/linux-obmc/phosphor-vlan.scc
new file mode 100644
index 000000000..46d3bcec8
--- /dev/null
+++ b/meta-phosphor/common/recipes-kernel/linux/linux-obmc/phosphor-vlan.scc
@@ -0,0 +1,2 @@
+define KFEATURE_DESCRIPTION "Enable VLAN support"
+kconf non-hardware phosphor-vlan.cfg