From patchwork Thu Aug 22 18:19:41 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: 13774073 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 4F45C1CFEC0; Thu, 22 Aug 2024 18:20:37 +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=1724350838; cv=fail; b=hhdt+e+0Y/AtlPfx3kJJPRqwFrVz2fA3BiMWBrSxwqUgqNYdJs/d5QCDVDJ3Uvszmrt00KqnMcuWLIdwF4dAoVriZh7tAaub1dwnDJn+gFkwoEx4GvWXRrcgzF0t8JYJuSQpPzBxXfaCJ0gqXdpPC3yfQmAlI4LXkyOzd3A86+A= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724350838; c=relaxed/simple; bh=YrmsrHdvhN6Bi3OLDiVY61cRYA/t9f/Heq9ACtkmqXg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=t0MsUN760xd+e2YLqmxcq9pEEyGKIYKtNkv5YSJxPa7xZi1pMBopOB6OQdKDKHfvbF7bQW4kCUsb/Dctiv10cqJLMmPZ9lQZN79FuU18C8qTrLXTEG7evQAiuOQiBBDElsnJyzQ4oQU/eK79E4Pl5YlwuZHjF4uKnsOjzBbSOQo= 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=LHk11Jd8; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=QBsSvi+v; 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="LHk11Jd8"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="QBsSvi+v" Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 47MEQVPM028678; Thu, 22 Aug 2024 18:20:29 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= LHk11Jd8KYzk5JbF9gnmvN1uHRafBQmo6/ejP1bXPXOODmMQhfKil+vELMh802Qc jBaUy2ELCpoJs1HdL8gRftObFEj65otI363wolX8WIHXd1wBx3duROZwE+IBvoBa Y9ySskYvowDCP3X/TiKZTfLFSdWgY7NTmSr0jOxJ6TNeWcp0PifzFHOKrcosFfDK 6hBXjXAn9SbaS4UNOTw7hzDA8TohinAWEGvZYF3i6wZNHGUpuEyOgWZsU9WDhL+P mjHnGawQxCJa1KWZb1ySRBKVprIPdvjuw7EDsGv0rHcKgd34eRKEosE/Q1SRHRhu +ItcceltwLiT6GHeoIdFPg== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 412m2djt2v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 22 Aug 2024 18:20:29 +0000 (GMT) Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 47MIDfRI027865; Thu, 22 Aug 2024 18:20:28 GMT Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2168.outbound.protection.outlook.com [104.47.56.168]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 416947mahm-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 22 Aug 2024 18:20:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=YBJIsIxGV4ZZDZADK2MZJqxhu1HcBOq42dqCjeCzvlJU95F3PW5eZP4FoRxSqYaLPNjoChkBBnMBdbNAHM/iUiDOBuAZ6mAMwfL9jOFyGI/4/JIXtDNAoZQ3OJg3ueCrF0FwPJsJgeTSe/bsAwzqApQ+Z0G06eHjiuPkb+bO3op2zaib4W5W4JKTjAqvr4r2ad8TKgTUbOXZcNnTZcKQEY507t7f4p7mOl7mbfHS4mVUaSMLF7MrAFPNXcBFbXkpRCeviQOs9MDFUIulI8s3gg3JJ5xDtMILXv62t3g5j+ua9qQApcs4pK8lLEKFrYdgGkJTcElALDXWqHGsMYlV1Q== 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=HRsbrsvbL9O31ni6627ctqXPCtfCmhXy15W+dOEPpyCGHDrKTXPgD878Zsf30NFp/rXtmHYvaDpQ2w/taVmaYLnwWYH9j20OvfbCEWd9gNtE3gYy+J3Em/LuULxdKv57RCtfpaJwTTeKPOksJ9nnS2FKdPej9tcO+ABYL/X/wCD23WpX5TgWq9Wheyy6HXu88uoAnnS3wgeJ9oNJU7QZTJY5WN9/Bw5LvE+hfjJIsoCO5dtaLoP1QrWYD1Pnc/F8EGJbdsxJ8FZNr/kMs4d+djxBtYgUD8xNOBI6KHPcDuXEAvEXNApr1DEDTcHQ7wbQuSghxJQ2L/Mki8BtbtxLdQ== 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=QBsSvi+vkjQLeEczVgBzP4QtoJE8cOHLdMN3fy9VQqEamfPYbvzVMcb+S0vYyhc6FkcdYk86qyfd8gPdg3xQ/62XAH36RFkOWvVnGJhkDN9wJBkS7dkrnfZyd4wm/JwcmMScFX0im3aeP6CBCdftLYAdKnYEi+KUOZ4lqJi0ER4= Received: from SN7PR10MB6287.namprd10.prod.outlook.com (2603:10b6:806:26d::14) by CH0PR10MB5004.namprd10.prod.outlook.com (2603:10b6:610:de::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.18; Thu, 22 Aug 2024 18:19:52 +0000 Received: from SN7PR10MB6287.namprd10.prod.outlook.com ([fe80::5a47:2d75:eef9:1d29]) by SN7PR10MB6287.namprd10.prod.outlook.com ([fe80::5a47:2d75:eef9:1d29%3]) with mapi id 15.20.7897.007; Thu, 22 Aug 2024 18:19:52 +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 v8 4/4] module: add install target for modules.builtin.ranges Date: Thu, 22 Aug 2024 14:19:41 -0400 Message-ID: <20240822181942.2626536-5-kris.van.hees@oracle.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240822181942.2626536-1-kris.van.hees@oracle.com> References: <20240821040700.1919317-1-kris.van.hees@oracle.com> <20240822181942.2626536-1-kris.van.hees@oracle.com> X-ClientProxiedBy: SJ0PR03CA0060.namprd03.prod.outlook.com (2603:10b6:a03:33e::35) To SN7PR10MB6287.namprd10.prod.outlook.com (2603:10b6:806:26d::14) Precedence: bulk X-Mailing-List: linux-kbuild@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN7PR10MB6287:EE_|CH0PR10MB5004:EE_ X-MS-Office365-Filtering-Correlation-Id: 7ae82bf2-5a6f-4c11-de05-08dcc2d7040a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|1800799024|376014|366016; X-Microsoft-Antispam-Message-Info: Qwujw4PHRIfZ8zOSevThEcwSFJf/9lqkwzVk77wmpDzdHatWud1kB7UagMMdrE5QTnWXdTZkBK8pG9ENtapKKRUn2BLsVq4aeO53oZmoFeUhWlS6t0IjdulptGDn8uWw8ozaIZWxSPPXyKLsWAnJnSflmrq8kOIvpaXozF91Ps/jbUmpBgyJkmvgwLMtHlQfYbcgZkXORqDaujwyGW/64SU7mfA3YrfqAy4JOtrzO59KGLByvEy3AK+FNu5Y4L0o8zoTQRd1WpmLFewn+RusqmzR+yE2ctWEU+VgxdkVO5iKw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: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN7PR10MB6287.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(7416014)(1800799024)(376014)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: orA4N4aA6oR7E/7T195u91Rc0xgvysPeoMmlMTLfHYnO1pqPCpS1Oa2XLBoyKBZbZD2CdZ/rIN+7xsNMFHC1Y3D0NDlTpGZC9qzowj2NAecvorxIl6YFW4m/PVGMRhYrjpn/On7iNHbsd7MW6pqixrjp9TBNJJOjoFpdgYddFHDJZZmPo7SuQsixf6Rt1s3bFdz5jt4lVI1ipM0sIu7BLGyryAkiCUZM6SZr4E5NYsMCe6tpf0R75ZVKhtt2My/W5ru5/kxDyo05iF/gNI5bFOK4jyR2owd7+XGXGMHrGjXE1H4FOuvQirTB1wUAspGQcq1LFBK12dWoj5ZH0bICFCEf+twfnYJax9rynbXo8EgDmnqej7BB3EBiD0rAk+5UA/y2SO4Hq8fy60gNL00J+o6qYbw4yS0fuqzbRyZqB9DfROH6eX1rSlQqPphHav2Zls4+1STY8ZayR9Virw2TFFlOcPS7xVqfEmPw+rFGuYcWra5IJ2wXr5vilH9sM7CkWO+ZsJln/soHta/KaFfxuFeTWi4mWZO8Gyj67h4DH2PW7IGCuOqqwyPUIkxEvR2tShC0BqhHZW38hnaBwHYKBb3NOCp3/9P7xo5Wj9RiBsYVb1IZYz/4M7QCWINYwI92FvQ2+NmRAacn5y2lvbtELPJ/M3V9D3xlVlOQR8MZc1YV8x82q13Ylg+Xo0D+iLz9LtRpVSfXdozDZ8f8X65uHnlV3r2e8abdXMWBoMKcQjAZnDaBlYYdEhuvN3uVQVQKKVOOtnyC+K42HlqeRjLcZAbFIAgDgFwHVbHevZOWPDOLC2bL5b02HSoZQbwWlzZFZCVeseli9s+CKzxj+CvVvlNQ7IwQ+0grkyGw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nPMpeZTu1Zqy4Yb6NhzxJc4Jm1/rX1gPfwcUVmJbXgokdWaKmSG+g9bLaGyupzJ5i7h+2pSIv4wzkf9xJXa3i/4JGDAllGXeyoFzfJ6OSFQETOb8QfjHUASs0SpSOWNJXneasRFvIr1eC4eFzBzgODgcloJnGXlz/hqVmW8cR8sV9NBfs0He3KaNysRX4OTtsuOnJLiOe+S48wYJFCMG9MYscLjKfH55YgZL4ZeKmSoZFozG9KRs1y6s8rB+RgUxV3kYDabJ+wychZxmeFvfvV5dr6c3Wu8VlqpDkXPXtr0IDq4FXR2EMFdaRwo0tGkZzkKZmEl8JIHTOuL7rMcNXtviLpaRaa2Bys1rsT/LxK7dqyFw0zDDmWIi4lKVmEIrC5/ITlzU= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7ae82bf2-5a6f-4c11-de05-08dcc2d7040a X-MS-Exchange-CrossTenant-AuthSource: SN7PR10MB6287.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Aug 2024 18:19:52.2286 (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: dSMhwqr5rga2UId/bE5qm57p8c7Ap4vWcSN588LwG3nmw4BfXATjWfkYHgTecVs9SZOYQTHKTFB+AfG9Yw4N2iff+ETQyyd9/Dz3nbuTOV0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR10MB5004 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-22_12,2024-08-22_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 malwarescore=0 adultscore=0 bulkscore=0 mlxlogscore=999 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2407110000 definitions=main-2408220137 X-Proofpoint-GUID: fNL-lhFNyrEoq6aNrBDMvNttfBDnSGCz X-Proofpoint-ORIG-GUID: fNL-lhFNyrEoq6aNrBDMvNttfBDnSGCz 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