From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexey Brodkin Date: Mon, 31 Aug 2015 16:43:20 +0000 Subject: [Buildroot] [PATCH] u-boot: 2015.07 - fix creation of .config In-Reply-To: <87io7wts85.fsf@dell.be.48ers.dk> References: <1438351475-14447-1-git-send-email-abrodkin@synopsys.com> <87io7wts85.fsf@dell.be.48ers.dk> Message-ID: <1441039400.2935.8.camel@synopsys.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hi Peter, On Sun, 2015-08-30 at 22:51 +0200, Peter Korsgaard wrote: > > > > > > "Alexey" == Alexey Brodkin writes: > > > Due to recent changes in U-Boot, see > > http://git.denx.de/?p=u-boot.git;a=commit;h=a26cd04920dc069fd6e91abb785426cf6c29f45f > > re-creation of .config from defconfig by "make oldconfig" happened > > incorrectly. > > > Default prompt for target selection was set as No that lead to missing platform > > selection by automated scripts like that: > ------------------> 8------------------ > > "yes "" | make oldconfig" on defconfig > ------------------> 8------------------ > > > And that lead to build failure: > ------------------> 8------------------ > > $ make > > scripts/kconfig/conf --silentoldconfig Kconfig > > CHK include/config.h > > UPD include/config.h > > GEN include/autoconf.mk > > In file included from ./include/common.h:18:0: > > include/config.h:5:22: fatal error: configs/.h: No such file or directory > > #include > > ^ > > compilation terminated. > > scripts/Makefile.autoconf:72: recipe for target 'include/autoconf.mk' failed > > make[1]: *** [include/autoconf.mk] Error 1 > ------------------> 8------------------ > > > This patch reverts mentioned change making possible to build U-Boot > > 2015.07 in Buildroot. > > > Note there's a probability that this particular patch won't make its way > > in upstream U-Boot and better solution will be found there. But for now > > we need to fix U-Boot building in Buildroot anyways. > > > Hopefully for the next release this patch won't be necessary. > > > Signed-off-by: Alexey Brodkin > > Cc: Thomas Petazzoni > > Committed, thanks. > > While doing a test build I noticed that u-boot nowadays needs dtc: > > CHK include/generated/timestamp_autogenerated.h > UPD include/generated/timestamp_autogenerated.h > ./scripts/dtc-version.sh: line 17: dtc: command not found > ./scripts/dtc-version.sh: line 18: dtc: command not found > *** Your dtc is too old, please upgrade to dtc 1.4 or newer > Makefile:1297: recipe for target 'checkdtc' failed > make[1]: *** [checkdtc] Error 1 > make[1]: *** Waiting for unfinished jobs.... > UPD include/config/uboot.release > make[1]: *** wait: No child processes. Stop. > package/pkg-generic.mk:156: recipe for target '/home/peko/source/buildroot/output/build/uboot-2015.07/.stamp_built' > failed > > So perhaps we should consider adding host support to our dtc package and add > host-dtc to the uboot dependencies? Indeed that will help on older machines. I haven't seen that failure just because I'm on latest Fedora so DTC is pretty recent. I'll take a look at how to enable host DTC. -Alexey