Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932097Ab1EQRhx (ORCPT ); Tue, 17 May 2011 13:37:53 -0400 Received: from outcampmail001.snc4.facebook.com ([66.220.144.159]:58741 "EHLO mx-out.facebook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755920Ab1EQRht (ORCPT ); Tue, 17 May 2011 13:37:49 -0400 From: Arun Sharma To: Michal Marek , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Arun Sharma Subject: [PATCH 2/6] kbuild: Add a kernel-devel package Date: Tue, 17 May 2011 10:36:15 -0700 Message-Id: <1305653779-3445-2-git-send-email-asharma@fb.com> X-Mailer: git-send-email 1.7.4 In-Reply-To: <1305653779-3445-1-git-send-email-asharma@fb.com> References: <1305653779-3445-1-git-send-email-asharma@fb.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1343 Lines: 42 Useful for building modules without having kernel sources Signed-off-by: Arun Sharma --- scripts/package/mkspec | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/scripts/package/mkspec b/scripts/package/mkspec index b820677..81b6057 100755 --- a/scripts/package/mkspec +++ b/scripts/package/mkspec @@ -47,6 +47,14 @@ echo "" echo "%description" echo "The Linux Kernel, the operating system core itself" echo "" +echo "%package devel" +echo "Summary: Development package for building kernel modules to match the $__KERNELRELEASE kernel" +echo "Group: System Environment/Kernel" +echo "AutoReqProv: no" +echo "%description -n kernel-devel" +echo "This package provides kernel headers and makefiles sufficient to build modules" +echo "against the $__KERNELRELEASE kernel package." +echo "" if ! $PREBUILT; then echo "%prep" @@ -118,3 +126,7 @@ echo "/lib/modules/$KERNELRELEASE" echo "/lib/firmware" echo "/boot/*" echo "" +echo "%files devel" +echo '%defattr (-, root, root)' +echo "/usr/src/kernels/$KERNELRELEASE" +echo "" -- 1.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/