[oe] [meta-oe][PATCH] luajit: mips and mipsel are 32bit targets too

André Draszik git at andred.net
Wed Jan 25 08:58:33 UTC 2017


On Tue, 2017-01-24 at 11:19 -0800, Andre McCurdy wrote:
> When cross compiling, the word size of the compiler set via HOST_CC
> must match the word size of the target. That's achieved by appending
> "-m32" to BUILD_CC_ARCH if the target word size is known to be 32bits.
> 
> Unfortunately the current list of over-rides (powerpc, x86 and arm)
> does not cover all cases. Add mips and mipsel to the list too (which
> is still not enough to cover all targets or corner cases such as x32,
> but better than before).
> 
> Signed-off-by: Andre McCurdy <armccurdy at gmail.com>
> ---
>  meta-oe/recipes-devtools/luajit/luajit_2.0.4.bb | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/meta-oe/recipes-devtools/luajit/luajit_2.0.4.bb b/meta-
> oe/recipes-devtools/luajit/luajit_2.0.4.bb
> index 964dc1d..2049846 100644
> --- a/meta-oe/recipes-devtools/luajit/luajit_2.0.4.bb
> +++ b/meta-oe/recipes-devtools/luajit/luajit_2.0.4.bb
> @@ -24,6 +24,8 @@ BBCLASSEXTEND = "native"
>  BUILD_CC_ARCH_append_powerpc = ' -m32'
>  BUILD_CC_ARCH_append_x86 = ' -m32'
>  BUILD_CC_ARCH_append_arm = ' -m32'
> +BUILD_CC_ARCH_append_mips = ' -m32'
> +BUILD_CC_ARCH_append_mipsel = ' -m32'

I suspect this should be using:

BUILD_CC_ARCH_append_mipsarchn32 = ' -m32'
BUILD_CC_ARCH_append_mipsarcho32 = ' -m32'

to also cover mips r6?


Cheers,
Andre'






More information about the Openembedded-devel mailing list