[oe-commits] [meta-openembedded] 17/19: ebtables: enable KERNEL_64_USERSPACE_32 for arm

git at git.openembedded.org git at git.openembedded.org
Fri Apr 6 12:25:29 UTC 2018


This is an automated email from the git hooks/post-receive script.

joe_macdonald pushed a commit to branch master
in repository meta-openembedded.

commit 7166aaaf38ebf15d887576050084b92bebef982d
Author: Li Zhou <li.zhou at windriver.com>
AuthorDate: Thu Mar 1 14:36:02 2018 +0800

    ebtables: enable KERNEL_64_USERSPACE_32 for arm
    
    On arm64 board, run the kernel as 64bit with 32bit userpace ebtables,
    then run ebtables command:
    ebtables -A OUTPUT -p arp -o eth3 -j DROP
    Below error occurs:
    kernel msg: ebtables bug: please report to author: Standard target size too big
    
    To solve this, enable KERNEL_64_USERSPACE_32 for arm as the commit
    <ebtables: enable KERNEL_64_USERSPACE_32 for powerpc> do.
    
    Use TARGET_ARCH to replace KARCH here because that KARCH can't always get
    value by default.
    
    Signed-off-by: Li Zhou <li.zhou at windriver.com>
    Signed-off-by: Armin Kuster <akuster808 at gmail.com>
    Signed-off-by: Joe MacDonald <joe_macdonald at mentor.com>
---
 meta-networking/recipes-filter/ebtables/ebtables_2.0.10-4.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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 d5e7341..d89ee1a 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
@@ -42,10 +42,10 @@ inherit update-rc.d systemd
 python __anonymous () {
     import re
 
-    karch = d.getVar('KARCH')
+    karch = d.getVar('TARGET_ARCH')
     multilib = d.getVar('MLPREFIX')
 
-    if multilib and karch == 'powerpc64':
+    if multilib and ( karch == 'powerpc64' or karch == 'arm' ):
         searchstr = "lib.?32"
         reg = re.compile(searchstr)
         if reg.search(multilib):

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list