All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ebtables: make it be able to work on 64bit kernel with 32 bit userspace
@ 2014-11-07  9:14 rongqing.li
  2014-11-12  1:57 ` Rongqing Li
  0 siblings, 1 reply; 2+ messages in thread
From: rongqing.li @ 2014-11-07  9:14 UTC (permalink / raw)
  To: openembedded-devel

From: "Roy.Li" <rongqing.li@windriver.com>


KERNEL_64_USERSPACE_32 should be enabled for 64bit kernel with 32 bit userspace,
otherwise, the date struct(struct ebt_replace, struct ebt_entry_match) have
different alignment size, will make it unable to work.

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
---
 meta-networking/recipes-filter/ebtables/ebtables_2.0.10-4.bb | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/meta-networking/recipes-filter/ebtables/ebtables_2.0.10-4.bb b/meta-networking/recipes-filter/ebtables/ebtables_2.0.10-4.bb
index 32cfc75..9b04d1b 100644
--- a/meta-networking/recipes-filter/ebtables/ebtables_2.0.10-4.bb
+++ b/meta-networking/recipes-filter/ebtables/ebtables_2.0.10-4.bb
@@ -27,6 +27,16 @@ S = "${WORKDIR}/ebtables-v${PV}"
 
 inherit update-rc.d systemd
 
+python __anonymous () {
+    import re
+
+    multilib=d.getVar('MLPREFIX', True) or ""
+    searchstr = "lib.?32"
+    reg = re.compile(searchstr)
+    if reg.search(multilib):
+        d.appendVar('CFLAGS' ,' -DKERNEL_64_USERSPACE_32 -DEBT_MIN_ALIGN=8')
+}
+
 EXTRA_OEMAKE = " \
         BINDIR=${base_sbindir} \
         MANDIR=${mandir} \
-- 
2.1.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-11-12  1:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-07  9:14 [PATCH] ebtables: make it be able to work on 64bit kernel with 32 bit userspace rongqing.li
2014-11-12  1:57 ` Rongqing Li

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.