From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Thu, 3 Feb 2011 13:14:29 +0100 Subject: [U-Boot] [PATCH 3/3] MIPS: dbau1x00: Disable compilation of flash driver stub In-Reply-To: <1296734392-15203-4-git-send-email-daniel.schwierzeck@googlemail.com> References: <1296734392-15203-1-git-send-email-daniel.schwierzeck@googlemail.com> <1296734392-15203-4-git-send-email-daniel.schwierzeck@googlemail.com> Message-ID: <201102031314.29646.sr@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 Hi Daniel, On Thursday 03 February 2011 12:59:52 daniel.schwierzeck at googlemail.com wrote: > All dbau1x00 boards use the CFI driver so this stub driver is useless > and should not be compiled. > > This patch fixes the error: > > u-boot-git/board/dbau1x00/flash.c:34: multiple definition of `flash_init' > drivers/mtd/libmtd.o:u-boot-git/drivers/mtd/cfi_flash.c:2084: first defined > here board/dbau1x00/libdbau1x00.o: In function `write_buff': > u-boot-git/board/dbau1x00/flash.c:40: multiple definition of `write_buff' > drivers/mtd/libmtd.o:u-boot-git/drivers/mtd/cfi_flash.c:1265: first defined > here I suggest that you not only disable the compilation of this file, but remove it completely. Cheers, Stefan -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de