HI Gilles,
thanks for the answer!

On Wed, Sep 18, 2013 at 8:43 PM, Gilles Chanteperdrix
<[email protected]> wrote:
> On 09/18/2013 07:56 PM, Gilles Chanteperdrix wrote:
>> On 09/18/2013 07:29 PM, Drasko DRASKOVIC wrote:
>>> Hi all,
>>> regarding chapter  3.4. Building for ARM here:
>>> http://www.xenomai.org/documentation/xenomai-2.6/html/README.INSTALL/
>>> we should configure like :
>>>
>>> $xenomai_root/configure CFLAGS="-march=armv4t" LDFLAGS="-march=armv4t" \
>>>   --build=i686-pc-linux-gnu --host=arm-none-linux-gnueabi-
>>>
>>> I wanted to know if CFLAGS and LDFLAGS are needed only for compile
>>> time, or maybe later for runtime also?
>>
>> You only need to pass these flags if you are using a generic multilib
>> compiler such as Mentor sourcery codebench. If you are using a compiler
>> specially built for your target, you do not need to pass any flags.


So these are only needed for compile timem if I understand correctly.
Since I am using Linaro's arm-linux-gnueabihf-gcc I will not pass
CFLAGS and LDFLAGS

>> However, I would be surprised if:
>> - it was not possible to pass spaces in CFLAGS, maybe ' works instead of "

Yes, ' works instead of ". That was the first workaround I found, but
then I got curious.

Looking at build/tmp/work/.../xenomai.../temp/run.do_configure.<pid>
log I found out that Bitbake translates these EXTRA_OECONF to :
CFLAGS=\"-march=armv7-a -mfpu=vfp3\" LDFLAGS=\"-march=armv7-a
-mfpu=vfp3\", and passes this to the shell.

So, strangely, declaring EXTRA_OECONF like:
EXTRA_OECONF += "CFLAGS="-march=armv7-a -mfpu=vfp3"
LDFLAGS="-march=armv7-a -mfpu=vfp3"
seems to be working...

However, I noticed also that configure demand include dir, as bitbake
proposes by default /usr/include, and xenomai wants
/usr/include/xenomai, so this must be added to EXTRA_OECONF:
EXTRA_OECONF += "--include=${includedir}/${BPN}"

>> - the rules for building Xenomai with Yocto did not exist somewhere.
>
> For instance:
> http://www.xenomai.org/pipermail/xenomai/2012-October/026533.html
> https://mail.gna.org/public/xenomai-help/2010-02/msg00186.html

Thanks for this links, Gumstix recipe looks very promising. Maybe it
is a good idea to explicitlydefine do_configure() procedure in .bb
file than to let bitbake and autoconf

BR,
Drasko

_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

Reply via email to