Building RTEMS. Targets and overrides...
Per Dalgas Jakobsen
pdjpub at knaldgas.dk
Thu Aug 4 14:34:38 UTC 2005
>>I'm trying to build RTEMS-4.6.2 on a Cygwin host for a Pentium target.
>>I have successfully made a cross-toolchain for i586-rtems:
>>binutils-2.16.1, newlib (CVS from yesterday) and gcc-3.4.4
>
> Are you sure you did? How did you configure the toolchain?
By successfully, I meant no compilation errors, and is able to compile a
small program with:
i586-rtems-gcc -v -S <small program> (and the assembler looks fine).
and
i586-rtems-gcc -v -c <small program>
But I really don't know if it *works* (since I have no RTEMS to test it
out on yet).
binutils: configure --prefix=$PREFIX --target=$TARGET --enable-libada
gcc-newlib: configure --prefix=$PREFIX --target=$TARGET --with-gnu-as
--with-gnu-ld --with-newlib --enable-threads --enable-libada
--disable-nls --enable-languages=c,ada
>>Unfortunately it seems not so easy to configure RTEMS for an
>>586-optimized toolchain/compiler.
>>
>>Any good reasons for that?
>
> Yes, because it doesn't make much sense.
>
> i586 is treated as a cpu variant of the i386 architecture (some call
> this the "base architecture"), i.e. as
> "i386-rtems-gcc -mtune=pentium"
Then why not streamline it so i586 is working as expected?
Is that hard to do?
>>Then I tried
>>* configure --prefix=/opt/i586-rtems --target=i386-rtems
>>--program-prefix=i586-rtems- --disable-cxx --enable-rtemsbsp=pc586
>>--disable-itron
>>
<snip>
>>"checking for i386-rtems-strip... no" - Strange... I asked to look for
>>i586-rtems-<tool>.
>
> No, you used --target=i386-rtems, i.e. you asked it to look
> for i386-rtems-<tool>.
Yes, but I explicitely asked it to prefix all tools with
"--program-prefix=i586-rtems-"... But it doesn't seem to honour that.
Perhaps I misunderstood something here?!?
~Per
More information about the users
mailing list