[oe-commits] [meta-openembedded] 22/33: ebtables: enable KERNEL_64_USERSPACE_32 for arm

git at git.openembedded.org git at git.openembedded.org
Thu Mar 22 02:08:30 UTC 2018


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

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

commit fe1e5f8cc64d32c0948a775568d378e57cc7d5eb
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>
---
 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