From 6777842470676f4c597b663f8e7c9c78b5c58ff6 Mon Sep 17 00:00:00 2001 From: Mihai Prica Date: Thu, 15 Nov 2012 12:07:40 +0200 Subject: ebtables: added necessary kernel modules linux-yocto: added kernel configs for ebtables modules Signed-off-by: Mihai Prica Signed-off-by: Raymond Danks --- recipes-extended/ebtables/ebtables_2.0.9-2.bb | 11 ++++++++++- recipes-kernel/linux/linux-yocto/ebtables.cfg | 2 ++ recipes-kernel/linux/linux-yocto/ebtables.scc | 4 ++++ recipes-kernel/linux/linux-yocto_3.4.bbappend | 4 ++++ 4 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 recipes-kernel/linux/linux-yocto/ebtables.cfg create mode 100644 recipes-kernel/linux/linux-yocto/ebtables.scc create mode 100644 recipes-kernel/linux/linux-yocto_3.4.bbappend diff --git a/recipes-extended/ebtables/ebtables_2.0.9-2.bb b/recipes-extended/ebtables/ebtables_2.0.9-2.bb index 2a3a9e1b..d67d4d57 100644 --- a/recipes-extended/ebtables/ebtables_2.0.9-2.bb +++ b/recipes-extended/ebtables/ebtables_2.0.9-2.bb @@ -2,7 +2,7 @@ DESCRIPTION = "Utility that enables basic Ethernet frame filtering on a Linux br PRIORITY = "optional" LICENSE = "GPL" SECTION = "console/network" -PR = "r0" +PR = "r1" LIC_FILES_CHKSUM = "file://COPYING;md5=53b4a999993871a28ab1488fdbd2e73e" TARGET_CC_ARCH += "${LDFLAGS}" @@ -20,6 +20,15 @@ SRC_URI[sha256sum] = "98855f644d43c615a8e663197978e49c95642f46f2bbf8e6f3213af87f S = "${WORKDIR}/ebtables-v${PV}" +ASNEEDED_pn-${PN} = "" + +#Load the necessary kernel modules +RECOMMENDS_${PN} += "kernel-module-ebtables \ + kernel-module-ebtable-nat \ + kernel-module-ebtable-filter \ + kernel-module-ebtable_broute \ + " + EXTRA_OEMAKE = " \ BINDIR=${base_sbindir} \ MANDIR=${mandir} \ diff --git a/recipes-kernel/linux/linux-yocto/ebtables.cfg b/recipes-kernel/linux/linux-yocto/ebtables.cfg new file mode 100644 index 00000000..a3c514e1 --- /dev/null +++ b/recipes-kernel/linux/linux-yocto/ebtables.cfg @@ -0,0 +1,2 @@ +CONFIG_BRIDGE_NF_EBTABLES=m +CONFIG_BRIDGE_EBT_T_NAT=m diff --git a/recipes-kernel/linux/linux-yocto/ebtables.scc b/recipes-kernel/linux/linux-yocto/ebtables.scc new file mode 100644 index 00000000..b3895e58 --- /dev/null +++ b/recipes-kernel/linux/linux-yocto/ebtables.scc @@ -0,0 +1,4 @@ +define KFEATURE_DESCRIPTION "Enable ebtables support" +define KFEATURE_COMPATIBILITY board + +kconf non-hardware ebtables.cfg diff --git a/recipes-kernel/linux/linux-yocto_3.4.bbappend b/recipes-kernel/linux/linux-yocto_3.4.bbappend new file mode 100644 index 00000000..78d3b836 --- /dev/null +++ b/recipes-kernel/linux/linux-yocto_3.4.bbappend @@ -0,0 +1,4 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +SRC_URI += "file://ebtables.scc " + -- cgit v1.2.3-54-g00ecf