From patchwork Sat Jan 1 15:44:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: maximilian attems X-Patchwork-Id: 443191 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p01FiVQ0000702 for ; Sat, 1 Jan 2011 15:44:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750913Ab1AAPo3 (ORCPT ); Sat, 1 Jan 2011 10:44:29 -0500 Received: from vostochny.stro.at ([78.47.22.85]:39699 "EHLO vostochny.stro.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750845Ab1AAPo2 (ORCPT ); Sat, 1 Jan 2011 10:44:28 -0500 Received: from stro.at (77.119.154.254.wireless.dyn.drei.com [77.119.154.254]) by vostochny.stro.at (Postfix) with ESMTPA id 20D70C05C; Sat, 1 Jan 2011 15:44:27 +0000 (UTC) Received: by stro.at (Postfix, from userid 1000) id 1F437205DE; Sat, 1 Jan 2011 16:44:26 +0100 (CET) From: maximilian attems To: linux-kbuild@vger.kernel.org Cc: Michal Marek , maximilian attems Subject: [PATCH] deb-pkg: Make deb-pkg generate a seperate linux-libc-dev deb Date: Sat, 1 Jan 2011 16:44:13 +0100 Message-Id: <1293896653-17947-1-git-send-email-max@stro.at> X-Mailer: git-send-email 1.7.2.3 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Sat, 01 Jan 2011 15:44:31 +0000 (UTC) diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 5fc1e6f..8c1f8d4 100644 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -77,20 +77,24 @@ fi tmpdir="$objtree/debian/tmp" fwdir="$objtree/debian/fwtmp" hdrdir="$objtree/debian/hdrtmp" +headerdir="$objtree/debian/headertmp" packagename=linux-image-$version fwpackagename=linux-firmware-image hdrpackagename=linux-headers-$version +headerpackagename=linux-libc-dev if [ "$ARCH" = "um" ] ; then packagename=user-mode-linux-$version fi # Setup the directory structure -rm -rf "$tmpdir" "$fwdir" "$hdrdir" +rm -rf "$tmpdir" "$fwdir" "$hdrdir" "$headerdir" mkdir -m 755 -p "$tmpdir/DEBIAN" mkdir -p "$tmpdir/lib" "$tmpdir/boot" "$tmpdir/usr/share/doc/$packagename" mkdir -m 755 -p "$fwdir/DEBIAN" mkdir -p "$fwdir/lib" "$fwdir/usr/share/doc/$fwpackagename" +mkdir -m 755 -p "$headerdir/DEBIAN" +mkdir -p "$headerdir/usr/share/doc/$headerpackagename" if [ "$ARCH" = "um" ] ; then mkdir -p "$tmpdir/usr/lib/uml/modules/$version" "$tmpdir/usr/bin" fi @@ -121,6 +125,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 @@ -267,6 +274,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