From patchwork Thu Feb 21 16:37:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thadeu Lima de Souza Cascardo X-Patchwork-Id: 1046259 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4450WF3cCfz9s8m; Fri, 22 Feb 2019 03:37:29 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1gwrLg-0002ry-RW; Thu, 21 Feb 2019 16:37:24 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.86_2) (envelope-from ) id 1gwrLe-0002qg-Uf for kernel-team@lists.ubuntu.com; Thu, 21 Feb 2019 16:37:22 +0000 Received: from [194.204.107.10] (helo=localhost.localdomain) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1gwrLe-00075e-JA for kernel-team@lists.ubuntu.com; Thu, 21 Feb 2019 16:37:22 +0000 From: Thadeu Lima de Souza Cascardo To: kernel-team@lists.ubuntu.com Subject: [bionic/gcp-edge 2/2] UBUNTU: Packaging: Make update-from-*master call copy-files Date: Thu, 21 Feb 2019 13:37:19 -0300 Message-Id: <20190221163719.1762-3-cascardo@canonical.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190221163719.1762-1-cascardo@canonical.com> References: <20190221163719.1762-1-cascardo@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1786013 Now that copy-files and local-magle are introduced, update-from-*master may make use of them, instead of doing the copies and mangles itself. That makes it easier to replace update-from-*master with a single script version for all trees in the future. Signed-off-by: Thadeu Lima de Souza Cascardo --- debian.gcp-edge/etc/update-from-master | 37 +------------------------- 1 file changed, 1 insertion(+), 36 deletions(-) diff --git a/debian.gcp-edge/etc/update-from-master b/debian.gcp-edge/etc/update-from-master index 7e0b312eb7c4..4d5790f8969b 100755 --- a/debian.gcp-edge/etc/update-from-master +++ b/debian.gcp-edge/etc/update-from-master @@ -96,42 +96,7 @@ then exit 1 fi -# -# Pick up any master branch changes to udeb modules or firmware. -# -rsync -av --delete ${DEBIAN_SOURCE}/d-i/ ${DEBIAN_TARGET}/d-i - -# -# Update configs from master -# -rsync -av --delete ${DEBIAN_SOURCE}/config/ ${DEBIAN_TARGET}/config - -# -# Update package and DTB settings from master. -# -rsync -av --delete ${DEBIAN_SOURCE}/rules.d/*.mk ${DEBIAN_TARGET}/rules.d/ -echo -e 'skipabi=true\nskipmodule=true\nskipretpoline=true' >> ${DEBIAN_TARGET}/rules.d/hooks.mk - -# -# Update modprobe.d from master -# -rsync -av --delete ${DEBIAN_SOURCE}/modprobe.d/ ${DEBIAN_TARGET}/modprobe.d - -# -# Get the master branch ABI files, which can be mostly ignored since -# the build is skipabi and skipmodule. -# We can ignore ABI changes with the assurance that the origin -# will change ABI when required. -# -rsync -av --delete ${DEBIAN_SOURCE}/abi/ ${DEBIAN_TARGET}/abi -for i in ${FOREIGN_ARCHES} -do - rm -rf ${DEBIAN_TARGET}/abi/*/${i} -done - -cp -p ${DEBIAN_SOURCE}/control.d/*.inclusion-list ${DEBIAN_TARGET}/control.d - -cp -p ${DEBIAN_SOURCE}/reconstruct ${DEBIAN_TARGET}/reconstruct +"./${DEBIAN_TARGET}/scripts/helpers/copy-files" fakeroot debian/rules clean updateconfigs