From patchwork Wed Nov 4 22:30:49 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: maximilian attems X-Patchwork-Id: 57792 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 nA4MViMe026637 for ; Wed, 4 Nov 2009 22:31:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755931AbZKDWbi (ORCPT ); Wed, 4 Nov 2009 17:31:38 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756719AbZKDWbi (ORCPT ); Wed, 4 Nov 2009 17:31:38 -0500 Received: from baikonur.stro.at ([213.239.196.228]:43475 "EHLO baikonur.stro.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755931AbZKDWbh (ORCPT ); Wed, 4 Nov 2009 17:31:37 -0500 Received: from dual (77.116.110.6.wireless.dyn.drei.com [77.116.110.6]) by baikonur.stro.at (Postfix) with ESMTP id 7D3945C00A; Wed, 4 Nov 2009 23:25:29 +0100 (CET) Received: by dual (Postfix, from userid 1000) id 0EAFA240CA; Wed, 4 Nov 2009 23:31:15 +0100 (CET) From: maximilian attems To: linux-kbuild@vger.kernel.org Cc: Sam Ravnborg , maximilian attems Subject: [PATCH] deb-pkg: Make deb-pkg generate a seperate linux-libc-dev deb Date: Wed, 4 Nov 2009 23:30:49 +0100 Message-Id: <1257373849-25557-1-git-send-email-max@stro.at> X-Mailer: git-send-email 1.6.5 X-Virus-Scanned: by Amavis (ClamAV) at stro.at Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 8b357b0..fbd1994 100644 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -38,17 +38,20 @@ else fi tmpdir="$objtree/debian/tmp" fwdir="$objtree/debian/fwtmp" +headerdir="$objtree/debian/headertmp" packagename=linux-image-$version fwpackagename=linux-firmware-image +headerpackagename=linux-libc-dev if [ "$ARCH" = "um" ] ; then packagename=user-mode-linux-$version fi # Setup the directory structure -rm -rf "$tmpdir" "$fwdir" +rm -rf "$tmpdir" "$fwdir" "$headerdir" mkdir -p "$tmpdir/DEBIAN" "$tmpdir/lib" "$tmpdir/boot" "$tmpdir/usr/share/doc/$packagename" mkdir -p "$fwdir/DEBIAN" "$fwdir/lib" "$fwdir/usr/share/doc/$fwpackagename" +mkdir -p "$headerdir/DEBIAN" "$headerdir/usr" "$headerdir/usr/share/doc/$headerpackagename" if [ "$ARCH" = "um" ] ; then mkdir -p "$tmpdir/usr/lib/uml/modules/$version" "$tmpdir/usr/bin" fi @@ -77,6 +80,9 @@ if grep -q '^CONFIG_MODULES=y' .config ; then fi fi +make headers_check +make headers_install INSTALL_HDR_PATH="$headerdir/usr" + # Install the maintainer scripts # Note: hook scripts under /etc/kernel are also executed by official Debian # kernel packages, as well as kernel packages built using make-kpkg @@ -198,6 +204,18 @@ EOF create_package "$fwpackagename" "$fwdir" fi +cat <> debian/control + +Package: $headerpackagename +Section: devel +Provides: linux-kernel-headers +Architecture: any +Description: Linux support headers for userspace development + This package provides userspaces headers from the Linux kernel. These headers + are used by the installed headers for GNU glibc and other system libraries. +EOF + +create_package "$headerpackagename" "$headerdir" create_package "$packagename" "$tmpdir" exit 0