From patchwork Tue Dec 3 22:26:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seth Forshee X-Patchwork-Id: 1203874 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) 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 47SGnp56cvz9sP3; Wed, 4 Dec 2019 09:27:42 +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 1icGds-0004eJ-H5; Tue, 03 Dec 2019 22:27:36 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1icGdk-0004Y6-7p for kernel-team@lists.ubuntu.com; Tue, 03 Dec 2019 22:27:28 +0000 Received: from mail-yb1-f198.google.com ([209.85.219.198]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1icGdj-0001Ku-Kz for kernel-team@lists.ubuntu.com; Tue, 03 Dec 2019 22:27:27 +0000 Received: by mail-yb1-f198.google.com with SMTP id y127so3299601yba.19 for ; Tue, 03 Dec 2019 14:27:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=imTxivFE1C6Q/z9imErbni350VGbK/yfGRe6Mdh9hyY=; b=FxPvBlMgUupd9lVlHziXFazXJ7KUSxG4yxva90997CHWu9CDGE4dZIXY2bwNJatPNZ OMsgcjCVhYpiVGJCInqf3S4nIvMP4RRWNs9Huq4n6ZhUef+R6UbrRVUf6b+UaWKDdKDy HqRsRMQwWdcZY0WWjbLfBp0ZTJf2Nfn3m7Y2bu4toaHd55YASKpsD+b2X2GjGrqkNeNY zznTRLZAxtHINL9lTVJLFQb9tQ+Wqtura/1N9dCBxT6/iRuW0sRRebJY2PwdenPpx5OF gh03n3JDXRb2puJ4KpP3U7IHTDwGf01JBvIIZxjvI2FBE1zaozqd3mypQBozPBZ4Zai8 mnyA== X-Gm-Message-State: APjAAAUaPS/ZW+M2mc4O8cLSJlJHrganzWhfZ1LuOaV+07A4aGqHCju6 I9KK+XJ4JWbox2MWd5JR1wXF7MXetg92Skjm8Qcquyq8N3i3tAFeHKVE7tMedNntv7RfCie2WOU iIX/JEieXRgXdGGsLQd+/rfI/aoE8AeUKFaGPPL7rKA== X-Received: by 2002:a81:d549:: with SMTP id l9mr5995893ywj.58.1575412046236; Tue, 03 Dec 2019 14:27:26 -0800 (PST) X-Google-Smtp-Source: APXvYqxH52Twz2tudnNO9IWtp1h0fPhA7YMhJG1cOWWcUAK4m01Y3vZ6J8pgd0/4Iz/Q9wCkpPrKVg== X-Received: by 2002:a81:d549:: with SMTP id l9mr5995859ywj.58.1575412045468; Tue, 03 Dec 2019 14:27:25 -0800 (PST) Received: from localhost ([136.37.150.243]) by smtp.gmail.com with ESMTPSA id w71sm1974634ywd.57.2019.12.03.14.27.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Dec 2019 14:27:24 -0800 (PST) From: Seth Forshee To: kernel-team@lists.ubuntu.com Subject: [REVIEW 3/4][linux-meta] UBUNTU: [Debian] Use variant information to generate debian/control Date: Tue, 3 Dec 2019 16:26:50 -0600 Message-Id: <20191203222657.1152249-17-seth.forshee@canonical.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191203222657.1152249-1-seth.forshee@canonical.com> References: <20191203222657.1152249-1-seth.forshee@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" Use the variant list from debian/variants to generate meta packages for all variants imported from the kernel. While at it, update the syntax used for variable substitution in the control templates for consistency. If no debian/variants files is present, assume the primary variant. linux-source and linux-crashdump should only be generated for the primary (i.e. "--") variant. Move these to debian/control.d/primary so that they can be omitted whenever the primary variant is not present. Signed-off-by: Seth Forshee --- debian/control.common | 25 ++------------- debian/control.d/generic | 12 ++++---- debian/control.d/generic-lpae | 10 +++--- debian/control.d/lowlatency | 12 ++++---- debian/control.d/primary | 19 ++++++++++++ debian/control.d/snapdragon | 10 +++--- debian/control.d/virtual | 18 +++++------ debian/rules | 57 +++++++++++++++++++++++------------ 8 files changed, 89 insertions(+), 74 deletions(-) create mode 100644 debian/control.d/primary diff --git a/debian/control.common b/debian/control.common index 2c05c0c9838b..fbe34ac6c7c2 100644 --- a/debian/control.common +++ b/debian/control.common @@ -1,31 +1,10 @@ -Source: linux-meta@SUFFIX@ +Source: @META_SOURCE@ Section: devel Priority: optional Maintainer: Ubuntu Kernel Team Standards-Version: 3.9.8 Build-Depends: dpkg (>= 1.13.19), debhelper (>= 9), gawk, Build-Depends-Arch: - linux-headers-@kernel-abi-version@, + @KERNEL_SOURCE@-headers-@kernel-abi-version@, linux-headers-@kernel-abi-version@-generic, Vcs-Git: git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux-meta/+git/@SERIES@ - -Package: linux-source@SUFFIX@ -Architecture: all -Depends: ${misc:Depends}, linux-source-${kernel-version} -Description: Linux kernel source with Ubuntu patches - This package will always depend on the latest Linux kernel source code - available. The Ubuntu patches have been applied. - -Package: linux-crashdump@SUFFIX@ -Architecture: amd64 arm64 armhf ppc64el s390x -Depends: ${misc:Depends}, kdump-tools, grub-pc (>= 1.96+20090611-1ubuntu2) [amd64] | grub-efi-ia32 [amd64] | grub-efi-amd64 [amd64] | grub-efi-arm64 [arm64] | grub (>= 0.97-29ubuntu24) [amd64] -Recommends: apport -Suggests: crash -Description: Linux kernel crashdump setup for the latest generic kernel - This package installs all the needed infrastructure to get crashdumps from - your running system. If you are experiencing kernel crashes that cannot - be debugged normally (because the problem is infrequent or panic's the - system in such a way as to make information gathering impossible), then - you can install this package to automatically enable capture of the - vmcore on crashes. - diff --git a/debian/control.d/generic b/debian/control.d/generic index 7be251a69cee..a548f360a5b6 100644 --- a/debian/control.d/generic +++ b/debian/control.d/generic @@ -1,4 +1,4 @@ -Package: linux-headers-generic@SUFFIX@ +Package: linux-headers-generic${variant:suffix} Architecture: amd64 armhf arm64 powerpc ppc64el s390x Section: kernel Depends: ${misc:Depends}, linux-headers-${kernel-abi-version}-generic @@ -6,7 +6,7 @@ Description: Generic Linux kernel headers This package will always depend on the latest generic kernel headers available. -Package: linux-image-generic@SUFFIX@ +Package: linux-image-generic${variant:suffix} Architecture: amd64 armhf arm64 powerpc ppc64el s390x Section: kernel Depends: ${misc:Depends}, linux-image-${kernel-abi-version}-generic, linux-modules-extra-${kernel-abi-version}-generic [amd64 arm64 powerpc ppc64el s390x], linux-firmware, intel-microcode [amd64], amd64-microcode [amd64] @@ -15,7 +15,7 @@ Description: Generic Linux kernel image This package will always depend on the latest generic kernel image available. -Package: linux-tools-generic@SUFFIX@ +Package: linux-tools-generic${variant:suffix} Architecture: amd64 armhf arm64 powerpc ppc64el s390x Section: kernel Provides: linux-tools @@ -24,7 +24,7 @@ Description: Generic Linux kernel tools This package will always depend on the latest generic kernel tools available. -Package: linux-cloud-tools-generic@SUFFIX@ +Package: linux-cloud-tools-generic${variant:suffix} Architecture: amd64 Section: kernel Provides: linux-cloud-tools @@ -33,10 +33,10 @@ Description: Generic Linux kernel cloud tools This package will always depend on the latest generic kernel cloud tools available. -Package: linux-generic@SUFFIX@ +Package: linux-generic${variant:suffix} Architecture: amd64 armhf arm64 powerpc ppc64el s390x Section: kernel -Depends: ${misc:Depends}, linux-image-generic@SUFFIX@ (= ${binary:Version}), linux-headers-generic@SUFFIX@ (= ${binary:Version}) +Depends: ${misc:Depends}, linux-image-generic${variant:suffix} (= ${binary:Version}), linux-headers-generic${variant:suffix} (= ${binary:Version}) Description: Complete Generic Linux kernel and headers This package will always depend on the latest complete generic Linux kernel and headers. diff --git a/debian/control.d/generic-lpae b/debian/control.d/generic-lpae index 2a4d72dbfd35..f8c57d8fcb12 100644 --- a/debian/control.d/generic-lpae +++ b/debian/control.d/generic-lpae @@ -1,4 +1,4 @@ -Package: linux-headers-generic-lpae@SUFFIX@ +Package: linux-headers-generic-lpae${variant:suffix} Architecture: armhf Section: kernel Depends: ${misc:Depends}, linux-headers-${kernel-abi-version}-generic-lpae @@ -6,7 +6,7 @@ Description: Generic LPAE Linux kernel headers This package will always depend on the latest generic-lpae kernel headers available. -Package: linux-image-generic-lpae@SUFFIX@ +Package: linux-image-generic-lpae${variant:suffix} Architecture: armhf Section: kernel Depends: ${misc:Depends}, linux-image-${kernel-abi-version}-generic-lpae, linux-firmware @@ -15,7 +15,7 @@ Description: Generic LPAE Linux kernel image This package will always depend on the latest generic-lpae kernel image available. -Package: linux-tools-generic-lpae@SUFFIX@ +Package: linux-tools-generic-lpae${variant:suffix} Architecture: armhf Section: kernel Provides: linux-tools @@ -24,10 +24,10 @@ Description: Generic LPAE Linux kernel tools This package will always depend on the latest generic-lpae kernel tools available. -Package: linux-generic-lpae@SUFFIX@ +Package: linux-generic-lpae${variant:suffix} Architecture: armhf Section: kernel -Depends: ${misc:Depends}, linux-image-generic-lpae@SUFFIX@ (= ${binary:Version}), linux-headers-generic-lpae@SUFFIX@ (= ${binary:Version}) +Depends: ${misc:Depends}, linux-image-generic-lpae${variant:suffix} (= ${binary:Version}), linux-headers-generic-lpae${variant:suffix} (= ${binary:Version}) Description: Complete Generic LPAE Linux kernel and headers This package will always depend on the latest complete generic-lpae Linux kernel and headers. diff --git a/debian/control.d/lowlatency b/debian/control.d/lowlatency index 0e780155fda4..c8fc888d4055 100644 --- a/debian/control.d/lowlatency +++ b/debian/control.d/lowlatency @@ -1,4 +1,4 @@ -Package: linux-headers-lowlatency@SUFFIX@ +Package: linux-headers-lowlatency${variant:suffix} Architecture: amd64 Section: kernel Depends: ${misc:Depends}, linux-headers-${kernel-abi-version}-lowlatency @@ -6,7 +6,7 @@ Description: lowlatency Linux kernel headers This package will always depend on the latest lowlatency kernel headers available. -Package: linux-image-lowlatency@SUFFIX@ +Package: linux-image-lowlatency${variant:suffix} Architecture: amd64 Section: kernel Depends: ${misc:Depends}, linux-image-${kernel-abi-version}-lowlatency, linux-firmware, intel-microcode [amd64], amd64-microcode [amd64] @@ -15,7 +15,7 @@ Description: lowlatency Linux kernel image This package will always depend on the latest lowlatency kernel image available. -Package: linux-tools-lowlatency@SUFFIX@ +Package: linux-tools-lowlatency${variant:suffix} Architecture: amd64 Section: kernel Provides: linux-tools @@ -24,7 +24,7 @@ Description: lowlatency Linux kernel tools This package will always depend on the latest lowlatency kernel tools available. -Package: linux-cloud-tools-lowlatency@SUFFIX@ +Package: linux-cloud-tools-lowlatency${variant:suffix} Architecture: amd64 Section: kernel Provides: linux-cloud-tools @@ -33,10 +33,10 @@ Description: lowlatency Linux kernel cloud tools This package will always depend on the latest lowlatency kernel cloud tools available. -Package: linux-lowlatency@SUFFIX@ +Package: linux-lowlatency${variant:suffix} Architecture: amd64 Section: kernel -Depends: ${misc:Depends}, linux-image-lowlatency@SUFFIX@ (= ${binary:Version}), linux-headers-lowlatency@SUFFIX@ (= ${binary:Version}) +Depends: ${misc:Depends}, linux-image-lowlatency${variant:suffix} (= ${binary:Version}), linux-headers-lowlatency${variant:suffix} (= ${binary:Version}) Description: Complete lowlatency Linux kernel This package will always depend on the latest complete lowlatency Linux kernel available. diff --git a/debian/control.d/primary b/debian/control.d/primary new file mode 100644 index 000000000000..de20d4b1e39a --- /dev/null +++ b/debian/control.d/primary @@ -0,0 +1,19 @@ +Package: linux-source +Architecture: all +Depends: ${misc:Depends}, linux-source-${kernel-version} +Description: Linux kernel source with Ubuntu patches + This package will always depend on the latest Linux kernel source code + available. The Ubuntu patches have been applied. + +Package: linux-crashdump +Architecture: amd64 arm64 armhf ppc64el s390x +Depends: ${misc:Depends}, kdump-tools, grub-pc (>= 1.96+20090611-1ubuntu2) [amd64] | grub-efi-ia32 [amd64] | grub-efi-amd64 [amd64] | grub-efi-arm64 [arm64] | grub (>= 0.97-29ubuntu24) [amd64] +Recommends: apport +Suggests: crash +Description: Linux kernel crashdump setup for the latest generic kernel + This package installs all the needed infrastructure to get crashdumps from + your running system. If you are experiencing kernel crashes that cannot + be debugged normally (because the problem is infrequent or panic's the + system in such a way as to make information gathering impossible), then + you can install this package to automatically enable capture of the + vmcore on crashes. diff --git a/debian/control.d/snapdragon b/debian/control.d/snapdragon index 2645922490e9..34b7b3bba934 100644 --- a/debian/control.d/snapdragon +++ b/debian/control.d/snapdragon @@ -1,4 +1,4 @@ -Package: linux-headers-snapdragon@SUFFIX@ +Package: linux-headers-snapdragon${variant:suffix} Architecture: arm64 Section: kernel Depends: ${misc:Depends}, linux-headers-${kernel-abi-version}-snapdragon @@ -6,7 +6,7 @@ Description: Linux kernel headers for the Qualcomm Snapdragon 410c architecture This package will always depend on the latest kernel headers available for ARM64 Qualcomm Snapdragon 410c systems. -Package: linux-image-snapdragon@SUFFIX@ +Package: linux-image-snapdragon${variant:suffix} Architecture: arm64 Section: kernel Depends: ${misc:Depends}, linux-image-${kernel-abi-version}-snapdragon, linux-firmware @@ -14,7 +14,7 @@ Description: Linux kernel image for the Qualcomm Snapdragon 410c architecture This package will always depend on the latest kernel image available for ARM64 Qualcomm Snapdragon 410c systems. -Package: linux-tools-snapdragon@SUFFIX@ +Package: linux-tools-snapdragon${variant:suffix} Architecture: arm64 Section: kernel Provides: linux-tools @@ -23,10 +23,10 @@ Description: Linux kernel tools for the Qualcomm Snapdragon 410c architecture This package will always depend on the latest kernel tools available for ARM64 Qualcomm Snapdragon 410c systems. -Package: linux-snapdragon@SUFFIX@ +Package: linux-snapdragon${variant:suffix} Architecture: arm64 Section: kernel -Depends: ${misc:Depends}, linux-image-snapdragon@SUFFIX@ (= ${binary:Version}), linux-headers-snapdragon@SUFFIX@ (= ${binary:Version}) +Depends: ${misc:Depends}, linux-image-snapdragon${variant:suffix} (= ${binary:Version}), linux-headers-snapdragon${variant:suffix} (= ${binary:Version}) Description: Complete Linux kernel and headers for the Qualcomm Snapdragon 410c architecture This package will always depend on the latest complete Linux kernel and headers available for ARM64 Qualcomm Snapdragon 410c systems. diff --git a/debian/control.d/virtual b/debian/control.d/virtual index 121c0f08ccea..f0d01c2c6f4b 100644 --- a/debian/control.d/virtual +++ b/debian/control.d/virtual @@ -1,11 +1,11 @@ -Package: linux-headers-virtual@SUFFIX@ +Package: linux-headers-virtual${variant:suffix} Architecture: amd64 arm64 powerpc ppc64el s390x Section: kernel -Depends: ${misc:Depends}, linux-headers-generic@SUFFIX@ (= ${binary:Version}) +Depends: ${misc:Depends}, linux-headers-generic${variant:suffix} (= ${binary:Version}) Description: Virtual Linux kernel headers This package will always depend on linux-headers-generic. -Package: linux-image-virtual@SUFFIX@ +Package: linux-image-virtual${variant:suffix} Architecture: amd64 arm64 powerpc ppc64el s390x Section: kernel Depends: ${misc:Depends}, linux-image-${kernel-abi-version}-generic @@ -13,7 +13,7 @@ Description: Virtual Linux kernel image This package will always depend on the latest minimal generic kernel image used for virtual instances. -Package: linux-tools-virtual@SUFFIX@ +Package: linux-tools-virtual${variant:suffix} Architecture: amd64 arm64 powerpc ppc64el s390x Section: kernel Provides: linux-tools @@ -22,7 +22,7 @@ Description: Virtual Linux kernel tools This package will always depend on the latest minimal generic kernel tools used for virtual instances. -Package: linux-cloud-tools-virtual@SUFFIX@ +Package: linux-cloud-tools-virtual${variant:suffix} Architecture: amd64 Section: kernel Provides: linux-cloud-tools @@ -31,17 +31,17 @@ Description: Virtual Linux kernel cloud tools This package will always depend on the latest minimal generic kernel cloud tools used for virtual instances. -Package: linux-virtual@SUFFIX@ +Package: linux-virtual${variant:suffix} Architecture: amd64 arm64 powerpc ppc64el s390x Section: kernel -Depends: ${misc:Depends}, linux-image-virtual@SUFFIX@ (= ${binary:Version}), linux-headers-virtual@SUFFIX@ (= ${binary:Version}) +Depends: ${misc:Depends}, linux-image-virtual${variant:suffix} (= ${binary:Version}), linux-headers-virtual${variant:suffix} (= ${binary:Version}) Description: Minimal Generic Linux kernel and headers This package will always depend on linux-image-virtual and linux-headers-virtual. -Package: linux-image-extra-virtual@SUFFIX@ +Package: linux-image-extra-virtual${variant:suffix} Architecture: amd64 arm64 powerpc ppc64el s390x Section: kernel -Depends: ${misc:Depends}, linux-image-generic@SUFFIX@ (= ${binary:Version}) +Depends: ${misc:Depends}, linux-image-generic${variant:suffix} (= ${binary:Version}) Description: Extra drivers for Virtual Linux kernel image This package will always depend on linux-image-generic. diff --git a/debian/rules b/debian/rules index 9ddcb3bb5f91..6419ebc4228c 100755 --- a/debian/rules +++ b/debian/rules @@ -7,26 +7,31 @@ # Copyright (c) 2004 Jens Schmalzing # -# Pull out the source suffix, we intend to maintain an -lts- suffix -# but otherwise assume this main packages are not intended to have a suffix -# so that linux-meta and linux-meta-ti-omap4 will behave normally, but -# linux-meta-lts-vivid will add the series suffix. SERIES=$(shell dpkg-parsechangelog | sed -ne 's/^Distribution: *//p' | sed -e 's/-\(security\|updates\|proposed\)$$//') SOURCE=$(shell dpkg-parsechangelog | sed -ne 's/^Source: *//p') -SUFFIX=$(shell dpkg-parsechangelog | sed -ne 's/^Source: *linux-meta-lts/-lts/p') +KERNEL_SOURCE=$(shell echo "$(SOURCE)" | sed -e 's/-meta//') + +VARIANT_PROVIDES=$(shell echo "$(SOURCE)" | sed -e 's/linux-meta-//') # 5 digit versions (2.6.38.., 3 digit kernel base versions (2.6.38) KERNEL_VERSION=$(shell dpkg-parsechangelog -SVersion | cut -d. -f1-3) KERNEL_ABI=$(shell dpkg-parsechangelog -SVersion | cut -d. -f4) -# 4 digit versions (3.0..), 2 digit kernel base versions (3.0) -#KERNEL_VERSION=$(shell dpkg-parsechangelog | grep ^Version | sed -e \ - 's/Version: \([0-9]*\.[0-9]*\)\..*/\1/') -#KERNEL_ABI=$(shell head -n1 < debian/changelog | gawk '{n=split($$0,v,"."); print v[3];}') - KERNEL_ABI_VERSION=$(KERNEL_VERSION)-$(KERNEL_ABI) -control_files := debian/control.common $(shell LC_ALL=C ls -d debian/control.d/*) +# Get variants, assumng primary if debian/variants is not present +variants = -- +ifneq (,$(wildcard debian/variants)) + variants := $(shell cat debian/variants) +endif + +control_files := debian/control.common +# control files only wanted for the primary variant +primary_control_files := debian/control.d/primary $(shell LC_ALL=C ls -d debian/control.d/transitionals-*) +ifneq ($(filter --,$(variants)),) + control_files += $(primary_control_files) +endif +control_files += $(filter-out $(primary_control_files),$(shell LC_ALL=C ls -d debian/control.d/*)) SHELL := sh -e @@ -35,18 +40,30 @@ clean: debian/control dh_testroot dh_clean +define variant_payload +variant="$$(echo '$(variant)' | sed -e 's/--//')"; \ +sed -e "s/\$${variant:suffix}/$$variant/g" -e "s/\$${variant:provides\(\|-image\|-headers\)}/$${variant_provides:+linux\1-$$variant_provides}/" <$$i; \ +variant_provides=''; \ +echo ""; +endef + debian/control: $(control_files) - rm -f debian/control.tmp for i in $^; do \ - sed \ - -e 's/@SERIES@/$(SERIES)/g' \ - -e 's/@SUFFIX@/$(SUFFIX)/g' \ - -e 's/@kernel-abi-version@/$(KERNEL_ABI_VERSION)/g' \ - $$i >> debian/control.tmp; \ - echo >> debian/control.tmp; \ - done + if grep -q "{variant:" $$i; then \ + variant_provides="$(VARIANT_PROVIDES)"; \ + $(foreach variant,$(variants),$(variant_payload)) \ + else \ + cat $$i; \ + echo ""; \ + fi; \ + done | sed \ + -e 's/@SERIES@/$(SERIES)/g' \ + -e 's/@kernel-abi-version@/$(KERNEL_ABI_VERSION)/g' \ + -e 's/@META_SOURCE@/$(SOURCE)/g' \ + -e 's/@KERNEL_SOURCE@/$(KERNEL_SOURCE)/g' \ + >$@.tmp rm -f $@ - mv debian/control.tmp $@ + mv $@.tmp $@ .PHONY: debian/control