Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1504085rdf; Sun, 5 Nov 2023 02:10:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IE9/8GMfI8A88HdMEMuKV+f3nqQ2yPRcWvNhHHA5B6T9yCqDuHxdOe4ol/zYqsIEwDQLRiJ X-Received: by 2002:a05:6a21:33a4:b0:14c:c393:692 with SMTP id yy36-20020a056a2133a400b0014cc3930692mr31550726pzb.7.1699179030739; Sun, 05 Nov 2023 02:10:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699179030; cv=none; d=google.com; s=arc-20160816; b=XNM1HXlRat04QPyTmZx/zNqSzJY8PVanTxuIot+W/sbIiHK0XK2fb2n58bdb8M0l/6 GOxgzwbRZWkboysna2JPCuLxe+F3uKfEEOaKfHI+zUMuzaTeBVl4bbN1YjjxJX3SZ5L+ PtMrNe3g9wYagr7u8quBENM4vCtVMrKsqQimpT5gqswTKvgfwMs4K4BJ/sixjXAf6Akq xfmVtkSCC6Uw2sCBpk+OXvAly9AZNdUDLLowKzL5FsRQCEpPtuObWJEtygOhjHWguHTQ 5QwqUc8B5a4HUF7Rvv00TwWIk/tkW52StNGN5Uk/u5uwdU+BRp5upBNfuBAQn+A9gC5+ ygLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=sDSo5ibzGzpwJkDRJ4sCrQ3F0Hw9glppua0bdTP5IPc=; fh=JRNmh72HsCuY/8FIVPb28sVny+CmDHBEFeZkZsBPzMc=; b=L/6ii26jOs58I5qMDbBvUbdq8TdG5QqMgNfbGXeJD0lcUbK75MzWt3HUmz6QxhFsMG w992bQc4PKMFxenLUuhlDSdsyyIkPDoyzq8l0h5ij4AkOa5coCWSrErJuTulnNOi9uhu gen63YW4uRSaRq5EjM9o7nqkJdNXNb91iqUKkI5A8D1VguiZ0W/z9R8n1Ma3mVG9CtYk QQL3Cu7CUR1redEznA30jy0U/aYG4wnx5GohiBGVbmp1unvW4GhPdMaPA8N/Sf4+TesY N9OFMQbifGB6EPhORGKiL+g2bmTZO2KbSOARd1jUFnvL8xlberO/4F2Qod1wnFNLfhxn VuZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=VtgoQbRn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id mv17-20020a17090b199100b0027d7eebd4c0si5422146pjb.109.2023.11.05.02.10.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 02:10:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=VtgoQbRn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id D5134804E6B0; Sun, 5 Nov 2023 02:10:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230349AbjKEKKY (ORCPT + 99 others); Sun, 5 Nov 2023 05:10:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230154AbjKEKKO (ORCPT ); Sun, 5 Nov 2023 05:10:14 -0500 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D42FEE1; Sun, 5 Nov 2023 02:10:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1699179007; bh=RD5TMEI3DvwFGeIbn1MxJkvOuIwUyEIM6E3CWF7zhCs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=VtgoQbRnbg7D8L2jVsJ2VecXPhIGoIIKbYqEBqrMu291UT2sypuZRsKBJ0S5TcIEQ 0tKHPwnvYncCFiBdEZTT4zkbS6W6ML6EsfgkQ3Ab3Z7E2vFpi0j6TLI/FzAV5VFMDU Xz0faz8nAmtwBW7s4R9dkSoaSe7eJ6YIbILtC1kQ= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Sun, 05 Nov 2023 11:09:59 +0100 Subject: [PATCH 5/6] selftests/nolibc: extraconfig support MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20231105-nolibc-mips-be-v1-5-6c2ad3e50a1f@weissschuh.net> References: <20231105-nolibc-mips-be-v1-0-6c2ad3e50a1f@weissschuh.net> In-Reply-To: <20231105-nolibc-mips-be-v1-0-6c2ad3e50a1f@weissschuh.net> To: Willy Tarreau , Shuah Khan Cc: Zhangjin Wu , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1699179006; l=1246; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=RD5TMEI3DvwFGeIbn1MxJkvOuIwUyEIM6E3CWF7zhCs=; b=0Y1uz+HV+6jCTVNSi04qksfUleoSSIvQ4s7H43s39ob3QPfiK8IgTixMIgyc1j/WUqJz2uUpN FEclfzFdc/vCgoHSMJtfS1viqNFRmA3VaBf4Gc9/z8y631aS6EomftV X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 05 Nov 2023 02:10:30 -0800 (PST) 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; \ + fi kernel: $(Q)$(MAKE) -C $(srctree) ARCH=$(ARCH) CC=$(CC) CROSS_COMPILE=$(CROSS_COMPILE) $(IMAGE_NAME) -- 2.42.1