From patchwork Wed May 25 20:31:30 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arun Sharma X-Patchwork-Id: 817492 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p4PKVmVn015200 for ; Wed, 25 May 2011 20:31:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932343Ab1EYUbf (ORCPT ); Wed, 25 May 2011 16:31:35 -0400 Received: from outmail010.snc4.facebook.com ([66.220.144.142]:41830 "EHLO mx-out.facebook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932326Ab1EYUba (ORCPT ); Wed, 25 May 2011 16:31:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; d=fb.com; s=s1024-2011-q2; c=relaxed/simple; q=dns/txt; i=@fb.com; t=1306355490; h=From:Subject:Date:To:MIME-Version:Content-Type; bh=bezmPeW4ezBk+rUbLbh3UT/X13fTAnL1vGLz34f4K5g=; b=H6nKRR5RDl3jiwmvjYz0La9psn3UjDW8R3szMMDoBh4hpsbU5N5RiF5LRJbCAH3k unya/wLpOwAri6rR+kyAnrGjuuJ6Umr9z8hyewFwLOeZ8LjizMuTax1cvXjzAhk7 MGbeudg5VikcGaE0oFi49uzzB1iO0MckeCQC4O3oglY=; Received: from [10.47.65.39] ([10.47.65.39:34248] helo=facebook.com) by 10.30.169.45 (envelope-from ) (ecelerity 2.2.2.45 r(34222M)) with ESMTP id 60/B9-06734-2276DDD4; Wed, 25 May 2011 13:31:30 -0700 Received: from dev1756.snc6.facebook.com (localhost.localdomain [127.0.0.1]) by dev1756.snc6.facebook.com (Postfix) with ESMTP id 86A1D918422; Wed, 25 May 2011 13:31:30 -0700 (PDT) Received: (from asharma@localhost) by dev1756.snc6.facebook.com (8.13.8/8.13.8/Submit) id p4PKVUJi030690; Wed, 25 May 2011 13:31:30 -0700 X-Authentication-Warning: dev1756.snc6.facebook.com: asharma set sender to asharma@fb.com using -f Date: Wed, 25 May 2011 13:31:30 -0700 From: Arun Sharma To: Michal Marek Cc: Arun Sharma , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/6] kbuild: Integrate with new-kernel-pkg Message-ID: <20110525203130.GA29304@dev1756.snc6.facebook.com> References: <1305653779-3445-1-git-send-email-asharma@fb.com> <4DD2D0B3.4070208@suse.cz> <20110517204520.GA21201@dev1756.snc6.facebook.com> <4DD2E9D9.7030207@suse.cz> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4DD2E9D9.7030207@suse.cz> User-Agent: Mutt/1.5.21 (2010-09-15) 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.6 (demeter2.kernel.org [140.211.167.43]); Wed, 25 May 2011 20:31:48 +0000 (UTC) On Tue, May 17, 2011 at 11:34:17PM +0200, Michal Marek wrote: > > Or use /sbin/installkernel and let distros handle it. Updated distro specific patch (not expecting you to apply it). The earlier version was mixed up with kernel-devel patch. -Arun commit cb73fb35a588922344763c075b2fce159df41fc7 Author: Arun Sharma Date: Sun Mar 6 08:08:53 2011 -0800 kbuild: Integrate with new-kernel-pkg Handles mkinitrd, updating the bootloader among other things. Signed-off-by: Arun Sharma --- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/scripts/package/mkspec b/scripts/package/mkspec index ed8b6a8..f5f0cb5 100755 --- a/scripts/package/mkspec +++ b/scripts/package/mkspec @@ -40,6 +40,8 @@ echo "Source: kernel-$__KERNELRELEASE.tar.gz" fi echo "BuildRoot: %{_tmppath}/%{name}-%{PACKAGE_VERSION}-root" +echo "Requires(post): /sbin/new-kernel-pkg" +echo "Requires(preun): /sbin/new-kernel-pkg" echo "Provides: $PROVIDES" echo "%define __spec_install_post /usr/lib/rpm/brp-compress || :" echo "%define debug_package %{nil}" @@ -95,6 +97,14 @@ echo 'mv vmlinux.orig vmlinux' echo "%endif" echo "" +echo "%preun" +echo '/sbin/new-kernel-pkg --rminitrd --rmmoddep --remove '"$KERNELRELEASE"' || exit $?' + +echo "" +echo "%post" +echo '/sbin/new-kernel-pkg --mkinitrd --depmod --install --make-default '"$KERNELRELEASE"' || exit $?' + +echo "" echo "%clean" echo 'rm -rf $RPM_BUILD_ROOT' echo ""