From patchwork Wed Apr 1 19:43:34 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frans Pop X-Patchwork-Id: 15743 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n31Ji70Z012949 for ; Wed, 1 Apr 2009 19:44:08 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933662AbZDATnk (ORCPT ); Wed, 1 Apr 2009 15:43:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S934113AbZDATnk (ORCPT ); Wed, 1 Apr 2009 15:43:40 -0400 Received: from Cpsmtpm-eml106.kpnxchange.com ([195.121.3.10]:58302 "EHLO CPSMTPM-EML106.kpnxchange.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934097AbZDATnj (ORCPT ); Wed, 1 Apr 2009 15:43:39 -0400 Received: from aragorn.fjphome.nl ([84.85.147.182]) by CPSMTPM-EML106.kpnxchange.com with Microsoft SMTPSVC(7.0.6001.18000); Wed, 1 Apr 2009 21:43:36 +0200 To: linux-kbuild@vger.kernel.org Subject: [PATCH 4/5] deb-pkg: allow to specify a custom revision for .deb packages Cc: linux-kernel@vger.kernel.org, Sam Ravnborg Content-Disposition: inline From: Frans Pop Date: Wed, 1 Apr 2009 21:43:34 +0200 MIME-Version: 1.0 Message-Id: <200904012143.36217.elendil@planet.nl> X-OriginalArrivalTime: 01 Apr 2009 19:43:36.0844 (UTC) FILETIME=[262B2CC0:01C9B302] Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org Allow to specify a custom revision for the generated .deb by exporting the environment variable KDEB_PKGVERSION. Signed-off-by: Frans Pop --- Hit "send" too early on this one :-( -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/scripts/package/builddeb b/scripts/package/builddeb index c9a4dcd..1b8820f 100644 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -14,6 +14,11 @@ set -e # Some variables and settings used throughout the script version=$KERNELRELEASE revision=$(cat .version) +if [ -n "$KDEB_PKGVERSION" ]; then + packageversion=$version-$revision +else + packageversion=$KDEB_PKGVERSION +fi tmpdir="$objtree/debian/tmp" fwdir="$objtree/debian/fwtmp" packagename=linux-$version @@ -76,7 +81,7 @@ done name="Kernel Compiler <$(id -nu)@$(hostname -f)>" # Generate a simple changelog template cat < debian/changelog -linux ($version-$revision) unstable; urgency=low +linux ($packageversion) unstable; urgency=low * Custom built Linux kernel.