From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shinya Kuribayashi Date: Sat, 17 May 2008 10:07:17 +0900 Subject: [U-Boot-Users] [PATCH] mips: Call 'nand_init()' in generic board initialization when CONFIG_CMD_NAND is set In-Reply-To: <20080516193206.GA2795@loki.buserror.net> References: <1210861819-28024-1-git-send-email-mcmullan@netapp.com> <482DB5B3.7030800@ruby.dti.ne.jp> <20080516193206.GA2795@loki.buserror.net> Message-ID: <482E2FC5.6090609@ruby.dti.ne.jp> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Scott Wood wrote: >> This will break build. According to the blackfin, we can't even include >> if it's not configured. > > Let's fix that, then. What is the error? mips-linux-gnu-gcc -g -Os -D__KERNEL__ -DTEXT_BASE=0xbfc00000 -I/home/skuribay/devel/u-boot.git/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/codesourcery/mips-4.2/bin/../lib/gcc/mips-linux-gnu/4.2.3/include -pipe -DCONFIG_MIPS -D__MIPS__ -G 0 -mabicalls -fpic -msoft-float -march=r5500 -Wa,--trap -Wall -Wstrict-prototypes -c -o board.o board.c In file included from /home/skuribay/devel/u-boot.git/include/nand.h:29, from board.c:31: /home/skuribay/devel/u-boot.git/include/linux/mtd/nand.h:413: error: 'NAND_MAX_CHIPS' undeclared here (not in a function) make[1]: *** [board.o] Error 1 make[1]: Leaving directory `/home/skuribay/devel/u-boot.git/lib_mips' make: *** [lib_mips/libmips.a] Error 2 skuribay at debian:~/devel/u-boot.git$