[U-Boot] [PATCH v3] export SPI functions to standalone apps

Wolfgang Denk wd at denx.de
Mon Aug 10 10:17:02 CEST 2009


Dear Mike,

In message <1248381468-29618-1-git-send-email-vapier at gentoo.org> you wrote:
> While we're here, fix the broken #ifdef handling in _exports.h.
> 
> Signed-off-by: Mike Frysinger <vapier at gentoo.org>
> ---
> v3
> 	- tweak code style
> 
>  common/exports.c   |    8 ++++++++
>  include/_exports.h |   14 ++++++++++----
>  include/exports.h  |    3 ++-
>  3 files changed, 20 insertions(+), 5 deletions(-)

This patch causes a build error on the "trab" board:

board/trab/../../examples/standalone/libstubs.a(stubs.o): In function `dummy':
include/_exports.h:27: multiple definition of `spi_init'
board/trab/tsc2000.o:board/trab/tsc2000.c:52: first defined here
make[1]: *** [board/trab/trab_fkt.srec] Error 1
make: *** [board/trab/libtrab.a] Error 2

Please provide a fix.

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
Another dream that failed.  There's nothing sadder.
	-- Kirk, "This side of Paradise", stardate 3417.3


More information about the U-Boot mailing list