[Buildroot] [PATCH] Makefile: defconfig: use BR2_DEFCONFIG only when the file exists

Fabio Porcedda fabio.porcedda at gmail.com
Thu May 30 14:25:55 UTC 2013


On Thu, May 30, 2013 at 4:01 PM, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
> Dear Fabio Porcedda,
>
> On Thu, 30 May 2013 15:57:40 +0200, Fabio Porcedda wrote:
>> This is to be able to use "make defconfig" even when BR2_DEFCONFIG has
>> a filename that does not exist or use the default value that
>> does not exists.
>>
>> Example on a clean installation, without a "./defconfig":
>>    make defconfig
>>    make defconfig
>
> I'm not sure to understand the example here. Could you detail a little
> bit?

Without this patch the first "make defconfig" works, but the second
"make defconfig" fails.
With this patch the second "make defconfig" works like the first one.

This is because when the first "make defconfig" is issued the
BR2_DEFCONFIG is empty, instead when the second "make defconfig" is
issued the BR2_DEFCONFIG has the default value
"$(CONFIG_DIR)/defconfig" that usually does not exists and so fails.

I fixed this failure ignoring the BR2_DEFCONFIG when the default value
does not exist.

Best regards
--
Fabio Porcedda



More information about the buildroot mailing list