From: Peter Asemann <peter.asemann@web.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] i2c compiling and/or linking problem
Date: Thu, 10 Feb 2005 17:42:38 +0100 [thread overview]
Message-ID: <420B8EFE.7010301@web.de> (raw)
Well, I wanted to compile u-boot with i2c support.
So I just added an #include <i2c.h> in to my boards board.c, put #define
CFG_HARD_I2C in the include-file and thought that'd be enough.
Well... apparently that's not enough as compiling (make distclean done
before) stops in the linking process with a lot of complaints like this:
common/libcommon.a(cmd_i2c.o)(.text+0x128): In function `do_i2c_md':
/opt/asemann/u-boot/common/cmd_i2c.c:188: undefined reference to `i2c_read'
and the error
common/libcommon.a(exports.o)(.got2+0x24):/opt/asemann/u-boot/common/exports.c:14:
undefined reference to `i2c_read'
So... any suggestions where to add some references so it find all the
stuff? I tried to figure out what other boards that use i2c do, but
couldn't find any hints that I missed some Makefile or config, got lost
in the build-system.
Peter Asemann
next reply other threads:[~2005-02-10 16:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-10 16:42 Peter Asemann [this message]
2005-02-10 17:05 ` [U-Boot-Users] i2c compiling and/or linking problem Wolfgang Denk
2005-02-10 17:21 ` Peter Asemann
2005-02-10 19:23 ` Wolfgang Denk
2005-02-11 14:51 ` [U-Boot-Users] i2c compiling and/or linking problem - solved (for the archive) Peter Asemann
2005-02-11 15:10 ` Jerry Van Baren
2005-02-11 17:33 ` Wolfgang Denk
2005-02-13 8:22 ` Gleb Natapov
2005-02-11 17:28 ` Wolfgang Denk
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=420B8EFE.7010301@web.de \
--to=peter.asemann@web.de \
--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.