From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933049AbbJAHFy (ORCPT ); Thu, 1 Oct 2015 03:05:54 -0400 Received: from ozlabs.org ([103.22.144.67]:32800 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751974AbbJAHFw (ORCPT ); Thu, 1 Oct 2015 03:05:52 -0400 Message-ID: <1443683150.16900.1.camel@ellerman.id.au> Subject: Re: [RFC PATCH 1/2] scripts/kconfig/Makefile: Allow KBUILD_DEFCONFIG to be a target From: Michael Ellerman To: Michal Marek Cc: linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, yann.morin.1998@free.fr Date: Thu, 01 Oct 2015 17:05:50 +1000 In-Reply-To: <560CD7A6.2040905@suse.com> References: <1442986835-13985-1-git-send-email-mpe@ellerman.id.au> <560275FC.60104@suse.com> <5605B2AE.1080409@suse.com> <1443680055.16900.0.camel@ellerman.id.au> <560CD7A6.2040905@suse.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.11-0ubuntu3 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2015-10-01 at 08:50 +0200, Michal Marek wrote: > On 2015-10-01 08:14, Michael Ellerman wrote: > > On Fri, 2015-09-25 at 22:46 +0200, Michal Marek wrote: > >> Dne 24.9.2015 v 00:16 Michael Ellerman napsal(a): > >>> On 23 September 2015 19:50:52 GMT+10:00, Michal Marek > >>> wrote: > >>>> On 2015-09-23 07:40, Michael Ellerman wrote: > >>>>> +else ifneq ($(wildcard > >>>> arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG)),) > >>>>> @$(kecho) "*** Default configuration is based on > >>>> '$(KBUILD_DEFCONFIG)'" > >>>>> $(Q)$< $(silent) > >>>> --defconfig=arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig) > >>>>> +else + @$(kecho) "*** Default configuration is based on target > >>>> '$(KBUILD_DEFCONFIG)'" > >>>>> + $(Q)$(MAKE) -f $(srctree)/Makefile $(KBUILD_DEFCONFIG) endif > >>>> > >>>> What 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 > >> > >> 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. I didn't really have a plan :) It's certainly easiest if I take it in my tree along with the new ppc64le_defconfig, so I'll do that. Thanks. cheers