From: Terje Berg Nilsen Date: Mon, 14 Feb 2011 17:08:35 +0000 (UTC) Subject: [U-Boot] m68k-uclinux toolchain problems with u-boot Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de I cloned the latest u-boot.git, set my tool chain prefix to m68k-uclinux- set the config to M5235EVB and ran make all. The below shows the results. Later, I changed to the makefile to use -m5307 instead of -mcpu= and the make chokes on the assembly keyword %RAMBAR1. I changed this to %RAMBAR, and now the make compiles everything but when the link runs it errors on duplicate subroutines. I feel that all these problems are related to the m68k toolchain I use (m68k-uclinux 4.2.4) Can you guys help? Regards, Terje B. Nilsen ------------------------------------------------------------------------ terje at terje-HP-EliteBook-8740w:~$ git clone http://git.denx.de/u-boot.git Initialized empty Git repository in /home/terje/u-boot/.git/ terje at terje-HP-EliteBook-8740w:~$ cd u-boot terje at terje-HP-EliteBook-8740w:~/u-boot$ sudo make M5235EVB_config [sudo] password for terje: awk '(NF && $1 !~ /^#/) { print $1 ": " $1 "_config; $(MAKE)" }' boards.cfg > .boards.depend Configuring for M5235EVB board... terje at terje-HP-EliteBook-8740w:~/u-boot$ sudo make all Generating include/autoconf.mk cc1: error: unrecognized command line option "-mcpu=5235" Generating include/autoconf.mk.dep cc1: error: unrecognized command line option "-mcpu=5235" m68k-elf-gcc -DDO_DEPS_ONLY \ -g -Os -ffixed-d7 -msep-data -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0xFFE00000 -I/home/terje/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/local/lib/gcc/m68k-uclinux/4.2.4/include -pipe -DCONFIG_M68K -D__M68K__ -mcpu=5235 -fPIC -DCONFIG_SYS_TEXT_BASE=0xFFE00000 -Wall -Wstrict-prototypes \ -o lib/asm-offsets.s lib/asm-offsets.c -c -S cc1: error: unrecognized command line option "-mcpu=5235" make: *** [lib/asm-offsets.s] Error 1