From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 196ECC4167B for ; Sun, 5 Nov 2023 10:35:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229877AbjKEKf5 (ORCPT ); Sun, 5 Nov 2023 05:35:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbjKEKf4 (ORCPT ); Sun, 5 Nov 2023 05:35:56 -0500 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EA507F2; Sun, 5 Nov 2023 02:35:52 -0800 (PST) Received: (from willy@localhost) by mail.home.local (8.17.1/8.17.1/Submit) id 3A5AZe6w002725; Sun, 5 Nov 2023 11:35:40 +0100 Date: Sun, 5 Nov 2023 11:35:40 +0100 From: Willy Tarreau To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Shuah Khan , Zhangjin Wu , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH 5/6] selftests/nolibc: extraconfig support Message-ID: References: <20231105-nolibc-mips-be-v1-0-6c2ad3e50a1f@weissschuh.net> <20231105-nolibc-mips-be-v1-5-6c2ad3e50a1f@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231105-nolibc-mips-be-v1-5-6c2ad3e50a1f@weissschuh.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 05, 2023 at 11:09:59AM +0100, Thomas Weißschuh wrote: > Allow some postprocessing of defconfig files. > > Suggested-by: Zhangjin Wu > Signed-off-by: Thomas Weißschuh > --- > tools/testing/selftests/nolibc/Makefile | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile > index f8fea9fa0263..02c074e73a28 100644 > --- a/tools/testing/selftests/nolibc/Makefile > +++ b/tools/testing/selftests/nolibc/Makefile > @@ -81,6 +81,8 @@ DEFCONFIG_s390 = defconfig > DEFCONFIG_loongarch = defconfig > DEFCONFIG = $(DEFCONFIG_$(XARCH)) > > +EXTRACONFIG = $(EXTRACONFIG_$(XARCH)) > + > # optional tests to run (default = all) > TEST = > > @@ -227,6 +229,10 @@ initramfs: nolibc-test > > defconfig: > $(Q)$(MAKE) -C $(srctree) ARCH=$(ARCH) CC=$(CC) CROSS_COMPILE=$(CROSS_COMPILE) mrproper $(DEFCONFIG) prepare > + $(Q)if [ -n "$(EXTRACONFIG)" ]; then \ > + $(srctree)/scripts/config --file $(objtree)/.config $(EXTRACONFIG); \ > + $(MAKE) -C $(srctree) ARCH=$(ARCH) CC=$(CC) CROSS_COMPILE=$(CROSS_COMPILE) oldconfig < /dev/null; \ You should instead use "olddefconfig" for this. It reuses defconfig but uses defaults for new questions. I've already experienced issues from time to time using /dev/null with oldconfig as you did above, with a process looping forever (probably on a non acceptable choice I guess), and never met such issues anymore since I switched to olddefconfig instead. Willy