From: M. R. B. <mr...@0x...> - 2002-01-21 20:45:51
|
* Pete LeMasters <pet...@st...> on Mon, Jan 21, 2002: >=20 > This is using the 3.0.3 GCC tools, and the 2.4.13-pre2 kernel distributio= n. >=20 > /opt/xgcc-sh-3.0.3/bin/sh-elf-strip: supported targets: elf32-sh elf32-shl > coff-sh coff-shl coff-sh-small coff-shl-small elf32-little elf32-big srec > symbolsrec tekhex binary ihex >=20 > So, the real questions are these; >=20 > 1. What is the correct m4 flag to use for SH4 boards with the 3.0.3 tools? > 2. If the -mno-implicit-fp is to be used, what do I need to recompile to = add > the elf32-sh-linux to the list of supported targets? (binutils??) > 3. If I should be using -m4-no-fpu, what is the correct way to avoid the > compilation errors from sh-sci.c? >=20 1. Update your kernel to something recent. Do not use the kernel/ tree from CVS, use linux/ and prepend "-r linux-2_4-branch" to pull in the 2.4 branch. Use linux/scripts/treelink.sh to symlink this tree on top of a full Linux tree from kernel.org - the version to grab is the version indicated by the AGAINST-2.4.x file, in this case 2.4.16. 2. Do not use sh-elf as the --target, it contains absolutely zero SH Linux support. Use sh-linux or sh4-linux instead (the latter defaults to little endian, SH4). 3. Recompile your entire toolchain. M. R. |