All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Jackson <mpfj-list@newflow.co.uk>
To: u-boot@lists.denx.de
Subject: [U-Boot] AM335x: env_{flash,nowhere} compile conflict
Date: Thu, 11 Jul 2013 17:06:16 +0100	[thread overview]
Message-ID: <51DED7F8.80607@newflow.co.uk> (raw)

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>

                 reply	other threads:[~2013-07-11 16:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51DED7F8.80607@newflow.co.uk \
    --to=mpfj-list@newflow.co.uk \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.