[yocto] Luajit Compile Error

Li, Xin lixin.fnst at cn.fujitsu.com
Tue Oct 28 02:10:02 PDT 2014


Hi,

Indeed,there is a luajit recipe in meta-oe.
You can have a look at: http://layers.openembedded.org/layerindex/recipe/4918/.

Best Regards,
Li Xin


From: Burton, Ross [mailto:ross.burton at intel.com]
Sent: Tuesday, October 28, 2014 3:48 PM
To: Neil.Wu at emerson.com
Cc: Li, Xin/李 欣; yocto at yoctoproject.org
Subject: Re: [yocto] Luajit Compile Error

Hi,

It's probably a good idea to put this somewhere public, like a new layer on eg github, or add it to meta-oe.  Before then, I've some comments on your recipe:

On 28 October 2014 01:40, <Neil.Wu at emerson.com<mailto:Neil.Wu at emerson.com>> wrote:
FILESEXTRAPATHS_prepend  := "${THISDIR}/${PN}:"
#FILESPATH := "${THISDIR}/${PN}"

You don't need to do this.

FILES_${PN} += "/usr/share/* \
        /usr/include/* \
        /usr/share/lua/* \
        /usr/share/luajit-2.0.2/* \
        /usr/share/man/* \
        /usr/share/lua/5.1/* \
        /usr/lib/* \
        /usr/bin/*"

Don't put headers into $PN.  The default FILES_${PN} covers most of those paths too.

S = "${WORKDIR}/${PN}-${PV}"

This is the default value.

PARALLEL_MAKEINST="PREFIX=${D}/usr"
PARALLEL_MAKE="'PREFIX=${D}' 'CROSS=${TARGET_SYS}-'  'TARGET_SYS=Linux' "

PARALLEL_MAKE* are specifically for parallelism arguments to make (_MAKE for build time, _MAKEINST for make install time).  Set all of these in EXTRA_OEMAKE and it will get added passed automatically when you call oe_runmake.  Does it really need different values for PREFIX at build and install time?

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20141028/e5844526/attachment.html>


More information about the yocto mailing list