[U-Boot] [PATCH v2] env: allow people to force envcrc building

Wolfgang Denk wd at denx.de
Fri Jul 29 10:57:53 CEST 2011


Dear Mike Frysinger,

In message <1310157865-28441-1-git-send-email-vapier at gentoo.org> you wrote:
> For people who want to manually extract the embedded environment so that
> it can be manually packed into the final u-boot image, add a config opt
> to force building of the envcrc tool.
> 
> Signed-off-by: Mike Frysinger <vapier at gentoo.org>
> ---
> v2
> 	- updated to master after tools/ changes
> 
>  README                |    5 +++++
>  common/env_embedded.c |    2 +-
>  include/common.h      |    5 +++++
>  tools/envcrc.c        |   10 +++++++---
>  4 files changed, 18 insertions(+), 4 deletions(-)

This commit causes build warnings for a number of boards, for example:

-> ./MAKEALL acadia_nand
In file included from include/common.h:766:
/home/wd/git/u-boot/work/include/environment.h:127:1: warning: "CONFIG_ENV_IS_EMBEDDED" redefined
In file included from /home/wd/git/u-boot/work/include/config.h:7,
                 from include/common.h:37:
/home/wd/git/u-boot/work/include/configs/acadia.h:106:1: warning: this is the location of the previous definition
Configuring for acadia_nand - Board: acadia, Options: NAND_U_BOOT,SYS_TEXT_BASE=0x01000000
In file included from include/common.h:766:
/home/wd/git/u-boot/work/include/environment.h:127:1: warning: "CONFIG_ENV_IS_EMBEDDED" redefined
In file included from /home/wd/git/u-boot/work/include/config.h:7,
                 from include/common.h:37:
/home/wd/git/u-boot/work/include/configs/acadia.h:106:1: warning: this is the location of the previous definition
In file included from /home/wd/git/u-boot/work/include/common.h:766,
                 from lib/asm-offsets.c:18:
/home/wd/git/u-boot/work/include/environment.h:127:1: warning: "CONFIG_ENV_IS_EMBEDDED" redefined
In file included from /home/wd/git/u-boot/work/include/config.h:7,
                 from /home/wd/git/u-boot/work/include/common.h:37,
                 from lib/asm-offsets.c:18:
/home/wd/git/u-boot/work/include/configs/acadia.h:106:1: warning: this is the location of the previous definition
...


Please fix.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Pig: An animal (Porcus omnivorous) closely allied to the  human  race
by  the splendor and vivacity of its appetite, which, however, is in-
ferior in scope, for it balks at pig.                - Ambrose Bierce


More information about the U-Boot mailing list