Other Parts Discussed in Thread: OMAPL138
Tool/software: Linux
Build errors of u-boot-2018.01+gitAUTOINC+131dc82830-g131dc82830 of linux-omapl138-lcdk-05.00.00.15/board-support
Hi All,
I am using omapl138 lcdk customized board. The above specified u-boot is built successfully with no changes in configuration. Currently I tried enabling Device Drivers->NAND Device support->Support for Freescale NFC for VF610 using make menuconfig. I'm seeing build time errors after these changes.
HOSTCC tools/mkimage.o
HOSTLD tools/mkimage
CC cmd/version.o
LD cmd/built-in.o
CC common/main.o
LD common/built-in.o
CC drivers/mtd/nand/davinci_nand.o
drivers/mtd/nand/davinci_nand.c:828:5: error: conflicting types for ‘board_nand_init’
int board_nand_init(struct nand_chip *chip) __attribute__((weak));
^~~~~~~~~~~~~~~
In file included from drivers/mtd/nand/davinci_nand.c:34:0:
include/nand.h:40:6: note: previous declaration of ‘board_nand_init’ was here
void board_nand_init(void);
^~~~~~~~~~~~~~~
drivers/mtd/nand/davinci_nand.c:830:5: error: conflicting types for ‘board_nand_init’
int board_nand_init(struct nand_chip *chip)
^~~~~~~~~~~~~~~
In file included from drivers/mtd/nand/davinci_nand.c:34:0:
include/nand.h:40:6: note: previous declaration of ‘board_nand_init’ was here
void board_nand_init(void);
^~~~~~~~~~~~~~~
scripts/Makefile.build:280: recipe for target 'drivers/mtd/nand/davinci_nand.o' failed
make[1]: *** [drivers/mtd/nand/davinci_nand.o] Error 1
Makefile:1284: recipe for target 'drivers/mtd/nand' failed
make: *** [drivers/mtd/nand] Error 2
There is two definitions for board_nand_init() with different prototype.
Do I need to enable more configurations other than above changes?
Please, let me know anything is going wrong?
Thanks & Regards,
Bhargavi.