All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] AM335x: env_{flash,nowhere} compile conflict
@ 2013-07-11 16:06 Mark Jackson
  0 siblings, 0 replies; only message in thread
From: Mark Jackson @ 2013-07-11 16:06 UTC (permalink / raw)
  To: u-boot

I'm struggling to work out why I get the following compile error:-

arm-linux-ld.bfd  -r -o /home/mpfj/uboot/u-boot/spl/common/libcommon.o  /home/mpfj/uboot/u-boot/spl/common/cmd_nvedit.o /home/mpfj/uboot/u-boot/spl/common/console.o /home/mpfj/uboot/u-boot/spl/common/dlmalloc.o /home/mpfj/uboot/u-boot/spl/common/env_common.o /home/mpfj/uboot/u-boot/spl/common/env_flash.o /home/mpfj/uboot/u-boot/spl/common/env_nowhere.o /home/mpfj/uboot/u-boot/spl/common/image-fdt.o /home/mpfj/uboot/u-boot/spl/common/image.o /home/mpfj/uboot/u-boot/spl/common/memsize.o /home/mpfj/uboot/u-boot/spl/common/miiphyutil.o /home/mpfj/uboot/u-boot/spl/common/stdio.o /home/mpfj/uboot/u-boot/spl/common/xyzModem.o
/home/mpfj/uboot/u-boot/spl/common/env_nowhere.o: In function `env_relocate_spec':
/home/mpfj/uboot/u-boot/common/env_nowhere.c:38: multiple definition of `env_relocate_spec'
/home/mpfj/uboot/u-boot/spl/common/env_flash.o:/home/mpfj/uboot/u-boot/common/env_flash.c:321: first defined here
/home/mpfj/uboot/u-boot/spl/common/env_nowhere.o: In function `env_init':
/home/mpfj/uboot/u-boot/common/env_nowhere.c:47: multiple definition of `env_init'
/home/mpfj/uboot/u-boot/spl/common/env_flash.o:/home/mpfj/uboot/u-boot/common/env_flash.c:78: first defined here
/home/mpfj/uboot/u-boot/spl/common/env_nowhere.o: In function `env_relocate_spec':
/home/mpfj/uboot/u-boot/common/env_nowhere.c:38: multiple definition of `env_ptr'
/home/mpfj/uboot/u-boot/spl/common/env_flash.o:(.data.env_ptr+0x0): first defined here
make[3]: *** [/home/mpfj/uboot/u-boot/spl/common/libcommon.o] Error 1
make[3]: Leaving directory `/home/mpfj/uboot/u-boot/common'
make[2]: *** [/home/mpfj/uboot/u-boot/spl/common/libcommon.o] Error 2
make[2]: Leaving directory `/home/mpfj/uboot/u-boot/spl'
make[1]: *** [spl/u-boot-spl.bin] Error 2
make[1]: Leaving directory `/home/mpfj/uboot/u-boot'
make: *** [nanobone_sdboot] Error 2

I have 2 custom entries in the boards.cfg file:-

nanobone                     arm         armv7       nanobone            newflow        am33xx      nanobone:NOR_BOOT
nanobone_sdboot              arm         armv7       nanobone            newflow        am33xx      nanobone:SD_BOOT

My nanobone.h file is attached.

I'd appreciate it is someone could tell me why env_nowhere.o is being compiled in even though
CONFIG_ENV_IS_NOWHERE is not defined.

Cheers
Mark J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nanobone.h
Type: text/x-chdr
Size: 9348 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130711/85c2d0ee/attachment.h>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-07-11 16:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-11 16:06 [U-Boot] AM335x: env_{flash,nowhere} compile conflict Mark Jackson

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.