From patchwork Sat Aug 24 03:37:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kris Van Hees X-Patchwork-Id: 13776255 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 780FB1BDDB; Sat, 24 Aug 2024 03:38:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.177.32 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724470708; cv=fail; b=YeIOqKwaWm9Y9xokcogjhSyKj88gnyWFxkuV1GeSeLap1JD0uWA7eUtBxNkoqt7i4uUBDcJj7YuaEQ6fPInZPMNfZ0JrSeZ/flM3h4Ol7TVp4xxzmwQDFX6rXKCuwy1HbJkTi5fIZZN/8SN/AXq3d52YaNZAl7VPt+GGUIIAZf0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724470708; c=relaxed/simple; bh=YrmsrHdvhN6Bi3OLDiVY61cRYA/t9f/Heq9ACtkmqXg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=ZGE5cXojjr2bOsVhGI5804RViAqwh9NWSslsenD7QuI0QNSAWwF7eKt4j3rHpLlnBrg2nUSvM+EfPqKQZUNNoO68qUwfTBkxomR5m1BtM5yR7I2tjU0Hk/WZwuo87Lx+/FP8YghWF3x8BCpafwBxfoonEGCNbCP02K8F3H+pC9s= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=cZtPWoUR; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=NMKw98d4; arc=fail smtp.client-ip=205.220.177.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="cZtPWoUR"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="NMKw98d4" Received: from pps.filterd (m0333520.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 47O3Nxfu006066; Sat, 24 Aug 2024 03:38:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :content-transfer-encoding:content-type:mime-version; s= corp-2023-11-20; bh=q8mEcHIT6tdZ0c01dmwaG/cUG0iTf3Q7Vxz9YBAujs4=; b= cZtPWoURth0neubi6KzQ6JXjfUsAlqTyaqiQ6xEA+GYvcri2BqrC9snF0BW29suQ DhMR0Vyg/njjDp6CMBgLDxp4U9MIu/WFpbfwNKTUd0k2opuXCqa7InNEIVVZoSHP 23A/PfOXDFtpQ2N/HmUACOQh7Z18s8Cxb/gnd1JFWU5YlVde6Fn+XJD36aKPUUm3 BwGWPDkYY5ujVKla8XHPhvTWHzzHYvzo9BBq9Htuo0HDr+Sbmkj9LgYrXXmeJ/dB e4BPsLWsIxYX8Ui9stHISqYKX8LY6Mg5q+nuoYcGD2C3aeLBXwCIpuwgbeJ1uh0R v8MFl3kq03g1ra7MpCJreA== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 4177jc809j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 24 Aug 2024 03:38:19 +0000 (GMT) Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 47O2H5XC027814; Sat, 24 Aug 2024 03:38:18 GMT Received: from nam02-dm3-obe.outbound.protection.outlook.com (mail-dm3nam02lp2044.outbound.protection.outlook.com [104.47.56.44]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 4176kgh9s0-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 24 Aug 2024 03:38:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=dpqXFEL7LRZtZVqKPm+UJoGlOx1HGyusoFBn2jbONFY4T/gL6WDnk9Uwj8wXiZVGZlVjkmV9xDOIysECsujd/bp78oCSXGXmEeeHg/cRX3Job9tL7q6a4eTRbfxypKwSDsseZmrOLcJPj8G8iCvFwE9WYwHIWMUtgzXgo/bowt4oYNFZkUS6ZKf6LT+JzjaQ5XhneR3cfjgSY0FTU/oBUxyXQPAqTKsMxE9UnPHivVW2H3NOpjZtaGq0ADrsrIQfoS9e6hhcGFAeK2ts3MXQ4Lym+V+mnqeekjIFz5G7vArozjRKcN9VswHd9uqbRkshaztrin+GE3n2kaWtR+M11g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=q8mEcHIT6tdZ0c01dmwaG/cUG0iTf3Q7Vxz9YBAujs4=; b=kX39+saKq/YE1IdKMaAvmmiJoQSkwWR7n8/MJy1O9ixZjbF7eXTCwLC7atVDyygenvdZigyP/KftRDZt4wvjDw8zjri9SkmDPP4jcp+5ML6A4O1+d8S15OxtcEI8HSWHZRX2THoTPJYacVjZcA2jH/fu7xFYi8mP7C/8FoT4VNbQCJWSXdnaWfojVtE8fZLCyxJ0qIwN/dMaierFc5Ni+1KqyNe/aYMmgAhMz86EdMu6HfOiIF1ZOjtevk8pZXRJBkFXBioEgalHfydhIkJwsTdH4ueqCgZ3c3CDa6gvFc2BZ1y+zU4MsXM8vZ0EUK2v0QzBcO0WFTe97g2xjHaMRQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=q8mEcHIT6tdZ0c01dmwaG/cUG0iTf3Q7Vxz9YBAujs4=; b=NMKw98d4SbwZ0MgmAjYxCuGX6x1DDIdF0x/cCaFfuZbKmdw3V/5nQO+tchsRCqEPDbRrFUFLZiFWcXu39eB83jROlIZR2865vV0gn9WMmvD5KzugeE0CJDm4R41Jm2y6dYyfGJgNyMNbnrwdVq1gyc3fVp5oRVvBScg8zyTHDzc= Received: from SN7PR10MB6287.namprd10.prod.outlook.com (2603:10b6:806:26d::14) by BLAPR10MB5171.namprd10.prod.outlook.com (2603:10b6:208:325::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.17; Sat, 24 Aug 2024 03:38:17 +0000 Received: from SN7PR10MB6287.namprd10.prod.outlook.com ([fe80::5a47:2d75:eef9:1d29]) by SN7PR10MB6287.namprd10.prod.outlook.com ([fe80::5a47:2d75:eef9:1d29%5]) with mapi id 15.20.7918.011; Sat, 24 Aug 2024 03:38:17 +0000 From: Kris Van Hees To: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-modules@vger.kernel.org, linux-trace-kernel@vger.kernel.org Cc: Kris Van Hees , Nick Alcock , Masahiro Yamada , Steven Rostedt , Luis Chamberlain , Masami Hiramatsu , Nick Desaulniers , Jiri Olsa , Elena Zannoni Subject: [PATCH v9 4/4] module: add install target for modules.builtin.ranges Date: Fri, 23 Aug 2024 23:37:57 -0400 Message-ID: <20240824033757.52005-5-kris.van.hees@oracle.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240824033757.52005-1-kris.van.hees@oracle.com> References: <20240824033757.52005-1-kris.van.hees@oracle.com> X-ClientProxiedBy: SJ0PR03CA0269.namprd03.prod.outlook.com (2603:10b6:a03:3a0::34) To SN7PR10MB6287.namprd10.prod.outlook.com (2603:10b6:806:26d::14) Precedence: bulk X-Mailing-List: linux-trace-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN7PR10MB6287:EE_|BLAPR10MB5171:EE_ X-MS-Office365-Filtering-Correlation-Id: 9a94b779-8d45-4dcc-772c-08dcc3ee310f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|7416014|376014|1800799024; X-Microsoft-Antispam-Message-Info: yTkEKpX1fw2coJ8j9TE6qzuglIv4Sgqqp9siS+cH7eqUivfIOeFUdHL2Mst27hA7Q6SpLMyzE+moQsISnaVgdjuapGwUL9dIZXTr0G/F/07EifAXFaBW3Fr36ObIhFcjqDQixkDqsWIXhL/zqrRofo+XK2Bvuq4y44pEwOCyM97QXPQNLjHhLrdsL3+K5VQbA7ggcHl+1KTmuPOumoQM36r8RPlEXnA9ANc8seBw7xqLnEmSLIM24SzDpjEzwZDWg3jigZhb/GZ2kxTcfNO5ROPve1+wuAAUk285Enec8mfrjScjQdVPGaa/CxIvJGv0FwpBBHDFOx0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;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN7PR10MB6287.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(7416014)(376014)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: z+hk7rFZaJ4kdRE7g4bRn4j1ElKIg0ZyosD6mfz7vB50xHoo8iCe+XuDkYhJ0rwVHYku9iicJdMA9lo0DaaupnviHrHdtG2fEfIMQQWofy8nWrj9shLnb/QZNdRNeBI6/IkRfMYOIxEttpsrFFknGM9/9gCo2iC/QUpeWMiDsyuM0lsR0hHrGeKTVhqR9+JcFmMT2G0YU/4e9SygIWdbXyMtjbMpgVAf6sZ5vIPwsjKQ+yyAm19sUAZ/fYvE9cpvDQo7U60rgFAs7yuANK+wikv9KQV1/ouEfc5WYnZTiqan8W9Uw934Q1TCO4hPWVyipUCjNjav08HQzXfNvCOkpK0F+Cf7D9TyEXrnqzWl+KCWrunGGPATkvdSYyf7m7qmfQmYF7D0wWhis6SU6Rnb9AUq8Lt7O8MqE3D+RuXfEc8aC77+oPiET7xiR7H+zLVL0EfyMT2Vg/TLdbKcuv59OKP3Pj2XmCOS/m0liQcF4HtQUsWm1myCKGey0Vwn/PSjMCFH7OhK+bAPlIlzMr0ZYPXEvO0uFLMzlLhaFvEmePFmIgq/2uNFm5I0dw9aGCRBznViJg9UbLyjBaOrFUSlQqFSVsqQa/rcReeP/5ljzz88JWHtjpPSuD5xyq/mt7KUV46OWyH38iGaSNkmelNrX1oWILCFLmJUduAfE0kWLF2d3lJWtIww8i7+kCxV8nfrYsQq+H/+k2NynNqPiuhC4+s2xLXwnd2UPBDJpXajl8imIoqLgNcVjgz8w0vTYcCWe3maORGjBtCmDvF6+DnW+H8ozrP254fF9sUtWahmpCfwoV1oeel3bVjEBALaUGBdwkIqWFWxGfoQOJ1VSOeaLPvwn712oHH0KrhfCA7+BML1m0Y83DC5vUmk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YLBvgva0f/9kK5J0SLp9Lcr01c0LL2BI1B1ZJ9k3HNCl04utsiYBI1XbXGeh5nhzx0+QWyD6p+YFmZW3rmKNgahozPSGqoLgnyLcmmlxHiuQMXjoiCK0+Dwx/DuosLJvP5N95U1SQXa7ZuJVD3vzWstHfxNZjokxs5O0c18zhWZS72fcTzAMhxP4g2UxMea2Pomj+vWhZlu2Itj2sAdKshSF02QLRIq4PZaXOH3C9EFkS5I+iZqJWAjhMZnhAG07JcfmKlqcnM6NvhTrdfJqdpuqSKyLo9IqT4S7pMSavVkrtm4Qkcdt8cROtDcy5LN4DpDDCnLIOMKMewEXovNNO6P9eHoV55RVFsrJ9aKbskPyKzljU= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9a94b779-8d45-4dcc-772c-08dcc3ee310f X-MS-Exchange-CrossTenant-AuthSource: SN7PR10MB6287.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Aug 2024 03:38:17.3146 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: IEwyPPw1bkHuW3uj9UYtls6mZk01A7iYPrWkeDEq8RerTIVSBOjKMrNavSd+bA0pBbHQqFvFkuoCdjN5MXnbuhe4QlVXz6yyz9+43+720Cw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLAPR10MB5171 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-08-24_02,2024-08-23_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 spamscore=0 phishscore=0 mlxscore=0 malwarescore=0 suspectscore=0 mlxlogscore=999 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2407110000 definitions=main-2408240019 X-Proofpoint-GUID: Icz9bbXmGphPQzklxdZuKCxk3H-ELp-r X-Proofpoint-ORIG-GUID: Icz9bbXmGphPQzklxdZuKCxk3H-ELp-r When CONFIG_BUILTIN_MODULE_RANGES is enabled, the modules.builtin.ranges file should be installed in the module install location. Signed-off-by: Kris Van Hees Reviewed-by: Nick Alcock --- Changes since v3: - Only install modules.builtin.ranges if CONFIG_BUILTIN_MODULE_RANGES=y --- scripts/Makefile.modinst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/Makefile.modinst b/scripts/Makefile.modinst index 0afd75472679..c38bf63a33be 100644 --- a/scripts/Makefile.modinst +++ b/scripts/Makefile.modinst @@ -30,10 +30,12 @@ $(MODLIB)/modules.order: modules.order FORCE quiet_cmd_install_modorder = INSTALL $@ cmd_install_modorder = sed 's:^\(.*\)\.o$$:kernel/\1.ko:' $< > $@ -# Install modules.builtin(.modinfo) even when CONFIG_MODULES is disabled. +# Install modules.builtin(.modinfo,.ranges) even when CONFIG_MODULES is disabled. install-y += $(addprefix $(MODLIB)/, modules.builtin modules.builtin.modinfo) -$(addprefix $(MODLIB)/, modules.builtin modules.builtin.modinfo): $(MODLIB)/%: % FORCE +install-$(CONFIG_BUILTIN_MODULE_RANGES) += $(MODLIB)/modules.builtin.ranges + +$(addprefix $(MODLIB)/, modules.builtin modules.builtin.modinfo modules.builtin.ranges): $(MODLIB)/%: % FORCE $(call cmd,install) endif