From: Rongqing Li <rongqing.li@windriver.com>
To: <openembedded-devel@lists.openembedded.org>
Subject: Re: [PATCH] ebtables: make it be able to work on 64bit kernel with 32 bit userspace
Date: Wed, 12 Nov 2014 09:57:39 +0800 [thread overview]
Message-ID: <5462BE93.1010001@windriver.com> (raw)
In-Reply-To: <1415351679-6838-1-git-send-email-rongqing.li@windriver.com>
Please drop this, I have a refine patch for this issue.
-Roy
On 2014年11月07日 17:14, rongqing.li@windriver.com wrote:
> 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} \
>
--
Best Reagrds,
Roy | RongQing Li
prev parent reply other threads:[~2014-11-12 1:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5462BE93.1010001@windriver.com \
--to=rongqing.li@windriver.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox