[Buildroot] [PATCH] luajit: new package

François Perrad francois.perrad at gadz.org
Tue Jul 17 10:10:54 UTC 2012


2012/7/17 Thomas Petazzoni <thomas.petazzoni at free-electrons.com>:
> Le Tue, 17 Jul 2012 10:07:21 +0200,
> François Perrad <francois.perrad at gadz.org> a écrit :
>
>> > No, using TARGET_CROSS directly doesn't work when ccache is enabled.
>> > ccache is only used in TARGET_CC and TARGET_CXX, that's why I've done
>> > this this way.
>> >
>> > Can you look at the bitness problem?
>>
>> see http://www.freelists.org/post/luajit/crosscompiling-with-different-bitness
>
> Ok, the reply is:
> http://www.freelists.org/post/luajit/crosscompiling-with-different-bitness,1
>
> Essentially the first sentence shows that Mike Pall has not seen that
> we were talking about cross-compilation. It's not because you're
> running under a x86 kernel that you cannot generate binaries for x86-64.
>
> The second sentence shows that the cross-compilation support in luajit
> is not really nice.
>
> So the only solution that I see is to integrate the proposal of
> Jean-Christophe Plagnol-Villard that allows to have a kconfig option
> defining the host architecture, and then do some depends on magic to
> only show the package when we have the right architecture combination.
> Can you look into this?
>

I applied this patch http://patchwork.ozlabs.org/patch/153235/

now, we could write :
    config BR2_PACKAGE_LUAJIT
	    bool "luajit"
	    depends on BR2_i386 || (BR2_x86_64 && BR2_HOSTARCH='x86_64') ||
BR2_powerpc || BR2_arm || BR2_armeb

François
> Best regards,
>
> Thomas
> --
> Thomas Petazzoni, Free Electrons
> Kernel, drivers, real-time and embedded Linux
> development, consulting, training and support.
> http://free-electrons.com



More information about the buildroot mailing list