Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp102130rdg; Tue, 10 Oct 2023 05:35:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEr6p9uInG2ZgDFCutvNISifsJX8NEj4AOc0qqPcCWLAnSel/dA5wKpP7SyRAXykPzA66MP X-Received: by 2002:a17:902:ce84:b0:1b8:b382:f6c3 with SMTP id f4-20020a170902ce8400b001b8b382f6c3mr17662439plg.13.1696941325191; Tue, 10 Oct 2023 05:35:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696941325; cv=none; d=google.com; s=arc-20160816; b=eaFSaLkjUEAMyJ2midtlpYjYpKFR1Ku47Wh6/UKE/F/cSG/+EV4kegJJfIMkeyqram qwiI7kEZzucUw1d3z9ZfcbffnWrOS800PRKj1I7YWECk6FF9o7sliOz2EAcA/hRqH0Yg wo/EYB6Kcw5Kt3QwVGTGDqCNxNLQRCvQWJhwCrlrK0OGP82CGdeGFOmldgraeCl4Smzl C7BnQc195Fp8D7U8TwM26lEZIpAFUpShljy0cIKDH/p3PBgfgX7XcVeOlfzG/tRjfABF g8VJrDtVogLBM3ph7k7llqZT9x6SDzSnM5VHwNYAmYCcRHOmfZWfre62xXoS4TE0QwiO PLQg== 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=brw4GXImfc/BBoX2Sa4tiBxsnwN4iNepXuR9aBB7JXs=; fh=9sqEKGXuwAA9c0V9ZXRADQA4HhJpzxYAPqBLFba1wk4=; b=gU07KrA8omzRybVJxicnchQONJQx0Qi11GBdMrjYTXoICM2ALe5yghFiAnSfX5O6ta W2XjiVjgYX/yCfIzxU2YOmN3iqQOcCwkgCHY6ebdxw/YvoLSfFgocVRsO/TjRz3f5dIn HaEew2r7pLQb7zSCdmiayr4yCH1/wdCvlE9uEky+5gLJVcf30C9qn4L7ACnMcRvbBafZ Tv1aR9bpqPRDuNxRk0RZvDr0PeMSCejw+e/m5XZU+RgDdUd2sWwkiMLPpgMAaCuLnn3K pZdArcv4RcvMH86MoQ+eVq+v3lhI6m27D3SIAyKOvLwLh1YVHE89IjdMVVpz1raWnNqZ 1kQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=cFd0HdMo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id a20-20020a170903101400b001c9b7787f5esi1017286plb.652.2023.10.10.05.35.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 05:35:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=cFd0HdMo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id 7C86F801BC81; Tue, 10 Oct 2023 05:35:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231811AbjJJMee (ORCPT + 99 others); Tue, 10 Oct 2023 08:34:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231894AbjJJMeU (ORCPT ); Tue, 10 Oct 2023 08:34:20 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3727310C; Tue, 10 Oct 2023 05:34:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1696941246; bh=itCOy/n/isHYcQulK5emf3FoLnD4SemWjOxOW/MPxRU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=cFd0HdMoqAGecyLpraySfzYGr81X8M9XAdG8/b2/LiqZQyHu/7QsZQ8ET5a3nVkgZ 6QgRnssxfnhVUh0zzE6GweAt8SXRQO1vtH9Hw9LtGsL1XKlkRSRPFNQcOSxbqi99jZ YTpdmdeQK5MQksUv/baRtd2BraVENnyBcd84/mH0= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Tue, 10 Oct 2023 14:34:00 +0200 Subject: [PATCH 5/5] selftests/nolibc: generate config automatically MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20231010-nolibc-out-of-tree-v1-5-b6a263859596@weissschuh.net> References: <20231010-nolibc-out-of-tree-v1-0-b6a263859596@weissschuh.net> In-Reply-To: <20231010-nolibc-out-of-tree-v1-0-b6a263859596@weissschuh.net> To: Willy Tarreau , Shuah Khan Cc: Zhangjin Wu , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1696941244; l=1742; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=itCOy/n/isHYcQulK5emf3FoLnD4SemWjOxOW/MPxRU=; b=FZZ9E3TluP14IhqlqbPbtRKKsEauXukQv98Yt6wYhopJ6+aRz22BRfiyu+SEtUioUGvNvBZen sJzKTnj2q8jCBaMkfPEKO/yzZN3Yn+fUb3FskXxux3tYKjmUAjq9frV X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Tue, 10 Oct 2023 05:35:22 -0700 (PDT) X-Spam-Level: ** This new target generates a .config if none exists yet. Also drop the defconfig target with its hidden call to 'mrproper' which is fairly invasive. If users want to overwrite their kernel existing kernel configuration they can do so easily from the toplevel directory. Signed-off-by: Thomas Weißschuh --- tools/testing/selftests/nolibc/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 21e3f7da2ecf..5a3623680f1a 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -173,7 +173,7 @@ all: run sysroot: sysroot/$(ARCH)/include -sysroot/$(ARCH)/include: +sysroot/$(ARCH)/include: $(objtree)/.config $(Q)rm -rf sysroot/$(ARCH) sysroot/sysroot $(QUIET_MKDIR)mkdir -p sysroot $(Q)$(MAKE) -C $(srctree) outputmakefile @@ -216,13 +216,13 @@ initramfs: nolibc-test $(call QUIET_INSTALL, initramfs/init) $(Q)cp nolibc-test initramfs/init -defconfig: - $(Q)$(MAKE) -C $(srctree) ARCH=$(ARCH) CC=$(CC) CROSS_COMPILE=$(CROSS_COMPILE) mrproper $(DEFCONFIG) prepare +$(objtree)/.config: + $(Q)$(MAKE) -C $(srctree) ARCH=$(ARCH) CC=$(CC) CROSS_COMPILE=$(CROSS_COMPILE) $(DEFCONFIG) -kernel: +kernel: $(objtree)/.config $(Q)$(MAKE) -C $(srctree) ARCH=$(ARCH) CC=$(CC) CROSS_COMPILE=$(CROSS_COMPILE) $(IMAGE_NAME) -kernel-standalone: initramfs +kernel-standalone: $(objtree)/.config initramfs $(Q)$(MAKE) -C $(srctree) ARCH=$(ARCH) CC=$(CC) CROSS_COMPILE=$(CROSS_COMPILE) $(IMAGE_NAME) CONFIG_INITRAMFS_SOURCE=$(CURDIR)/initramfs # run the tests after building the kernel -- 2.42.0