[U-Boot-Users] RE: is there any other toolchains for u-boot of mips arch?
Tim Braun
tim.braun at librestream.com
Wed Nov 23 16:47:05 CET 2005
> Date: Wed, 23 Nov 2005 09:28:22 +0800
> From: zhuzhenhua <zzh.hust at 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
More information about the U-Boot
mailing list