Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1529983rdf; Sun, 5 Nov 2023 03:36:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IFsRvuOeoy6ISjBG5mLepiGJ3CLleFF/Oe1d1x/7ZzkA5hVZ2dJ65JyJBZpPxXizSwqpQ9C X-Received: by 2002:a05:6358:6f12:b0:168:e73f:c9c2 with SMTP id r18-20020a0563586f1200b00168e73fc9c2mr32598902rwn.8.1699184219153; Sun, 05 Nov 2023 03:36:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699184219; cv=none; d=google.com; s=arc-20160816; b=WgcGnNdXozRF8Tn8AVf/RZc9bpribl1fmImB2zHmekbePmvnsW5lIJWQeE2wAQHnrA 12YGUEnzFiiDfL72+i0MK28WdwKnlySv2rQhnh8PEnwRAC5I8U17VDc26dgPQSNNd6FO hLD7w9+Pmb7aGCJknwAbBAeFDLJV2GW74Gh5MRHkfVjX+Ge3RbUqmL3CxfidaQdYp7AP GPhNhdgblHlfuPajtlZX3lBnAd7DDC2IlxW9tk00Y7S/OHzaFqNq1HSFWkL3o4xsfXn2 HUXIgKnoFgI1JyFhXzEMVfrGDk88XvMMvdd5saRqsn6VpbAY/mxDecspx/oZqlZ5VV3f 7CQQ== 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=zLqKfeKqW/rZzsEheNF2TrenXf0J9xnPfWqf/1RPlIk=; fh=JRNmh72HsCuY/8FIVPb28sVny+CmDHBEFeZkZsBPzMc=; b=nAfDowm4N6IAjedkO3d1PG//kUMP1c0+OyTrbwhOO8RlnEdwxJSCG11hRvdd5Gfmv4 duYYdmA8aCBj2dAivvxe/vxyKAFb9mZs6CeMo1cHchdhczOx6/N4CB6IAhVOg1Ytstid Wr/rNjv6SVVxUs/V/q2aOX4jOlrJ/lSw7AdEDy1/uWRdTpgYna5niWSjLnl/b/LVcGbj FcDjR9l8KzbNAEjM91In9xlmSCN60DeRjWarQy5Xno36hxRmhyPNpeplRpZugA1TFWxq gqJk6pWLFrFmZ8baBxNuFTUXXQ7GVn332bEEpqsSJHhTqc+0Y1OwcAWWn+Sk0r/5fjzL N6BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=msFqDpcX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id l5-20020a17090ad10500b002736ff3cc79si5727676pju.23.2023.11.05.03.36.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 03:36:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=msFqDpcX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id E813A807C6EE; Sun, 5 Nov 2023 03:35:27 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230297AbjKELfM (ORCPT + 99 others); Sun, 5 Nov 2023 06:35:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbjKELfJ (ORCPT ); Sun, 5 Nov 2023 06:35:09 -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 3BEC2F2; Sun, 5 Nov 2023 03:35:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1699184103; bh=nyrjPvpNj7WNK2ijhv221XrS7R5GMOB+fysjKb+NE6o=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=msFqDpcXSSjuZeof1fOOu4F3KvdFjPlRQWnmsbkx5IncwISbVjpvwj1+4HSuM14NX mpPaEfVWolk/aS1Vg1HWeHSomdt/kCxJL9Oe/EC8g0GVQ+cSdnRImwt7jO4a+NJHT0 QsaOO4ZajOXcaaF3oKamxoRIjWA3iE2L8ukPUUPk= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Sun, 05 Nov 2023 12:35:02 +0100 Subject: [PATCH v2 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-v2-5-4ec993cb5407@weissschuh.net> References: <20231105-nolibc-mips-be-v2-0-4ec993cb5407@weissschuh.net> In-Reply-To: <20231105-nolibc-mips-be-v2-0-4ec993cb5407@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=1699184102; l=1285; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=nyrjPvpNj7WNK2ijhv221XrS7R5GMOB+fysjKb+NE6o=; b=pMFDcAOHYf4oHIZkEkSHQT55uQDBq91NgSrk1f7kzN2JjkQ9CLhIP4kxLS0KgKkI32bVdqLIH 2KcXs4Yuyf3DEiRrfyVY62+QU7RUH9pQxmmtF8Ce1pAS4EZ0OTMGa1l X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email 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 (lipwig.vger.email [0.0.0.0]); Sun, 05 Nov 2023 03:35:28 -0800 (PST) Allow some postprocessing of defconfig files. Suggested-by: Zhangjin Wu Signed-off-by: Thomas Weißschuh Acked-by: Willy Tarreau --- 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 6a5e67f65daa..6a1f7f9edf91 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) olddefconfig < /dev/null; \ + fi kernel: $(Q)$(MAKE) -C $(srctree) ARCH=$(ARCH) CC=$(CC) CROSS_COMPILE=$(CROSS_COMPILE) $(IMAGE_NAME) -- 2.42.1