On 9/09/2014 12:32 am, Peng Fan wrote:

2014-09-08 14:16 GMT+08:00 Chris Johns <chr...@rtems.org
<mailto:chr...@rtems.org>>:

    The rtems-tld currently has a little bit more code to set the
    compiler and linker. This is useful if you want to use absolute
    paths to the compiler and linker rather than depend on paths.

    I have made a number of changes and I have not tested rtems-ld. Are
    you able to run some tests on rtems-ld for me ?

I tried rtems-ld to compile python.rap for arm realview_pbx_qemu_a9 bsp
using such options:
'-B arm/realview_pbx_qemu_a9 -r /opt/rtems-4.11' and rtems-ld can link
the final rap image. At last when load the python.rap, the simpile xx.py
file can be correctly executed. Yeah, I do some debug, and found that
use '-B' can let gcc search the correct libs.
I found that '-B' and '-r' should be set both, otherwise rtems-ld will
complains errors 'No RTEMS path provide with arch/bsp'.

I have just updated the code so the -r is only needed if rtems-ld is not installed. If installed giving it a valid prefix it will set the RTEMS path (-r) to the prefix. This means if you build RTEMS and install it and built the rtl-host code and installed it the paths will default to the $prefix.

The test to determine the prefix is ok and not great but should work for standard installs. Anything else requires the -r option.

Chris
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to