Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1861328rdb; Tue, 3 Oct 2023 03:29:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEPsywULmUVfVpAECI7evw0vk6uzBPe5wJC9l7QTdO1z8K/dIXqIBfQYloYs7W0pxFYZ2xq X-Received: by 2002:a17:903:2445:b0:1b8:af7f:6331 with SMTP id l5-20020a170903244500b001b8af7f6331mr13104950pls.55.1696328944194; Tue, 03 Oct 2023 03:29:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696328944; cv=none; d=google.com; s=arc-20160816; b=ttSTk95Zm6WHXHHEcZc3agSsY5iIzp2YZIqn5ntvPxeLULmF8a1wekkdXwzqkgnQ1t yInK7rmVMoWCVom5woCawcGQl1zn5cXKDLiOXE7P75fPFClsbtLx15mioJz4jxN9Mi4w UqtyCEEWaPsSz9AuZ7Nz8Ka2fXV1dLgA/ckSFaPWdlUZ5oh2FBO0c2rRoWp0I1hphDX5 YHjcSMCeppSwYTzG4+xkBUTB8UzMGG6uruHs6OTRa9tBPNgqUaLCIrzVt4Qa1xEFDe1T lq87Fv2PvGr0x6Oc6fhBLFirFcUerEmBeMnAj54EzohaKR7r/UB6XFGr8LwtVjXny1dh o8Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XsdqrdEkDSj8N1JGo8GS+Y+t1N9Ffxo49rjL66LLWiU=; fh=feEJ9ZGaUkPw05qVxZGjvLfb8EJ79vZE7JnaVlsRHww=; b=QMnVaZFKd4djf7WcEECOvNli2EcGzjGqZgUJS4j0AC7pzR93afyH5kGVxql86iHGjn 1tSe103TaeEJVc5e61EFzKdXzrSdfcT91ASZUYivb9VhJH0DLEHa+Hkm/XBplmoKSNee f8I0CDijgGZ1dRC1w75Bl37KHLilfFlMwZIwV0LazkAyDks6HHANOWAXiSIoBQ9gDxg1 t5RRdQc01Uv0bE4UK2yEsiAF91SQB+gPBUPtZIwO1SPoeasX2MYaGFVMtosurW5x8lhm f8PfP9r3eDUeYJ5MC4lg5oy2p4c0p4G/tzl626ms08x3dsxM9WsfMi7DafTqvjf+n+Hz L3bA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=AnijDnti; 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 k3-20020a170902c40300b001c77e00809csi1225933plk.453.2023.10.03.03.29.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 03:29:04 -0700 (PDT) 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=@ventanamicro.com header.s=google header.b=AnijDnti; 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 D67CC803111E; Tue, 3 Oct 2023 03:29:01 -0700 (PDT) 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 S231570AbjJCK2v (ORCPT + 99 others); Tue, 3 Oct 2023 06:28:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231218AbjJCK2u (ORCPT ); Tue, 3 Oct 2023 06:28:50 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CFD393 for ; Tue, 3 Oct 2023 03:28:46 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-9a645e54806so127831566b.0 for ; Tue, 03 Oct 2023 03:28:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1696328924; x=1696933724; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=XsdqrdEkDSj8N1JGo8GS+Y+t1N9Ffxo49rjL66LLWiU=; b=AnijDntiuPAlvazd2otnRUr/eS5Rx8+nCMfjIoN2pNGVEWpMW1eIaGTuNPQo5lMZcY 3uDN84z7/CxAU2z0vhjs22weuKICOxhF7xp229U53IqDKWoljoj2qysJwphNIyc1dUip EQhBPjIvyAFkiDpbDvopG0HFcJht+Mkh95OYUfUJtdLFVY3ZRZC+hEPZN4wLFPoQEicF FQTo/Dhc9a/ySVVpF5z95os3QmtNrQYeTQl/M37TRvTPDO4luKYY1KzP+cweByzw3neE uCrfdZNfm20LZiVUhLVDdFuY1IGh030qyzoWbnhkBxe56jlSBKaJHIIAOZ4piJs37Zzp UTWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696328924; x=1696933724; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=XsdqrdEkDSj8N1JGo8GS+Y+t1N9Ffxo49rjL66LLWiU=; b=jOtbAL5A+3SsCshjKZTLzJOXnhYfFazsexWIBn2dBHUddcZ/+FN6kHEJ3ea0hIJoun vuOHx/0UB51oDX7Rjd3Jn1HPZq2YzwNLejZ/7tJ5o+lkAzWh1UGBXABMnMqqsL/2jfLC F9aLaYguOcJ+JKEwEBBRwA1ySpYqTDQj/JIvCA1wsvYUyQLKxuJ+yKx/qdWW0C0YqSIE A4clNG0tgqfNWkIJN0FtbPAEWDOfAJZonXQW7P5dt4Tx4IKQ7md1pLlccCSIvnqPKY6f /E8RuZmvRg1fPXM3BKdzO1e2z54yKni6DYO/ChmH+llOujr1AuILOqhixojqissf1g0q zknw== X-Gm-Message-State: AOJu0YwDG4V3bAxLJF9NA1QJPZBkogRrLHmPSLCNZgbIT/VHudDdy9yL M2Rds5WU5fyKHPT6kCrsahP00Q== X-Received: by 2002:a17:906:109e:b0:9ae:6d0:84f7 with SMTP id u30-20020a170906109e00b009ae06d084f7mr11197111eju.32.1696328924382; Tue, 03 Oct 2023 03:28:44 -0700 (PDT) Received: from localhost (2001-1ae9-1c2-4c00-20f-c6b4-1e57-7965.ip6.tmcz.cz. [2001:1ae9:1c2:4c00:20f:c6b4:1e57:7965]) by smtp.gmail.com with ESMTPSA id op19-20020a170906bcf300b009adc743340fsm822007ejb.197.2023.10.03.03.28.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 03:28:43 -0700 (PDT) Date: Tue, 3 Oct 2023 12:28:42 +0200 From: Andrew Jones To: Haibo Xu Cc: xiaobo55x@gmail.com, Paul Walmsley , Palmer Dabbelt , Albert Ou , Paolo Bonzini , Shuah Khan , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Anup Patel , Atish Patra , Sean Christopherson , Ricardo Koller , Vishal Annapurve , Vipin Sharma , David Matlack , Aaron Lewis , Colton Lewis , Thomas Huth , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvm-riscv@lists.infradead.org Subject: Re: [PATCH v3 2/9] KVM: selftests: Unify the makefile rule for split targets Message-ID: <20231003-d44206f71d0b22e539833697@orel> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 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]); Tue, 03 Oct 2023 03:29:02 -0700 (PDT) On Thu, Sep 14, 2023 at 09:36:56AM +0800, Haibo Xu wrote: > A separate makefile rule was used for split targets which was added > in patch(KVM: arm64: selftests: Split get-reg-list test code). This > could be avoided by minor changes to the recipes of current rule. > > Signed-off-by: Haibo Xu > --- > tools/testing/selftests/kvm/Makefile | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/tools/testing/selftests/kvm/Makefile b/tools/testing/selftests/kvm/Makefile > index a3bb36fb3cfc..7972269e8c5f 100644 > --- a/tools/testing/selftests/kvm/Makefile > +++ b/tools/testing/selftests/kvm/Makefile > @@ -249,13 +249,10 @@ TEST_DEP_FILES += $(patsubst %.o, %.d, $(SPLIT_TESTS_OBJS)) > -include $(TEST_DEP_FILES) > > $(TEST_GEN_PROGS) $(TEST_GEN_PROGS_EXTENDED): %: %.o > - $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH) $< $(LIBKVM_OBJS) $(LDLIBS) -o $@ > + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH) $^ $(LDLIBS) -o $@ > $(TEST_GEN_OBJ): $(OUTPUT)/%.o: %.c > $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@ > > -$(SPLIT_TESTS_TARGETS): %: %.o $(SPLIT_TESTS_OBJS) > - $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH) $^ $(LDLIBS) -o $@ > - > EXTRA_CLEAN += $(LIBKVM_OBJS) $(TEST_DEP_FILES) $(TEST_GEN_OBJ) $(SPLIT_TESTS_OBJS) cscope.* > > x := $(shell mkdir -p $(sort $(dir $(LIBKVM_C_OBJ) $(LIBKVM_S_OBJ)))) > @@ -274,6 +271,7 @@ $(LIBKVM_STRING_OBJ): $(OUTPUT)/%.o: %.c > x := $(shell mkdir -p $(sort $(dir $(TEST_GEN_PROGS)))) > $(TEST_GEN_PROGS): $(LIBKVM_OBJS) > $(TEST_GEN_PROGS_EXTENDED): $(LIBKVM_OBJS) > +$(SPLIT_TESTS_TARGETS): $(OUTPUT)/%: $(ARCH_DIR)/%.o > > cscope: include_paths = $(LINUX_TOOL_INCLUDE) $(LINUX_HDR_PATH) include lib .. > cscope: > -- > 2.34.1 > I just noticed that with and without this patch we're building the arch-specific part in tools/testing/selftests/kvm/riscv even when we have an $(OUTPUT) directory (e.g. O=build). Those build artifacts should be in build/kselftest/kvm/riscv instead. Thanks, drew