Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp415714pxb; Fri, 16 Apr 2021 08:42:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxn6zEI8JKHp8JDUE9aadp9km4gXK2dRbibdu+UN4mOZZGf+70UWfIV3I1WaexAvwReCttn X-Received: by 2002:a65:6143:: with SMTP id o3mr8392428pgv.332.1618587739518; Fri, 16 Apr 2021 08:42:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618587739; cv=none; d=google.com; s=arc-20160816; b=t+sFT0xeVP0Aei5InjhJzFLacAgWQkAtG9TCqYMKoOwd1OVmyKmmaYxqCjsffBOCYj 7FOVu/TeXW0lUOPWp/A8vQT0kDIrrycE1LAiqxesnvkpW4UCgszLTA7L445jHq+etHn7 gDwiuz/9X/3sEbxGzU8apkZxHJ8kJ4gL4hIOqJA/Xk14vQy3p+dHvFgT2yTKtjn6xh+M NxJa/qJCwb8Z4WT0ANC78BPkXDFvWjPcDHlDuT/9N/0eo1fCnaV0WkoKUcyiMieIP6tt MJBefa0b97SK/4fYCG4S4kusTSOAmFwQiqFHRn5WIi+756f1U+eYSs/jwqEWvZqaZBZy l0QQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:in-reply-to:user-agent:date:message-id:from :references:cc:to:subject:dkim-signature; bh=aquu956fTIgz3+7lHAMaLfz7OxkPFtlsRwWtasPoQFk=; b=LotHDs7joOiBvENiTuGIuZOq9shivlsODEvI5sFPP3BWHBaNi284N9jV/lSaYNu98i ojq14wynrfDB48H9Avgw5HfGd8kwa9V4eb8HU9ZEJKsn0pzkLQndKxqAjmFxn9uV3QBX 3LGQROrM2i+mbj2lnBMGXG+BhTki+3qlZmB+xMa0fLh+kEUfsdqOnCgyHRW2O822lxQP lbj2dDPLKMMndQ9YvKdqqzMMCiULtCHdGo781DlHPJKrgkJG1wepbmwmpZcil+VRsH3w H4723h9vOed8HgIKwUCWxwsjBROOhUmZexZdY3KpbZh7UyERkyZVlJzNIgLXgoGB/tdo CGYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=QK8NVpZ1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f7si6838675pjh.5.2021.04.16.08.42.07; Fri, 16 Apr 2021 08:42:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=QK8NVpZ1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243876AbhDPN1Q (ORCPT + 99 others); Fri, 16 Apr 2021 09:27:16 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:10060 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235674AbhDPN1P (ORCPT ); Fri, 16 Apr 2021 09:27:15 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 13GD2sdn042295; Fri, 16 Apr 2021 09:26:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=subject : to : cc : references : from : message-id : date : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pp1; bh=aquu956fTIgz3+7lHAMaLfz7OxkPFtlsRwWtasPoQFk=; b=QK8NVpZ19MXq25sAj1JJHLyZ0/RzDgoe/m614DZYRlLTMcpispCtiyqE6lQfPZD/c7oo Uuamk1zCbI2lJo3BA5q96got9BF0iilqHa8Mao0numS4RNkTNWB2dMvMrVn2Tz4YOKmT 9Vh3p4Hkw9+YqIlv+MS9rHtJ13AWwytVSunNaxUgxpiH2ITjY9EncXHrO8/ClpNMH+nD yadcRcWRhhXFcN6RJLajkF3+QB/j8LeMG+5LtmYJHAWeJfpAhHxHXOTkmBvQmfkTT2nT uQ7pDq9IEIZsfLxQXpfZGVKMZIjbUD0/RXhnxKf4iixssNqwUR02ev7GtQ3fU/ooZPda sA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 37y8rnvu96-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 16 Apr 2021 09:26:13 -0400 Received: from m0098399.ppops.net (m0098399.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 13GD2qfE042187; Fri, 16 Apr 2021 09:26:11 -0400 Received: from ppma06fra.de.ibm.com (48.49.7a9f.ip4.static.sl-reverse.com [159.122.73.72]) by mx0a-001b2d01.pphosted.com with ESMTP id 37y8rnvu3w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 16 Apr 2021 09:26:11 -0400 Received: from pps.filterd (ppma06fra.de.ibm.com [127.0.0.1]) by ppma06fra.de.ibm.com (8.16.0.43/8.16.0.43) with SMTP id 13GDNG9O019900; Fri, 16 Apr 2021 13:26:05 GMT Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by ppma06fra.de.ibm.com with ESMTP id 37u39hadvx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 16 Apr 2021 13:26:05 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 13GDQ3ho46137672 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 16 Apr 2021 13:26:03 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3A9A14C052; Fri, 16 Apr 2021 13:26:03 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C3F3B4C044; Fri, 16 Apr 2021 13:26:01 +0000 (GMT) Received: from oc7455500831.ibm.com (unknown [9.171.64.24]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 16 Apr 2021 13:26:01 +0000 (GMT) Subject: Re: [PATCH v2] tools: do not include scripts/Kbuild.include To: Masahiro Yamada , linux-kbuild@vger.kernel.org Cc: Janosch Frank , Alexei Starovoitov , Andrii Nakryiko , Benjamin Herrenschmidt , Daniel Borkmann , John Fastabend , KP Singh , Martin KaFai Lau , Michael Ellerman , Nathan Chancellor , Nick Desaulniers , Paolo Bonzini , Paul Mackerras , Shuah Khan , Song Liu , Yonghong Song , bpf@vger.kernel.org, clang-built-linux@googlegroups.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, netdev@vger.kernel.org References: <20210416130051.239782-1-masahiroy@kernel.org> From: Christian Borntraeger Message-ID: Date: Fri, 16 Apr 2021 15:26:01 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 In-Reply-To: <20210416130051.239782-1-masahiroy@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US X-TM-AS-GCONF: 00 X-Proofpoint-GUID: -nujXjQtsLSCrONtCNjn6qt7wKYvylhh X-Proofpoint-ORIG-GUID: 7gO-O2XrzlXYQU9_QTO3narixz6-3GWN Content-Transfer-Encoding: 7bit X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.761 definitions=2021-04-16_07:2021-04-15,2021-04-16 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 suspectscore=0 phishscore=0 priorityscore=1501 malwarescore=0 mlxlogscore=999 bulkscore=0 impostorscore=0 spamscore=0 lowpriorityscore=0 mlxscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104060000 definitions=main-2104160097 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16.04.21 15:00, Masahiro Yamada wrote: > Since commit d9f4ff50d2aa ("kbuild: spilt cc-option and friends to > scripts/Makefile.compiler"), some kselftests fail to build. > > The tools/ directory opted out Kbuild, and went in a different > direction. They copy any kind of files to the tools/ directory > in order to do whatever they want in their world. > > tools/build/Build.include mimics scripts/Kbuild.include, but some > tool Makefiles included the Kbuild one to import a feature that is > missing in tools/build/Build.include: > > - Commit ec04aa3ae87b ("tools/thermal: tmon: use "-fstack-protector" > only if supported") included scripts/Kbuild.include from > tools/thermal/tmon/Makefile to import the cc-option macro. > > - Commit c2390f16fc5b ("selftests: kvm: fix for compilers that do > not support -no-pie") included scripts/Kbuild.include from > tools/testing/selftests/kvm/Makefile to import the try-run macro. > > - Commit 9cae4ace80ef ("selftests/bpf: do not ignore clang > failures") included scripts/Kbuild.include from > tools/testing/selftests/bpf/Makefile to import the .DELETE_ON_ERROR > target. > > - Commit 0695f8bca93e ("selftests/powerpc: Handle Makefile for > unrecognized option") included scripts/Kbuild.include from > tools/testing/selftests/powerpc/pmu/ebb/Makefile to import the > try-run macro. > > Copy what they need into tools/build/Build.include, and make them > include it instead of scripts/Kbuild.include. > > Link: https://lore.kernel.org/lkml/86dadf33-70f7-a5ac-cb8c-64966d2f45a1@linux.ibm.com/ > Fixes: d9f4ff50d2aa ("kbuild: spilt cc-option and friends to scripts/Makefile.compiler") > Reported-by: Janosch Frank > Reported-by: Christian Borntraeger > Signed-off-by: Masahiro Yamada looks better. Tested-by: Christian Borntraeger