[U-Boot-Users] RE: is there any other toolchains for u-boot of mips arch?

Date: Wed, 23 Nov 2005 09:28:22 +0800 From: zhuzhenhua zzh.hust@gmail.com
to use other toolchain? what need to do? i change the CROSS_COMPILE in Makefile...
An alternative to setting your PATH in your shell environment is to set a CCPATH and add that to the make process environment in the top-level Makefile.
I'm using a uclibc built compiler under cygwin, and the compilers are not in my shell path:
--- ..\u-boot-1.1.1-orig\Makefile 2004-04-24 18:23:30.000000000 -0500 +++ Makefile 2005-10-26 13:43:58.255033400 -0500 @@ -40,7 +40,8 @@
######################################################################## #
TOPDIR := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi) -export TOPDIR +# export TOPDIR +# TOPDIR := ../u-boot
ifeq (include/config.mk,$(wildcard include/config.mk)) # load ARCH, BOARD, and CPU configuration @@ -67,7 +68,14 @@ endif endif ifeq ($(ARCH),mips) -CROSS_COMPILE = mips_4KC- +# CROSS_COMPILE = sde- +# CROSS_COMPILE = mips_4KC- + +# Our path to our compilers +CCPATH := /usr/local/mipsel-linux/bin/ +CROSS_COMPILE := mipsel-linux-uclibc- +PATH := ${PATH}:${CCPATH} + endif ifeq ($(ARCH),nios) CROSS_COMPILE = nios-elf- @@ -81,6 +89,11 @@ endif endif
+ifeq ($(HOSTOS),cygwin) +exeext = .exe +SHELL = /bin/bash +endif + export CROSS_COMPILE
######################################################################## # @@ -115,7 +128,7 @@ .PHONY : $(LIBS)
# Add GCC lib -PLATFORM_LIBS += --no-warn-mismatch -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc +PLATFORM_LIBS += --no-warn-mismatch -L $(shell dirname `$(CCPATH)$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
# The "tools" are needed early, so put this first
Tim Braun, Sr. Des. Eng. LibreStream Technologies 200-55 Rothwell Rd. Winnipeg R3P 2M5

In message 8230E1CC35AF9F43839F3049E930169A1F5EDB@yang.LibreStream.local you wrote:
i change the CROSS_COMPILE in Makefile...
An alternative to setting your PATH in your shell environment is to set a CCPATH and add that to the make process environment in the top-level Makefile.
Folks, please *stop* messing with the Makefile. This is *N*O*T* necessray. All you need to do is to set the CROSS_COMPILE variable in your environment (and make sure the required directories are in your PATH).
Best regards,
Wolfgang Denk
participants (2)
-
Tim Braun
-
Wolfgang Denk