From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Tue, 16 Jun 2015 16:04:50 -0400 Subject: [U-Boot] [PATCH] If CONFIG_SANDBOX isn't defined the build fails in fw_env.c In-Reply-To: References: <1434397251-24805-1-git-send-email-pbrobinson@gmail.com> Message-ID: <20150616200450.GB28577@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Jun 16, 2015 at 12:24:01PM -0600, Simon Glass wrote: > Hi Peter, > > On 15 June 2015 at 13:40, Peter Robinson wrote: > > In our Fedora builds we get the below errors if we build the following using > > a vanilla u-boot 2015.07rc2. I'm not sure if it's the best fix but it fixes > > the build for rc2. > > > > make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" defconfig V=1 O=builds/ > > make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" tools-all V=1 O=builds/ > > > > gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wp,-MD,tools/env/.fw_env.o.d -Itools/env -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafterinclude -idirafter../include -idirafter../arch/sandbox/include -idirafter ../tools/env -DUSE_HOSTCC -DTEXT_BASE= -c -o tools/env/fw_env.o ../tools/env/fw_env.c > > In file included from ../include/configs/sandbox.h:130:0, > > from include/config.h:5, > > from ../tools/env/fw_env.h:11, > > from ../tools/env/fw_env.c:34: > > ../include/env_default.h:104:2: error: expected '}' before 'BOOT_TARGET_DEVICES_references_HOST_without_CONFIG_SANDBOX' > > CONFIG_EXTRA_ENV_SETTINGS > > ^ > > scripts/Makefile.host:108: recipe for target 'tools/env/fw_env.o' failed > > make[2]: *** [tools/env/fw_env.o] Error 1 > > Thanks for the report. I can't seem to repeat this. The build > completes OK for me. I see it too. Make sure you start with an empty objdir. 'defconfig' and 'sandbox_defconfig' both do it for me. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: