From patchwork Thu Oct 31 13:26:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Thomas_B=C3=B6hler?= X-Patchwork-Id: 13857906 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2101.outbound.protection.outlook.com [40.107.20.101]) (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 5A31C19E999; Thu, 31 Oct 2024 13:26:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.101 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730381207; cv=fail; b=du9kNBiu0hN359ZODUBJLSSQOLc6b1RFaASB50AY6hKgKsagZ4gh5f3ot54s5vE2SYrjnnNbfGiRM2XdztMvISjE41fgcCT7qwk9mNGD2kJ2wnWoyPAWZFo6HGkY8h4/fXndF97t2jg7+iHMmuUUAlcTJprjDZTz8Zo/Bvilm8Y= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730381207; c=relaxed/simple; bh=Jz32348WOXCpo55Lgwyh6GJWnQjpGU3LU4ZTn3Mlgko=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=PQ3I2EVv0jUxqN7tdFB9tng6dYDnKqGLV4nYnpb/mA9szuUUREXDQQDd4eAUiwd/TLapV3DLWrl8BCANTQ29Wuz2z1uUkfp6KuRinoqtnAQzXZFNbZS4OcFM9b8Cv//N19BeaX0vRPBtyPb1csLMZ10LnnbLBxpFPcEv89ds/Zw= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=kunbus.com; spf=pass smtp.mailfrom=kunbus.com; dkim=pass (1024-bit key) header.d=kunbus.com header.i=@kunbus.com header.b=vOAjpTZd; arc=fail smtp.client-ip=40.107.20.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=kunbus.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kunbus.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=kunbus.com header.i=@kunbus.com header.b="vOAjpTZd" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=IK4javAiq+ivmy29k+kuN6CMisdY+PaoaqOwSaAB0B83FhvkulsKR5W5zlm6u8Hu8mUS3m9lcXTttfzyix2B5a2l3heSTdwYVFhywwKq9qWThtqvHWNhCX7hTm46K70LYmb8cn5O2EhW47pU375xmxCpzxeIHxJ0ka/vS3jrrFSdUwdxxcPd8LNiNQBt5Anvs3D5LPx3vRm6LPm2GUHmxjiWvJffv0LUU0ZXzX41vJkJdapWgW/cb4EtZpeNuX8LUGrxs0R73eMbHbuWg2UO6ObojlOV/MVzKLJHYyi+2F1jG2t2dQ+YVvMt9RuV4PapwB7Fmc5WlzAbwajjpmcwrw== 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=+gd2P2QyM6Btg7lkv0NpaudbosZkZpzI/p6utSSs/aI=; b=ixjoNQLy6SSyBDYr1PR/dg9onDD812pyStDLQ7WgwEjPecc57ap75vgJRROdHG6WbgdNv8ClqzjCkgypMs3NO6x1JZxCMF/Ls8R+tSqAea/xyOGi92fHmXIIQHsCr7cw4SkhPNUXySrf4b6NhT5J9HzsYOkuPXqrf/pAeeo7wSijmWMVqgjuslGGVSaCS2lSa8NbqwgHzXAAPPCa+Mxuk8Cpo8pk5otpRBnMWJIqpoRF3qe7k00Cm4CG6yomI0BNDpaxjzUtOsU3ALzCyceNfqt2GDMcw6XJdRZA/q5Y/V6e4jV0dPYI4kBa7MR1qCoyLg1WtGN3tkg2QfUgmAAwoQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=kunbus.com; dmarc=pass action=none header.from=kunbus.com; dkim=pass header.d=kunbus.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kunbus.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+gd2P2QyM6Btg7lkv0NpaudbosZkZpzI/p6utSSs/aI=; b=vOAjpTZde0gLHostENbbg+66exBB2NzOeVFqrIIPGmXWYVmABiFqpZcOpxCjgozUF7P4bf/9fZrdZfABo3GyAVazIEQ7g2yAkMMlRLjfe/iDPuRG2V+BjpLoA4domeusjyoWL6OBb4qXGe7IEBkppIiigPfRCl6C8agcvWPy4jw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=kunbus.com; Received: from DBAP193MB0954.EURP193.PROD.OUTLOOK.COM (2603:10a6:10:1cc::9) by GVXP193MB2488.EURP193.PROD.OUTLOOK.COM (2603:10a6:150:1db::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.32; Thu, 31 Oct 2024 13:26:36 +0000 Received: from DBAP193MB0954.EURP193.PROD.OUTLOOK.COM ([fe80::ff97:4bb0:9245:6d0a]) by DBAP193MB0954.EURP193.PROD.OUTLOOK.COM ([fe80::ff97:4bb0:9245:6d0a%7]) with mapi id 15.20.8093.027; Thu, 31 Oct 2024 13:26:36 +0000 From: =?utf-8?q?Thomas_B=C3=B6hler?= To: Masahiro Yamada Cc: Nathan Chancellor , Nicolas Schier , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Philipp Rosenberger , Lino Sanfilippo , =?utf-8?q?Thomas_B=C3=B6hler?= Subject: [PATCH 1/3] package: debian: strip headers package Date: Thu, 31 Oct 2024 14:26:28 +0100 Message-Id: <20241031132630.24667-2-t.boehler@kunbus.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20241031132630.24667-1-t.boehler@kunbus.com> References: <20241031132630.24667-1-t.boehler@kunbus.com> X-ClientProxiedBy: FR3P281CA0072.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:4b::23) To DBAP193MB0954.EURP193.PROD.OUTLOOK.COM (2603:10a6:10:1cc::9) 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: DBAP193MB0954:EE_|GVXP193MB2488:EE_ X-MS-Office365-Filtering-Correlation-Id: 165593c3-d4ab-4213-2260-08dcf9afa4ec X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|10070799003|52116014|376014|366016; X-Microsoft-Antispam-Message-Info: =?utf-8?q?cDICgWk71IziwsuWL6YNJ6cgw0u1Aei?= =?utf-8?q?DBS1BJkORQ13sD/3ju9OitA7PT2IDOXqRCQlPRHSbVGNITXpsvL2rjT6ulluGqbqb?= =?utf-8?q?cc28zWFRSmsimhKVGvF4j590nlM79gWeN2bzxnEN2s6XcJkQSYusCLKFZqulcnxcL?= =?utf-8?q?bc7MXPrfSnIFeCOMdGpC3bvvfNTWeGXy83jsl3bCjZIlTyXRblR7AVgnrhtDO3XxZ?= =?utf-8?q?DPTH7S3thUdALEyhLSyGHozGbC2EOspnmQo2LGYbIze4ou9MOSC3vR80LV6Ls3/X/?= =?utf-8?q?rKtoEqMRCbX6vvi42WVYcQxnZppqBYVWio4tGfGGYdVzAeZmLg/qI3Up+xfuXFQKn?= =?utf-8?q?BP0ZF02XEcXkE0MC4aDB+6/jooO1Xo+V8O4I73IYQiE5CNuWqbfhJQkGZIA7O9hpp?= =?utf-8?q?/pFSOwc08Z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?bmMtKNF1qbUph?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DBAP193MB0954.EURP193.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(10070799003)(52116014)(376014)(366016);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?Wp04Sar1PI/ocj6C+abrTJjLXOBK?= =?utf-8?q?3AZQg05qY0hhyibI4Nuu+mIxQy/fUKyBoZMaz/l5atHPqlzQZtJh9cQFrjulJvgKR?= =?utf-8?q?yDDsb+YyjLjGk+R4+JvGgZvtYMyAV/0Dr3JuVTKDdExy+y2yRbt2JNx8nR7j3g68Z?= =?utf-8?q?ReEco12RQjlx0g4tRRPFWPMmHbkp9XHPnMqY1m5J8FagypI6kDldfJx+Dnf0Eovxi?= =?utf-8?q?GMxBDG777x+cUpfbQAABouTu8d67gUj06F9VPS/TwCTzCTOLz2GFeFGEcqZYm7Z8l?= =?utf-8?q?NmyJpoPJqiO0vn/uDVJF1rWTTPD7axDj8654i+poKLaxFqKdtBZma/P1JP7iLdwz2?= =?utf-8?q?KDbzpFYPHrtb8Mc1o9JWG+VonOG/Md/0uNM45KJ9R6Zx5jo5LAofsxpxtkUdN/3rw?= =?utf-8?q?He1jkJoGv1RVP7JQhFr1aOIdHkMlCqSkbd/65GdeYu1IYGdYVmaKCYiDZ17sgvNBL?= =?utf-8?q?jig9BH27NG0WuMVas5YYncen3UFNnopy/6Ls25MCrIkS9lnc3xboHgohI1OAC/U6h?= =?utf-8?q?DukBnYNwBIJVEW7b/YFGbA/KS7MJV5qefjuUqBshX3f7JjAE31kRr1DrFvieFpr6Z?= =?utf-8?q?sadaR8NfghdHDjuUFOCTCWRMCRSw6Q4UYBOE01YeCIZl94zZRtxlRvDEMu8+gm2KY?= =?utf-8?q?Hn/+nTeJ6FVbKGZX4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R3TyBaIxR74eliaLf11nZ+KHsRViI8EUOyxlVOQFvG5cP?= =?utf-8?q?6wSKLQq1AY4?= X-OriginatorOrg: kunbus.com X-MS-Exchange-CrossTenant-Network-Message-Id: 165593c3-d4ab-4213-2260-08dcf9afa4ec X-MS-Exchange-CrossTenant-AuthSource: DBAP193MB0954.EURP193.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Oct 2024 13:26:36.2337 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: aaa4d814-e659-4b0a-9698-1c671f11520b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Ydq/1R856sLF+PqxXTp7jMUtX8uszeNbvAv1o/bgfcMfNuoGrKsxMIefYiO4paTdvnCSo2Fgoi0swWXaXJPLSw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXP193MB2488 The linux-headers package contains unstripped binaries. Lintian complains about this: E: linux-headers-6.12.0-rc4-g7e04fcfc6195: unstripped-binary-or-object [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/asn1_compiler] E: linux-headers-6.12.0-rc4-g7e04fcfc6195: unstripped-binary-or-object [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/basic/fixdep] E: linux-headers-6.12.0-rc4-g7e04fcfc6195: unstripped-binary-or-object [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/kallsyms] E: linux-headers-6.12.0-rc4-g7e04fcfc6195: unstripped-binary-or-object [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/mod/modpost] E: linux-headers-6.12.0-rc4-g7e04fcfc6195: unstripped-binary-or-object [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/sorttable] It's not possible to outright strip every package built with "debian/rules" as, for instance, the "binary-image" target shouldn't be stripped because it contains debug information that the "binary-image-dbg" target will make use of. Thus conditionally use "dh_strip" on the "binary-headers" target after using "dh_builddeb" to strip only the contents of the package lintian complains about. Also pass the "--no-automatic-dbgsym" option to make sure no headers-dbgsym package is created. Signed-off-by: Thomas Böhler --- scripts/package/debian/rules | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/package/debian/rules b/scripts/package/debian/rules index ca07243bd5cd..0c75319acae1 100755 --- a/scripts/package/debian/rules +++ b/scripts/package/debian/rules @@ -46,6 +46,8 @@ define binary $(Q)dh_testroot $(DH_OPTIONS) $(Q)dh_prep $(DH_OPTIONS) $(Q)+$(MAKE) $(make-opts) run-command KBUILD_RUN_COMMAND='+$$(srctree)/scripts/package/builddeb $(package)' + $(if $(filter $(headers-package),$(package)),\ + $(Q)dh_strip $(DH_OPTIONS) --no-automatic-dbgsym) $(Q)dh_installdocs $(DH_OPTIONS) $(Q)dh_installchangelogs $(DH_OPTIONS) $(Q)dh_compress $(DH_OPTIONS) From patchwork Thu Oct 31 13:26:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Thomas_B=C3=B6hler?= X-Patchwork-Id: 13857905 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2101.outbound.protection.outlook.com [40.107.20.101]) (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 D820F19DF5F; Thu, 31 Oct 2024 13:26:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.101 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730381205; cv=fail; b=MsvfXeFGoL5n/aTAtWvhnyzmnZPwhX5NfuxGnNZ7oOjtdrdV3BUj7pyvC4w+GPYiiaVc41SGcMGePF5ZTR0ynfIyoJuWsTa0L1wzPPBgyES974othH4MHpt8WBlDwTaOwqCMaI/+klC8/MCr2cJd6YS96+7omoy2PA4ss2ZirUU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730381205; c=relaxed/simple; bh=kopefamX5gBzf7Aka6E1RS1E/+SiU7y8OT0OAbjvU0g=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=Nl6tG1VGqkd3MBTlgRTCZISct9+YL8rh071IBOyjCkhnBebFrz397Fh0sOWMeppLaNhduBY6VTzObUK349gILp9sM+2ApcUMH5GuiwerxHLBLQ+rgts48jcDVaUzXHsgc8ZBkoJCqhuKAi4vn+tPtPhtB5WhzhKbRRpVUN9Cl+U= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=kunbus.com; spf=pass smtp.mailfrom=kunbus.com; dkim=pass (1024-bit key) header.d=kunbus.com header.i=@kunbus.com header.b=XqETbIPJ; arc=fail smtp.client-ip=40.107.20.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=kunbus.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kunbus.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=kunbus.com header.i=@kunbus.com header.b="XqETbIPJ" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=P3Va6Iu+MrMwmx7A+R1z1aY31z37qjnxa3pSDPxLRSxn4kSYzOLjhYWjGskzxcZt6TzN/b/fY0vgN9kmLlXJGjjAEIllgHNx3xNiK4WoaPFDfrNEnJQj1uhG7HOnUhzLp+8azqlid/JCPiBkcbtET1j8DVhP/5l3OdC3IfIJIybLnnb1Rhg+96nV+S5AyjjzuOGbdwe/WDKGVXstJBJqbxH4e0BTdRqigVco9o1+URyzEoX5gvDAmKBM58wd/l6jksL7EqthBIIcCliAdDsti56YC8oCL6jnwuqFm+bX3NOAipLHSVkSbS176LiCHx7jfmnrhhwLw7dX3nwu1+/Nog== 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=AJ9YvaFbLnOneOGXYKvjygN/pIfGtLnK2+zV08e8P/E=; b=fjz8GrhO+56yP4w1Xs3ARJeGqlsWh1eNSpzI3oHDaZmoVlJsQxQEqG1z/mv0jyhmp2QnxImw5mtHzGBfwmmpPbAb2WL+UystRaFTyv5cMdpA/unFVG6IQ51ewRSwGj6HvVEruylWpeHVI8IJNj4MP4HUaL4EJjJAvC9N+/EfCQG8ZIPXmbb0+kSJdJf6vdMjhrao3pZ1mbteGAUcIMuayijSlc0ZzqBmoUPPyeN2fs7GV6Wxe2Y3M0tcIlA9iK4FSx98NWBnn/sQimX1RrKfSMkZANJ8E75qe/oGfeU1jdR8b+KVnLNg6IVt+cgmyFnn2OgLnyfibA5FFY8dq4Otcw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=kunbus.com; dmarc=pass action=none header.from=kunbus.com; dkim=pass header.d=kunbus.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kunbus.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AJ9YvaFbLnOneOGXYKvjygN/pIfGtLnK2+zV08e8P/E=; b=XqETbIPJzD/8OrbVq3IgaGX92lxYCjsqLqFBhzk+/QsxFG2G6+THB79tw2boHrL7gAKct6LSj2oDRjeXHqisqPQyO3ibiwBy3yZvaiWr5813ZJj5s4kpuDCDh7rEl7irIleIQzxDXXCK6SynOvTOUYdFvGAuD/IwxKZ37wGrCSc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=kunbus.com; Received: from DBAP193MB0954.EURP193.PROD.OUTLOOK.COM (2603:10a6:10:1cc::9) by GVXP193MB2488.EURP193.PROD.OUTLOOK.COM (2603:10a6:150:1db::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.32; Thu, 31 Oct 2024 13:26:37 +0000 Received: from DBAP193MB0954.EURP193.PROD.OUTLOOK.COM ([fe80::ff97:4bb0:9245:6d0a]) by DBAP193MB0954.EURP193.PROD.OUTLOOK.COM ([fe80::ff97:4bb0:9245:6d0a%7]) with mapi id 15.20.8093.027; Thu, 31 Oct 2024 13:26:37 +0000 From: =?utf-8?q?Thomas_B=C3=B6hler?= To: Masahiro Yamada Cc: Nathan Chancellor , Nicolas Schier , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Philipp Rosenberger , Lino Sanfilippo , =?utf-8?q?Thomas_B=C3=B6hler?= Subject: [PATCH 2/3] package: debian: add missing Depends to linux-headers Date: Thu, 31 Oct 2024 14:26:29 +0100 Message-Id: <20241031132630.24667-3-t.boehler@kunbus.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20241031132630.24667-1-t.boehler@kunbus.com> References: <20241031132630.24667-1-t.boehler@kunbus.com> X-ClientProxiedBy: FR3P281CA0049.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:4a::22) To DBAP193MB0954.EURP193.PROD.OUTLOOK.COM (2603:10a6:10:1cc::9) 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: DBAP193MB0954:EE_|GVXP193MB2488:EE_ X-MS-Office365-Filtering-Correlation-Id: 36c0801b-b728-45fa-ea00-08dcf9afa5a8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|10070799003|52116014|376014|366016; X-Microsoft-Antispam-Message-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Aus/UR7HaGSnELh/IaBQO3DyNu/OInxOdNO?= =?utf-8?q?Qd82RzinjDz+eRI2FqhRzgp6lRPqF1Kv0dM7u7B2qadaang6Wv1vooAJolkf61txW?= =?utf-8?q?GBX/fIlz87zDLNizQ9eWQ26ZyBJiGb0GgGOV0Et1Dp51TlqhKkvQJ3nMAuxOGbgBP?= =?utf-8?q?FWnVA6TK282L5+tg+47Qrn1UHb/okamfPlczdwl/Umze75iK3/ZB9UJfv6Q6gQ+EU?= =?utf-8?q?YO5xsuvRVXP7XvMjZxN6Bb1LEDX+ioqn+YXOtSthjfRh9lO00N2iijLUXm7DhU85Q?= =?utf-8?q?sGlV1C8VDyD5fb0Wz9dAoQ/mtXrwAkBHMWnlo0RPGF/KYtqnAH+mpLsh7iMzFVetY?= =?utf-8?q?CJ+NH9pbMcKHeHs2Dx6IuH8F9C4ylNeuh/63uckxHuKYHmvjaz0tFPSjNCKvd8oxf?= =?utf-8?q?5LpI0OeoANQdq?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DBAP193MB0954.EURP193.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(10070799003)(52116014)(376014)(366016);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?OSTG1KFPNgqHARN/UUslrEULIoZ1?= =?utf-8?q?MRxhwVt6bkZsq173VzD4e5mOH9DBHjRimSt/Q8wbRK93oLaHBVFsw84IANS4pNplv?= =?utf-8?q?7fx91P3kz/NSSEjVYQUap2a5tPme88YiaaLSmSZjfPLntffYHnnZO35PvT5bysQBg?= =?utf-8?q?kOTlUDnuUByqAQmWZAiUDnlU1JCS3ERXhu3vNxDrCRC+mWCqEhtKET6O9LcpjSWjR?= =?utf-8?q?439bdF+w7O6VmkzAUe+kvGmPjcDBZKGf1JtyD98qhqnxMXyx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VrEA?= =?utf-8?q?ZRZ3AJ/XaOY6DWtGai4TujU4RvAS0x5bq4/XTnLFDMlGfzuMhoDpyaeg2yfZyhQYr?= =?utf-8?q?LSm55c4xvnXXs82iwkAI30b0egBNUjnsqf1hRdiTAj+zgZbcsR7pj1hLeMdnnooTG?= =?utf-8?q?g8hHhbfwNEfCgLItG1XHTPvbq2K0FnQaxVFw7VQM4dRhpk8QvTPWfCXFgBlN96PUU?= =?utf-8?q?ZRYGbxSrnSOF9DxNGV8cnDKZQQnVpeHx1KSelppO/D0Nr+6qm3i6f56LSlV+C1mkY?= =?utf-8?q?t4+BQ1ozSl+cH1Wnu111Xm0/wNhyvxBxnjd9ECnp2s1qAYXD0v/VOOr+ZC9j3pz23?= =?utf-8?q?r2r0HTorAhO3t5TT5EAZzMxJee2PlSJyCn4iO/yOJjTng5rWkfcx79Lb/s8bzHh0y?= =?utf-8?q?fdsuldUVlevm8T01kiX1IutuKhwo5eQuUznWINS/tLPM39Tz6tR+U3hPU4PIg3dC3?= =?utf-8?q?HSkH6fdKXCF?= X-OriginatorOrg: kunbus.com X-MS-Exchange-CrossTenant-Network-Message-Id: 36c0801b-b728-45fa-ea00-08dcf9afa5a8 X-MS-Exchange-CrossTenant-AuthSource: DBAP193MB0954.EURP193.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Oct 2024 13:26:37.5904 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: aaa4d814-e659-4b0a-9698-1c671f11520b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: HpixWMHP5kYUWma3tS+6FZGwRmu5eYUFVfDp0YcbnT/CxAn6ed3VG5xucPjFKG833fEOOI60tva5D3+8SoKemw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXP193MB2488 The linux-headers package is missing a dependency to libc. Lintian complains about this as well: W: linux-headers-6.12.0-rc4-g7e04fcfc6195: undeclared-elf-prerequisites (libc.so.6) [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/asn1_compiler] W: linux-headers-6.12.0-rc4-g7e04fcfc6195: undeclared-elf-prerequisites (libc.so.6) [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/basic/fixdep] W: linux-headers-6.12.0-rc4-g7e04fcfc6195: undeclared-elf-prerequisites (libc.so.6) [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/kallsyms] W: linux-headers-6.12.0-rc4-g7e04fcfc6195: undeclared-elf-prerequisites (libc.so.6) [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/mod/modpost] W: linux-headers-6.12.0-rc4-g7e04fcfc6195: undeclared-elf-prerequisites (libc.so.6) [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/sorttable] Fix this by introducing "dh_shlibdeps" into the build process. It calculates shared library dependencies for packages and creates a substvar entry for them, making them usable in "debian/control" by specifying "${shlibs:Depends}" in the "Depends" field. "dh_shlibdeps" detects the dependency on libc for the linux-headers package and by specifying the substvar for the linux-headers package in "debian/control" this dependency is correctly declared and lintian won't complain about it anymore. Signed-off-by: Thomas Böhler --- scripts/package/debian/rules | 1 + scripts/package/mkdebian | 1 + 2 files changed, 2 insertions(+) diff --git a/scripts/package/debian/rules b/scripts/package/debian/rules index 0c75319acae1..2a51564128ff 100755 --- a/scripts/package/debian/rules +++ b/scripts/package/debian/rules @@ -52,6 +52,7 @@ define binary $(Q)dh_installchangelogs $(DH_OPTIONS) $(Q)dh_compress $(DH_OPTIONS) $(Q)dh_fixperms $(DH_OPTIONS) + $(Q)dh_shlibdeps $(DH_OPTIONS) $(Q)dh_gencontrol $(DH_OPTIONS) -- -f$(call mk-files,$@) $(Q)dh_md5sums $(DH_OPTIONS) $(Q)dh_builddeb $(DH_OPTIONS) -- $(addprefix -Z,$(KDEB_COMPRESS)) diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian index 10637d403777..5d96cb0d0bf8 100755 --- a/scripts/package/mkdebian +++ b/scripts/package/mkdebian @@ -224,6 +224,7 @@ cat <> debian/control Package: linux-headers-$version Architecture: $debarch +Depends: \${shlibs:Depends} Description: Linux kernel headers for $version on $debarch This package provides kernel header files for $version on $debarch . From patchwork Thu Oct 31 13:26:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Thomas_B=C3=B6hler?= X-Patchwork-Id: 13857907 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2101.outbound.protection.outlook.com [40.107.20.101]) (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 C1C2219F41C; Thu, 31 Oct 2024 13:26:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.101 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730381210; cv=fail; b=HUKCKHdErEQM3NF6EbQMncs7lfJx6pFIcPlUelU+U7W6/AHAnTnhf51BSxlgoZuldFwOX60OIZv1IdJR22bO/4kP0o7mol+yaDYJNxGcQCBvp173moSBIsu8hxPuFdloKit8tLuDdZXX78YMb1ADexajxLii8g/sChzcJ8YYSHY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730381210; c=relaxed/simple; bh=Q7XVAV+MtEk3oqoB07bx4Atz1eAS4g4rqJTkq0j9GLU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=QJb0aod7cFhAilJuUqpRIAb3JaP/ItWsqaGHZMWFDvEsnmEyvLGiWGMWx4pQN3fohOKqSgPFyYL95XrYFJXco4ahBX3vbV6dvpOqsr0PKryQ7xp1ejfAdsNhAVkrAXpRj5DLVcXLYR4q2CdyxZxEFVI0rfD1F/CfLrZZbZSQRig= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=kunbus.com; spf=pass smtp.mailfrom=kunbus.com; dkim=pass (1024-bit key) header.d=kunbus.com header.i=@kunbus.com header.b=QUv6df5t; arc=fail smtp.client-ip=40.107.20.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=kunbus.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kunbus.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=kunbus.com header.i=@kunbus.com header.b="QUv6df5t" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=s7969WWiVN3SAME23qNUuxERt5x1Kt3rR4gpc3AfLbAQjxNuWmXVvLptMJBbjeCj4yBqZWtJq+/O5nEVaLp7p1cty00kpXi/JjwkKX3J+E9QGolJN7AUacX8UOS8FJYpvZF2GoO3brablCgNx864ZHlvOHVWqFcL6/hbf36+fB4TDF8bCM94lI2w0mZ8+AN/FI84DJJakx0ZrRn1SK3tnVCS8FRRH5Q4fa8cTK+p/C6weTgxip/qiGJtFqQU0TTOywq5JaBe3gpahyb1Fy7tN9Ms3n1QPRqnvBHnZd0WHIvEc9N45/MboKFfg1ouNiLDWsykIO4FJo8CfGtOYyyfQw== 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=LoY3rNemiz+0/8PpQ0QLnrk3Jk8aUTDr59ZSX2o6KGY=; b=aKSWrr4GsJu/NZeNznbzt9SH8tMS3rAJ+vklxZ8T3WebVRbPwmmigFOFscxc8zGSGPtfXpR3vnU6jfVTz+EjMEfjvxnqwkFLSngD63QdDyAmBqX7y6sUqn4TdakmtSf38dZzYg3o1qfVYomo79/FRlpgxIiolkGUwaRxtQbtZXDZ481ggEr95XoiQcptNEkofJiL6PJmo5DjBaEkvmptHnNuntqQ4DXkjY3jNwLtfUJP4PwWqguhj2h9vlanLmVvaJv7+E2OoWavqzos7mOLAeg0L7PEQM2ilEvKRjzJhdN+/s2qk3c1BGXofF2G2DEXpzk6/9LkP04rfchxeuvHDA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=kunbus.com; dmarc=pass action=none header.from=kunbus.com; dkim=pass header.d=kunbus.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kunbus.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LoY3rNemiz+0/8PpQ0QLnrk3Jk8aUTDr59ZSX2o6KGY=; b=QUv6df5twHURCZYlkhRRGGJ68scNLRfZv/mJ19GyrAzvHOTtcIL2D0YZ3Fu65SyjjigYXOXryRvpC+TdLNE4cluC0v1hoBBeJsXDxoEdnOsIPqJ1AICIGyDbbwgxxJQIW0Y40igZmkR0qAuMNbY7B0yEzz7NVuH5K408YlAiQX4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=kunbus.com; Received: from DBAP193MB0954.EURP193.PROD.OUTLOOK.COM (2603:10a6:10:1cc::9) by GVXP193MB2488.EURP193.PROD.OUTLOOK.COM (2603:10a6:150:1db::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.32; Thu, 31 Oct 2024 13:26:38 +0000 Received: from DBAP193MB0954.EURP193.PROD.OUTLOOK.COM ([fe80::ff97:4bb0:9245:6d0a]) by DBAP193MB0954.EURP193.PROD.OUTLOOK.COM ([fe80::ff97:4bb0:9245:6d0a%7]) with mapi id 15.20.8093.027; Thu, 31 Oct 2024 13:26:38 +0000 From: =?utf-8?q?Thomas_B=C3=B6hler?= To: Masahiro Yamada Cc: Nathan Chancellor , Nicolas Schier , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Philipp Rosenberger , Lino Sanfilippo , =?utf-8?q?Thomas_B=C3=B6hler?= Subject: [PATCH 3/3] package: debian: don't include .gitignore under scripts/ Date: Thu, 31 Oct 2024 14:26:30 +0100 Message-Id: <20241031132630.24667-4-t.boehler@kunbus.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20241031132630.24667-1-t.boehler@kunbus.com> References: <20241031132630.24667-1-t.boehler@kunbus.com> X-ClientProxiedBy: FR3P281CA0102.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a1::17) To DBAP193MB0954.EURP193.PROD.OUTLOOK.COM (2603:10a6:10:1cc::9) 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: DBAP193MB0954:EE_|GVXP193MB2488:EE_ X-MS-Office365-Filtering-Correlation-Id: 9244f0cc-8b12-471d-c93c-08dcf9afa665 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|10070799003|52116014|376014|366016; X-Microsoft-Antispam-Message-Info: =?utf-8?q?wIvSK6IdI+ppbdOX9EAELH2Pc97pa4I?= =?utf-8?q?TgzJ9bLO4vrEdKJvx8VT/ip9qotowgq3z5/xqOdp+fZMksqZ7EUvJAnyj1C3vOVIw?= =?utf-8?q?DKcrOdIihs1Q6fTl4vp7eOPOIe2BCF33u0SeSPdItlnCmtd7w60eiBILmrXvwIF8+?= =?utf-8?q?oh8WHBk8+ZAlKqRvb0/jT09VRip/bmB468Qlpi3x8xwXkJAWSWwj4LdaECcMHeWWJ?= =?utf-8?q?QSPyeCN3XKhkxUXcBxJlYadmGuWOtl/sPEVeoJuEwDRCH0X1qqeCGp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A?= =?utf-8?q?pczSlEkM1bMAZxOJrzxAv1wZG5OipitvVr63muRx46oENVqNa3g1xhP/lx0+rkDAz?= =?utf-8?q?8s3qGwveJKtOaAA638H1lefy55Kdry1LziH06MqRB+JTr5ghVxaRQOeJJtoWWYnkc?= =?utf-8?q?bbelqWHvDaHUM?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DBAP193MB0954.EURP193.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(10070799003)(52116014)(376014)(366016);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?YNXITZkAu/LmgE6hMCr7/5aqSSoG?= =?utf-8?q?X/a9Tz6hydKSAeTiny1XDYiWkBQ1l+aNzJgxcv0nxv6HaFbqK3qe+hr9OOxFRhw9T?= =?utf-8?q?FMILnQe3UDDbwLN8iBZJAmNFmmRyZzrJUwQ207pNo0dbrATUWiPB5WLyVXnL23jb+?= =?utf-8?q?eab9OD4GDfDMaz302GzbC3t/InbepbnNWHUmHuaw6D1uZg3FdiDZbQ9D999WlnFYV?= =?utf-8?q?ZK33UiQmhrxK5jia1cmoyV2nhA4AU4OHiS72XLlesPaBqXScuFqWFvvL3zUmx5RHW?= =?utf-8?q?SUvgPy9EtxO68hdjV6rbutGjPi/k3agA46Pj4JAfpaPpQgoseuctqT5W1InwA/Ttz?= =?utf-8?q?i4Aa2zXr7DJlaEjV2Z77eBmbc/p3N+YtuzGVegG1DLa9SA2gPW8CUCzGprMzMkfTX?= =?utf-8?q?sDhDS9bvQUt57KUQeGE+NjD6LXqwsqJGSQVZEYRq7JMp909gne6fye3RDzdRs3upe?= =?utf-8?q?TWpluqLYpIaBLR5/0heZ15mKEZN3fjKLpjwAV4rEwCJohTlS4hNQNZDGkUxc/mCZc?= =?utf-8?q?xTiUTbHqJIvwkgvuM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+RwNyxFYHLwUyRjF9pwN+cLr/Q45DMd/yGMwZuWO1PJFoNh6jV?= =?utf-8?q?/MjSK9pmcImF/5leuUGCUwfC39WBp4C9wDEb7NaeUBFVxvzm9dev58tvhCL99V4Zx?= =?utf-8?q?WDP70C41D4sGnEHrMashOw6N2VQfFcmNc+ffHx5iEATJpis4TwqgGNTlU4pgc7yUV?= =?utf-8?q?TCFGcP5bqBy?= X-OriginatorOrg: kunbus.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9244f0cc-8b12-471d-c93c-08dcf9afa665 X-MS-Exchange-CrossTenant-AuthSource: DBAP193MB0954.EURP193.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Oct 2024 13:26:38.7048 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: aaa4d814-e659-4b0a-9698-1c671f11520b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: dUHmY/RoAVlPksd7537SuBHzaAEwOtL/9zV17m9lGC9JvdulI4xWUv83dkW9L86JefCR0rnunAEzfuvjdNiqUQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXP193MB2488 Files to copy into the header package from the scripts/ directory are listed by a call to find which also includes .gitignore files. These don't belong in the package, and lintian also complains with a "package-contains-vcs-control-file": W: linux-headers-6.12.0-rc4-g7e04fcfc6195: package-contains-vcs-control-file [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/.gitignore] W: linux-headers-6.12.0-rc4-g7e04fcfc6195: package-contains-vcs-control-file [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/basic/.gitignore] W: linux-headers-6.12.0-rc4-g7e04fcfc6195: package-contains-vcs-control-file [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/gcc-plugins/.gitignore] W: linux-headers-6.12.0-rc4-g7e04fcfc6195: package-contains-vcs-control-file [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/gdb/linux/.gitignore] W: linux-headers-6.12.0-rc4-g7e04fcfc6195: package-contains-vcs-control-file [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/genksyms/.gitignore] W: linux-headers-6.12.0-rc4-g7e04fcfc6195: package-contains-vcs-control-file [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/ipe/polgen/.gitignore] W: linux-headers-6.12.0-rc4-g7e04fcfc6195: package-contains-vcs-control-file [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/mod/.gitignore] W: linux-headers-6.12.0-rc4-g7e04fcfc6195: package-contains-vcs-control-file [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/selinux/genheaders/.gitignore] W: linux-headers-6.12.0-rc4-g7e04fcfc6195: package-contains-vcs-control-file [usr/src/linux-headers-6.12.0-rc4-g7e04fcfc6195/scripts/selinux/mdp/.gitignore] Filter the .gitignore files so they're not copied into the resulting package. Signed-off-by: Thomas Böhler --- scripts/package/install-extmod-build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/package/install-extmod-build b/scripts/package/install-extmod-build index d2c9cacecc0c..5c735e176b53 100755 --- a/scripts/package/install-extmod-build +++ b/scripts/package/install-extmod-build @@ -12,7 +12,8 @@ is_enabled() { find_in_scripts() { find scripts \ \( -name atomic -o -name dtc -o -name kconfig -o -name package \) -prune -o \ - ! -name unifdef -a ! -name mk_elfconfig -a \( -type f -o -type l \) -print + ! -name unifdef -a ! -name mk_elfconfig -a \( -type f -o -type l \) \ + ! -name .gitignore -print } mkdir -p "${destdir}" @@ -23,7 +24,8 @@ mkdir -p "${destdir}" find "arch/${SRCARCH}" -maxdepth 1 -name 'Makefile*' find "arch/${SRCARCH}" -name generated -prune -o -name include -type d -print find "arch/${SRCARCH}" -name Kbuild.platforms -o -name Platform - find include \( -name config -o -name generated \) -prune -o \( -type f -o -type l \) -print + find include \( -name config -o -name generated \) -prune -o \( -type f -o -type l \) \ + ! -name .gitignore -print find_in_scripts ) | tar -c -f - -C "${srctree}" -T - | tar -xf - -C "${destdir}"