All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [UBOOT]: Mcspi/qspi conflicting configs leading to build failure.
@ 2013-10-03 18:37 Sourav Poddar
  2013-10-03 18:41 ` Jagan Teki
  0 siblings, 1 reply; 2+ messages in thread
From: Sourav Poddar @ 2013-10-03 18:37 UTC (permalink / raw)
  To: u-boot

Hi Jagan,

If you see the mcspi defconfig(CONFIG_OMAP3_SPI), it is moved to
common file "include/configs/ti_armv7_common.h" . But with this, now after
adding qspi the build breaks like this..

ti_qspi.o: In function `spi_cs_is_valid':
/home/a0131647/clone/u-boot/drivers/spi/ti_qspi.c:108: multiple 
definition of `spi_cs_is_valid'
omap3_spi.o:/home/a0131647/clone/u-boot/drivers/spi/omap3_spi.c:415: 
first defined here
ti_qspi.o: In function `spi_cs_activate':
/home/a0131647/clone/u-boot/drivers/spi/ti_qspi.c:114: multiple 
definition of `spi_cs_activate'
omap3_spi.o:/home/a0131647/clone/u-boot/drivers/spi/omap3_spi.c:419: 
first defined here
ti_qspi.o: In function `spi_cs_deactivate':
/home/a0131647/clone/u-boot/drivers/spi/ti_qspi.c:120: multiple 
definition of `spi_cs_deactivate'
omap3_spi.o:/home/a0131647/clone/u-boot/drivers/spi/omap3_spi.c:423: 
first defined here
ti_qspi.o: In function `spi_init':
/home/a0131647/clone/u-boot/drivers/spi/ti_qspi.c:125: multiple 
definition of `spi_init'

As of now, I am tackling this by doing a undef CONFIG_OMAP3_SPI in my 
configs.

But, we should have a way to use both(spi/qspi) of them simultaneously ?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot] [UBOOT]: Mcspi/qspi conflicting configs leading to build failure.
  2013-10-03 18:37 [U-Boot] [UBOOT]: Mcspi/qspi conflicting configs leading to build failure Sourav Poddar
@ 2013-10-03 18:41 ` Jagan Teki
  0 siblings, 0 replies; 2+ messages in thread
From: Jagan Teki @ 2013-10-03 18:41 UTC (permalink / raw)
  To: u-boot

On Fri, Oct 4, 2013 at 12:07 AM, Sourav Poddar <sourav.poddar@ti.com> wrote:
> Hi Jagan,
>
> If you see the mcspi defconfig(CONFIG_OMAP3_SPI), it is moved to
> common file "include/configs/ti_armv7_common.h" . But with this, now after
> adding qspi the build breaks like this..
>
> ti_qspi.o: In function `spi_cs_is_valid':
> /home/a0131647/clone/u-boot/drivers/spi/ti_qspi.c:108: multiple definition
> of `spi_cs_is_valid'
> omap3_spi.o:/home/a0131647/clone/u-boot/drivers/spi/omap3_spi.c:415: first
> defined here
> ti_qspi.o: In function `spi_cs_activate':
> /home/a0131647/clone/u-boot/drivers/spi/ti_qspi.c:114: multiple definition
> of `spi_cs_activate'
> omap3_spi.o:/home/a0131647/clone/u-boot/drivers/spi/omap3_spi.c:419: first
> defined here
> ti_qspi.o: In function `spi_cs_deactivate':
> /home/a0131647/clone/u-boot/drivers/spi/ti_qspi.c:120: multiple definition
> of `spi_cs_deactivate'
> omap3_spi.o:/home/a0131647/clone/u-boot/drivers/spi/omap3_spi.c:423: first
> defined here
> ti_qspi.o: In function `spi_init':
> /home/a0131647/clone/u-boot/drivers/spi/ti_qspi.c:125: multiple definition
> of `spi_init'
>
> As of now, I am tackling this by doing a undef CONFIG_OMAP3_SPI in my
> configs.
>
> But, we should have a way to use both(spi/qspi) of them simultaneously ?

As of now there is no way to use both, will do it.. I will add it on TODO.

-- 
Thanks,
Jagan.
--------
Jagannadha Sutradharudu Teki,
E: jagannadh.teki at gmail.com, P: +91-9676773388
Engineer - System Software Hacker
U-boot - SPI Custodian and Zynq APSOC
Ln: http://www.linkedin.com/in/jaganteki

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-10-03 18:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-03 18:37 [U-Boot] [UBOOT]: Mcspi/qspi conflicting configs leading to build failure Sourav Poddar
2013-10-03 18:41 ` Jagan Teki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.