From: Wolfgang Denk Date: Mon, 24 Sep 2007 22:44:44 +0200 Subject: [U-Boot-Users] [MIPS] Fix toolchain restriction for little endian build In-Reply-To: Your message of "Tue, 25 Sep 2007 00:44:07 +0900." <46F7DB47.8030706@ruby.dti.ne.jp> Message-ID: <20070924204444.74A8324769@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Shinya Kuribayashi, in message <46F7DB47.8030706@ruby.dti.ne.jp> you wrote: > Fix ENDIANNESS condition to allow gcc toolchains other than ELDK. > > Signed-off-by: Shinya Kuribayashi Thanks you very much for your patch. > -ifneq (,$(findstring 4KCle,$(CROSS_COMPILE))) > +ifneq (,$(shell $(CC) -dumpmachine |grep 'mips.*el-.*')) > ENDIANNESS = -EL > else > ENDIANNESS = -EB I'm afraid I don't understand how this is supposed to work. For example, I get this using ELDK 4.x: -> export CROSS_COMPILE=mips_4KC- -> mips_4KC-gcc -dumpmachine mips-linux -> export CROSS_COMPILE=mips_4KCle- -> mips_4KCle-gcc -dumpmachine mips-linux -> So this change might work with other toolchains (I'm not sure if it does), but it definitely breaks ELDK support. Am I missing something? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de A day without sunshine is like night.