Re: [RFC PATCH 1/2] scripts/kconfig/Makefile: Allow KBUILD_DEFCONFIG to be a target
From: Michal Marek <hidden>
Date: 2015-10-01 06:50:28
Also in:
linux-kbuild, lkml
From: Michal Marek <hidden>
Date: 2015-10-01 06:50:28
Also in:
linux-kbuild, lkml
On 2015-10-01 08:14, Michael Ellerman wrote:
On Fri, 2015-09-25 at 22:46 +0200, Michal Marek wrote:quoted
Dne 24.9.2015 v 00:16 Michael Ellerman napsal(a):quoted
On 23 September 2015 19:50:52 GMT+10:00, Michal Marek [off-list ref] wrote:quoted
On 2015-09-23 07:40, Michael Ellerman wrote:quoted
+else ifneq ($(wildcardarch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG)),)quoted
@$(kecho) "*** Default configuration is based on'$(KBUILD_DEFCONFIG)'"quoted
$(Q)$< $(silent)--defconfig=arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig)quoted
+else + @$(kecho) "*** Default configuration is based on target'$(KBUILD_DEFCONFIG)'"quoted
+ $(Q)$(MAKE) -f $(srctree)/Makefile $(KBUILD_DEFCONFIG) endifWhat is the anticipated usage of this? The patch is not needed to make make ppc64le_defconfig work with the second patch. If it was, this would create a loop anyway.The idea is to make 'make defconfig' work when KBUILD_DEFCONFIG is ppc64le_defconfig (which happens for us when uname returns ppc64le) and additionally when ppc64le_defconfig is not a real file.Ah, that makes sense. You can add Acked-by: Michal Marek <redacted> if you want.Thanks. I'll assume by that you mean you're happy if I take both patches through the powerpc tree.
Yes, I assumed that this was your plan. Michal