From patchwork Thu Aug 23 12:33:30 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Keng-Yu Lin X-Patchwork-Id: 179621 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id 7EBCD2C00A2 for ; Thu, 23 Aug 2012 22:33:41 +1000 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1T4WbA-00006f-KH; Thu, 23 Aug 2012 12:33:20 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1T4Wb8-00006G-QR for fwts-devel@lists.ubuntu.com; Thu, 23 Aug 2012 12:33:19 +0000 Received: from 1-162-172-137.dynamic.hinet.net ([1.162.172.137] helo=canonical.com) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1T4WbR-0001M7-7f for fwts-devel@lists.ubuntu.com; Thu, 23 Aug 2012 12:33:38 +0000 From: Keng-Yu Lin To: fwts-devel@lists.ubuntu.com Subject: [PATCH v2] uefi: Add fwts-efi-runtime-dkms package Date: Thu, 23 Aug 2012 20:33:30 +0800 Message-Id: <1345725210-7622-1-git-send-email-kengyu@canonical.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1345525950-31564-1-git-send-email-kengyu@canonical.com> References: <1345525950-31564-1-git-send-email-kengyu@canonical.com> X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.13 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: fwts-devel-bounces@lists.ubuntu.com Errors-To: fwts-devel-bounces@lists.ubuntu.com The patch adds the DKMS package for holding the FWTS UEFI runtime service kernel driver. Thanks to Chris for the pacakge description. Thanks-to: Chris Van Hoof Signed-off-by: Keng-Yu Lin Acked-by: Colin Ian King Acked-by: Chris Van Hoof --- debian/control | 10 +++++++++- debian/fwts-efi-runtime-dkms.dkms | 6 ++++++ debian/rules | 17 ++++++++++++++++- 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 debian/fwts-efi-runtime-dkms.dkms create mode 100644 efi_runtime/Makefile diff --git a/efi_runtime/Makefile b/efi_runtime/Makefile new file mode 100644 index 0000000..e69de29 diff --git a/debian/control b/debian/control index 1f93c6a..afe0ef1 100644 --- a/debian/control +++ b/debian/control @@ -4,7 +4,7 @@ Priority: optional Maintainer: Firmware Testing Team Uploaders: Colin King , Keng-Yu Lin , Alex Hung , Chris Van Hoof , Ivan Hu Standards-Version: 3.9.3 -Build-Depends: debhelper (>= 7.0.50~), autoconf, automake, libtool, libpcre3-dev (>= 7.8), libjson0-dev (>= 0.9), flex, bison, hardening-wrapper +Build-Depends: debhelper (>= 7.0.50~), autoconf, automake, libtool, libpcre3-dev (>= 7.8), libjson0-dev (>= 0.9), flex, bison, hardening-wrapper, dkms Package: fwts Architecture: any @@ -52,3 +52,11 @@ Description: Firmware Test Suite frontend interface This is a dialog based interface designed to provide an easy to use method to execute tests via Firmware Test Suite and is also used as the primary interface within Firmware Test Suit live images. + +Package: fwts-efi-runtime-dkms +Architecture: amd64 +Priority: optional +Depends: ${shlibs:Depends}, ${misc:Depends}, dkms, linux-headers-generic | linux-headers +Description: Firmware Test Suite UEFI Runtime Service kernel driver + This package provides the efi_runtime kernel driver in DKMS format, + which is required for accessing UEFI Runtime Services. diff --git a/debian/fwts-efi-runtime-dkms.dkms b/debian/fwts-efi-runtime-dkms.dkms new file mode 100644 index 0000000..685b189 --- /dev/null +++ b/debian/fwts-efi-runtime-dkms.dkms @@ -0,0 +1,6 @@ +PACKAGE_NAME="fwts-efi-runtime-dkms" +PACKAGE_VERSION="#MODULE_VERSION#" +MAKE[0]="make" +BUILT_MODULE_NAME[0]="efi_runtime" +DEST_MODULE_LOCATION[0]="/updates" +AUTOINSTALL="yes" diff --git a/debian/rules b/debian/rules index 4af7a4f..bee26be 100755 --- a/debian/rules +++ b/debian/rules @@ -2,9 +2,24 @@ export DEB_BUILD_HARDENING=1 +DEBVERS := $(shell dpkg-parsechangelog | grep ^Version: | cut -d' ' -f2 \ + | cut -d- -f1) + +VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/[+-].*//' -e 's/~//g') + +DKMS_SRC_DIR := $(CURDIR)/debian/fwts-efi-runtime-dkms/usr/src/fwts-efi-runtime-dkms-$(VERSION) + +override_dh_auto_install: + install -d $(DKMS_SRC_DIR) + cp -a efi_runtime/* $(DKMS_SRC_DIR) + dh_auto_install + override_dh_auto_configure: autoreconf -ivf dh_auto_configure +override_dh_dkms: + dh_dkms -V $(VERSION) + %: - dh $@ + dh $@ --with dkms