[U-Boot] AM335x: env_{flash,nowhere} compile conflict

Mark Jackson mpfj-list at newflow.co.uk
Thu Jul 11 18:06:16 CEST 2013


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>


More information about the U-Boot mailing list