From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id EE172AA5 for ; Thu, 14 Aug 2014 09:02:25 +0000 (UTC) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 32F081F986 for ; Thu, 14 Aug 2014 09:02:24 +0000 (UTC) Received: by mail-lb0-f182.google.com with SMTP id z11so713386lbi.41 for ; Thu, 14 Aug 2014 02:02:21 -0700 (PDT) MIME-Version: 1.0 Sender: geert.uytterhoeven@gmail.com In-Reply-To: <53EC7839.3010704@roeck-us.net> References: <20140813180743.GB16662@roeck-us.net> <20140813224507.GA29606@roeck-us.net> <53EC7839.3010704@roeck-us.net> Date: Thu, 14 Aug 2014 11:02:21 +0200 Message-ID: From: Geert Uytterhoeven To: Guenter Roeck Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "ksummit-discuss@lists.linuxfoundation.org" , linux-kbuild Subject: Re: [Ksummit-discuss] RFC: Kernel tinification - kernel config reduction List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi G=C3=BCnther, CC kbuild On Thu, Aug 14, 2014 at 10:50 AM, Guenter Roeck wrote: > On 08/14/2014 12:40 AM, Geert Uytterhoeven wrote: >>> Maybe something like >>> >>> make PCI=3Dn allmodconfig >>> make GPIOLIB=3Dn allmodconfig >>> >>> which would let me disable key options selectively so I can improve >>> compile >>> coverage without having to go through all configurations (or randconfig= ). >> >> >> That's doable, using KCONFIG_ALLCONFIG. >> > I'll play with it some more, but a quick glance (and test) suggests that = I > can > only use it to force a configuration option to be true, not to force it t= o > be false. Also, there seems to be an odd side effect. > > With > kconfig.gpio: "CONFIG_GPIOLIB=3Dy" > and > kconfig.nogpio: "# CONFIG_GPIOLIB is not set" > > KCONFIG_ALLCONFIG=3Dkconfig.gpio make allnoconfig > causes CONFIG_GPIOLIB to be set. > > KCONFIG_ALLCONFIG=3Dkconfig.gpio make allmodconfig > KCONFIG_ALLCONFIG=3Dkconfig.nogpio make allmodconfig > both have the odd and at least for me unexpected effect of disabl= ing > CONFIG_MODULES, but do not affect CONFIG_GPIOLIB. Strange... I also saw strange things with randconfig, needing config input during the subsequent build, or "make oldconfig" asking new questions, just after having done a randconfig. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k= .org In personal conversations with technical people, I call myself a hacker. Bu= t when I'm talking to journalists I just say "programmer" or something like t= hat. -- Linus Torvalds