All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matej Kupljen <matej.kupljen@ultra.si>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Re: MIPS LE build problems
Date: Wed, 24 Aug 2005 10:54:35 +0200	[thread overview]
Message-ID: <1124873675.20131.6.camel@localhost.localdomain> (raw)
In-Reply-To: <20050818213825.32DFB353CE9@atlas.denx.de>

Hi

> The attached test script works with the tool chains available to  me.
> Can others please test this, too?

As I said it works for me.

Please see attached cpu/mips/config.mk if it is O.K.
to include it in the official U-Boot.
It works for me, maybe others can test it to.

BR,
Matej
-------------- next part --------------
#
# (C) Copyright 2003
# Wolfgang Denk, DENX Software Engineering, <wd@denx.de>
#
# See file CREDITS for list of people who contributed to this
# project.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of
# the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307 USA
#

v=$(shell \
$(CROSS_COMPILE)as --version|grep "GNU assembler"|awk '{print $$3}'|awk -F . '{print $$2}')
MIPSFLAGS=$(shell \
if [ "$v" -lt "14" ]; then \
	echo "-mcpu=4kc -mabicalls"; \
else \
	echo "-march=4kc -mtune=4kc -Wa,-allow_branch_to_undefined -mabicalls"; \
fi)

# Check the default ENDIANNESS of the cross compiler
e=$(shell \
TMPDIR=`mktemp -d`; \
trap 'rm -fr ${TMPDIR}' 0 1 2 3 15; \
>$${TMPDIR}/foo.c; \
${CROSS_COMPILE}gcc -c $${TMPDIR}/foo.c -o $${TMPDIR}/foo.o; \
readelf -h $${TMPDIR}/foo.o | \
sed -n 's/.*Data:.* \([^ ][^ ]*\) endian/\1/p'; \
)

PLATFORM_LDFLAGS += $(shell \
if [ "$e" = "little" ]; then \
	echo "-EL";\
else \
	echo "-EB";\
fi)

PLATFORM_CPPFLAGS += $(MIPSFLAGS)

  parent reply	other threads:[~2005-08-24  8:54 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-18 21:38 [U-Boot-Users] Re: MIPS LE build problems Wolfgang Denk
2005-08-18 23:11 ` Zachary Landau
2005-08-18 23:28   ` Wolfgang Denk
2005-08-20  7:51 ` Matej Kupljen
2005-08-22  8:53 ` Leif Lindholm
2005-08-22  8:59   ` Wolfgang Denk
2005-08-24  8:54 ` Matej Kupljen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-08-08 21:13 [U-Boot-Users] " Wolfgang Denk
2005-08-09 16:59 ` [U-Boot-Users] " Thomas Lange
2005-08-09 19:47   ` Matej Kupljen
2005-08-09 20:56     ` Thomas Lange
2005-08-09 22:06     ` Thomas Lange
2005-08-09 23:23       ` Andrew Dyer
2005-08-10  6:06         ` Matej Kupljen
2005-08-10  6:52         ` Wolfgang Denk
2005-08-10  7:01           ` Matej Kupljen
2005-08-10  7:32             ` Wolfgang Denk
2005-08-10  7:43               ` Matej Kupljen
2005-08-10  8:45                 ` Wolfgang Denk
2005-08-10  9:13                   ` Matej Kupljen
2005-08-10 10:18                     ` Wolfgang Denk
2005-08-17  7:07               ` Matej Kupljen
2005-08-17  8:08                 ` Wolfgang Denk
2005-08-17  8:24                   ` Matej Kupljen
2005-08-17 13:44                     ` Wolfgang Denk
2005-08-18  6:31                       ` Matej Kupljen
2005-08-18  8:46                         ` Wolfgang Denk
2005-08-18  9:01                           ` Matej Kupljen
2005-08-18  8:42                   ` Matej Kupljen
2005-08-18  8:51                     ` Wolfgang Denk
2005-08-18  9:08                       ` Matej Kupljen
2005-08-18 19:54                         ` Udi Finkelstein
2005-08-18 20:56                           ` Wolfgang Denk
2005-08-19  8:59                             ` Udi Finkelstein
2005-08-18 20:46                         ` Wolfgang Denk
2005-08-19  4:55                           ` Matej Kupljen
2005-08-18 18:31                     ` Jerry Van Baren
2005-08-10  6:05       ` Matej Kupljen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1124873675.20131.6.camel@localhost.localdomain \
    --to=matej.kupljen@ultra.si \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.