
Jagan, the latest content in u-boot-spi.git master branch fails to build for sandbox with:
In file included from drivers/mtd/spi/spi_flash.c:12:0: drivers/mtd/spi/spi_flash.c: In function ‘set_quad_mode’: drivers/mtd/spi/spi_flash.c:906:49: error: ‘idcode0’ undeclared (first use in this function) debug("SF: QEB is volatile for %02x flash\n", idcode0); ^ include/common.h:123:26: note: in definition of macro ‘debug_cond’ printf(pr_fmt(fmt), ##args); \ ^ drivers/mtd/spi/spi_flash.c:906:3: note: in expansion of macro ‘debug’ debug("SF: QEB is volatile for %02x flash\n", idcode0); ^ drivers/mtd/spi/spi_flash.c:906:49: note: each undeclared identifier is reported only once for each function it appears in debug("SF: QEB is volatile for %02x flash\n", idcode0); ^ include/common.h:123:26: note: in definition of macro ‘debug_cond’ printf(pr_fmt(fmt), ##args); \ ^ drivers/mtd/spi/spi_flash.c:906:3: note: in expansion of macro ‘debug’ debug("SF: QEB is volatile for %02x flash\n", idcode0); ^ make[2]: *** [drivers/mtd/spi/spi_flash.o] Error 1 make[2]: *** Waiting for unfinished jobs....
The build seems to work with the previous commit though.