From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Craven Subject: [PATCH 12/17] gnu: make-linux-libre: Add extra-version parameter. Date: Fri, 9 Sep 2016 14:34:21 +0200 Message-ID: <20160909123426.18499-12-david@craven.ch> References: <20160909013641.GA9202@jasmine> <20160909123426.18499-1-david@craven.ch> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52692) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biL1G-0000G3-KO for guix-devel@gnu.org; Fri, 09 Sep 2016 08:34:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1biL1E-0003TS-Qh for guix-devel@gnu.org; Fri, 09 Sep 2016 08:34:57 -0400 Received: from so254-10.mailgun.net ([198.61.254.10]:34828) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biL1D-0003Jv-Je for guix-devel@gnu.org; Fri, 09 Sep 2016 08:34:56 -0400 In-Reply-To: <20160909123426.18499-1-david@craven.ch> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/linux.scm (make-linux-libre): Add extra-version option. --- gnu/packages/linux.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 6771bd2..f2e6887 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -274,12 +274,15 @@ for SYSTEM and optionally VARIANT, or #f if there is no such configuration." (define* (make-linux-libre version source #:key + (extra-version #f) (configuration-file #f) (defconfig "defconfig") (additional-configuration %default-additional-kernel-configuration)) (package - (name "linux-libre") + (name (if extra-version + (string-append "linux-libre-" extra-version) + "linux-libre")) (version version) (source source) (build-system gnu-build-system) @@ -314,6 +317,8 @@ for SYSTEM and optionally VARIANT, or #f if there is no such configuration." (setenv "CROSS_COMPILE" (string-append target "-")) (format #t "`CROSS_COMPILE' set to `~a'~%" (getenv "CROSS_COMPILE")))) + (setenv "EXTRA_VERSION" ,extra-version) + (let ((build (assoc-ref %standard-phases 'build)) (config (assoc-ref inputs "kconfig"))) -- 2.9.0