From patchwork Tue Dec 19 15:40:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 181063 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp2026573dyi; Tue, 19 Dec 2023 07:41:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IEBWTGwjpfvEH9NYzbUQb4zThKf0awctbgbotuFhEnAtpjoM3EjiaipKqApj44Vvld3MLUl X-Received: by 2002:ac8:5781:0:b0:425:9122:bcd3 with SMTP id v1-20020ac85781000000b004259122bcd3mr15277171qta.106.1703000506553; Tue, 19 Dec 2023 07:41:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703000506; cv=none; d=google.com; s=arc-20160816; b=OEwpyTDMB9/QtN9eLQJVaGtqpwV2Iec5vmxD+3xPx/Wqrl3AmqWtGEQr2cLmOcN0jg PBPqlFEBkyZgukjK3n6rR7/5chZWJjwvOLbTol85O+NJQJKgfKHaP+U99oqIgXFB2C93 b0KPy04dFkpUCRSP5Kpmuw2bWmHvu9TeALN+hcpWxJIoGroWKWnHH/J9cu/sN4KwKt+W bnvyeEI92PRrt39jGKyJlkAN44G3yRkSris4Y7YyItimbHo9sMvKppAHgwA+C2lXiNkc n/4uiBWaguR6k30Q99fciiySkmRX88RR2xUc36jBts8GZaXtfa+ypjj6Xb0uvMg3zIzU wr6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=Xrstjt0Ab9CToVM3Gc0s9Lsw7WRH9fER1PqFNsCBnlg=; fh=5gYN4msaJmwnN8mGpibv8VZnTy0MtvGQcf5D09XpoaQ=; b=BjZFuoO9DlVWyDjZ0XXn2jjnf3rr/qt1YGYCEV/VVh/9FkiIAcK4hvCy6XfImqwq4v L3ygeG7Z9YcDI8SddG3ASOZRQAMRdcCk+KAT/aCtfWHWvMPBi2xdw936sEnatvcc7Sj1 5z5gQIkHK4QPsWxjWKJyLqVqJJ9gjelh8gDcdWKa13irlalAD58WJqx1aEex7LzdEUN5 7HAqJR7A0ruKjHcvnGVXGG+G/9gYo7tz2nMjwFFwXNu65zwFQDwMVUjpV6gC7uTLwoTU aNAWqgTOzlOg3MhC0JLhcogHE/Rxwc70AVLKNc4ojh+UFI/Crzepfyec4Era9yKddU2j Tk7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FNaXtJeq; spf=pass (google.com: domain of linux-kernel+bounces-5501-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5501-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id eq20-20020a05622a5e1400b0042543ae77e5si27901676qtb.233.2023.12.19.07.41.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 07:41:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5501-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FNaXtJeq; spf=pass (google.com: domain of linux-kernel+bounces-5501-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5501-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 57F111C24523 for ; Tue, 19 Dec 2023 15:41:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 93B8320322; Tue, 19 Dec 2023 15:41:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FNaXtJeq" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 3DDD01D522; Tue, 19 Dec 2023 15:40:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E2B4C433C8; Tue, 19 Dec 2023 15:40:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703000455; bh=CleS4Wyn8+tIT1wCL1GNRFUcnY3c+Rh3z0BVuoazyrg=; h=From:To:Cc:Subject:Date:From; b=FNaXtJeqqpXT0c/EUUZCqP9TZtPDztQ0nPuNRjXajW4W2sxnUWKDqo5jcqiU+9UZo OTltfbPG4ewehZ2AVqV59eH2rXPN152gxLe51R9xEfdsbT3AnxjZVo3QQx0zTok/ux zCdyI/LUKSXDijeGa7lmCW1VMJRnCvNgoS8cUS+/cJDYLh3PXZ2IKOfEkVQXdD9K22 CwwhejZ1bxprFs3uUApNaaGGFXqpZxYaKN2BDAyoOyTUcNaHYNbchS7bhPyYIuilDL qRCo4deQOpwIYc6czweTxtNqOT2MSfpFlRDdxTuNfPkFl+jJ5DIQ+tOGhumMqHDSqT ZkYR+6B90IE1g== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Ben Hutchings , Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , linux-kernel@vger.kernel.org Subject: [PATCH] kbuild: deb-pkg: split debian/copyright Date: Wed, 20 Dec 2023 00:40:49 +0900 Message-Id: <20231219154049.1095323-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785725459249049964 X-GMAIL-MSGID: 1785725459249049964 Copy debian/copyright instead of generating it by the 'cat' command. Signed-off-by: Masahiro Yamada Reviewed-by: Nicolas Schier --- scripts/package/debian/copyright | 16 ++++++++++++++++ scripts/package/mkdebian | 21 +-------------------- 2 files changed, 17 insertions(+), 20 deletions(-) create mode 100644 scripts/package/debian/copyright diff --git a/scripts/package/debian/copyright b/scripts/package/debian/copyright new file mode 100644 index 000000000000..388a204b0b2b --- /dev/null +++ b/scripts/package/debian/copyright @@ -0,0 +1,16 @@ +This is a packaged upstream version of the Linux kernel. + +The sources may be found at most Linux archive sites, including: +https://www.kernel.org/pub/linux/kernel + +Copyright: 1991 - 2018 Linus Torvalds and others. + +The git repository for mainline kernel development is at: +git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 dated June, 1991. + +On Debian GNU/Linux systems, the complete text of the GNU General Public +License version 2 can be found in `/usr/share/common-licenses/GPL-2'. diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian index c1a36da85e84..91f0e09600b1 100755 --- a/scripts/package/mkdebian +++ b/scripts/package/mkdebian @@ -188,26 +188,6 @@ $sourcename ($packageversion) $distribution; urgency=low -- $maintainer $(date -R) EOF -# Generate copyright file -cat < debian/copyright -This is a packaged upstream version of the Linux kernel. - -The sources may be found at most Linux archive sites, including: -https://www.kernel.org/pub/linux/kernel - -Copyright: 1991 - 2018 Linus Torvalds and others. - -The git repository for mainline kernel development is at: -git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; version 2 dated June, 1991. - -On Debian GNU/Linux systems, the complete text of the GNU General Public -License version 2 can be found in \`/usr/share/common-licenses/GPL-2'. -EOF - # Generate a control file cat < debian/control Source: $sourcename @@ -268,6 +248,7 @@ ARCH := ${ARCH} KERNELRELEASE := ${KERNELRELEASE} EOF +cp "${srctree}/scripts/package/debian/copyright" debian/ cp "${srctree}/scripts/package/debian/rules" debian/ exit 0