From: Wolfgang Denk Date: Mon, 10 Aug 2009 10:17:02 +0200 Subject: [U-Boot] [PATCH v3] export SPI functions to standalone apps In-Reply-To: <1248381468-29618-1-git-send-email-vapier@gentoo.org> References: <1248381468-29618-1-git-send-email-vapier@gentoo.org> Message-ID: <20090810081702.58D66833DBD2@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 Mike, In message <1248381468-29618-1-git-send-email-vapier@gentoo.org> you wrote: > While we're here, fix the broken #ifdef handling in _exports.h. > > Signed-off-by: Mike Frysinger > --- > 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