public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Pierre AUBERT <p.aubert@staubli.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Library order problem
Date: Tue, 19 Nov 2002 15:40:34 +0100	[thread overview]
Message-ID: <3DDA4D62.F255E9B3@staubli.com> (raw)

Hello everybody,

I'm currently developping a driver for a LCD driver (the Epson SED13806
used on the Embedded
Planet ECCX board). In this driver, I need to call board specific
functions, then I added a file in the RPXClassic
board directory. During the link phase, I have some errors because of
undefined references to the board specific
functions. These errors are due to the library order defined in the main
Makefile. The board library is the first in the
list. I've tried to change this order in the following way :

LIBS  = board/$(BOARDDIR)/lib$(BOARD).a
LIBS += cpu/$(CPU)/lib$(CPU).a
LIBS += lib_$(ARCH)/lib$(ARCH).a
LIBS += fs/jffs2/libjffs2.a fs/fdos/libfdos.a
LIBS += net/libnet.a
LIBS += disk/libdisk.a
LIBS += rtc/librtc.a
LIBS += dtt/libdtt.a
LIBS += drivers/libdrivers.a
LIBS += post/libpost.a post/cpu/libcpu.a
LIBS += common/libcommon.a
LIBS += lib_generic/libgeneric.a

becomes
LIBS  = cpu/$(CPU)/lib$(CPU).a
LIBS += lib_$(ARCH)/lib$(ARCH).a
LIBS += fs/jffs2/libjffs2.a fs/fdos/libfdos.a
LIBS += net/libnet.a
LIBS += disk/libdisk.a
LIBS += rtc/librtc.a
LIBS += dtt/libdtt.a
LIBS += drivers/libdrivers.a
LIBS += post/libpost.a post/cpu/libcpu.a
LIBS += common/libcommon.a
LIBS += lib_generic/libgeneric.a
LIBS += board/$(BOARDDIR)/lib$(BOARD).a

This modification solves my problem. I ran the MAKEALL script for 8xx,
8260, 824x and 74xx boards (I don't have any compiler for other
processors) without any problem.

What do you think about this modification ?

             reply	other threads:[~2002-11-19 14:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-19 14:40 Pierre AUBERT [this message]
2002-11-19 15:25 ` [U-Boot-Users] Library order problem Wolfgang Denk
2002-11-19 15:39   ` Chuck Meade
2002-11-19 15:58     ` Pierre AUBERT
2002-11-19 16:09     ` Wolfgang Denk
2002-11-19 15:48   ` Pierre AUBERT
2002-11-19 15:26 ` Chuck Meade
2002-11-19 15:41   ` Pierre AUBERT
  -- strict thread matches above, loose matches on Subject: below --
2002-11-19 15:57 Marius Gröger

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=3DDA4D62.F255E9B3@staubli.com \
    --to=p.aubert@staubli.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox