From patchwork Sat Apr 18 22:05:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Borislav Petkov X-Patchwork-Id: 6237771 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E92979F1C4 for ; Sat, 18 Apr 2015 22:05:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 259B1203A4 for ; Sat, 18 Apr 2015 22:05:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 19F172035B for ; Sat, 18 Apr 2015 22:05:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750879AbbDRWFS (ORCPT ); Sat, 18 Apr 2015 18:05:18 -0400 Received: from mail.skyhub.de ([78.46.96.112]:50556 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750818AbbDRWFR (ORCPT ); Sat, 18 Apr 2015 18:05:17 -0400 X-Virus-Scanned: Nedap ESD1 at mail.skyhub.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alien8.de; s=alien8; t=1429394715; bh=TCZjBGNcXhHFoZZtoy3UJecmZ96LNinYYvzXWvwkgPM=; h=From:To:Cc:Subject:Date:Message-Id; b=AH+sTdcRBlXJyvcMSwIwjtSG2kI p0g1bWs87XeBHAywv3iwE/eqaPusLjCE2ncQipYtau81xNM2yd7OQZfXKsldGiKZlPX WCKDP26dQbvNUn/X9uVclcQnSY3Yrva57mpaY+09WFuoHOcqxZ7z8kSUfaoAJ3dz/hX sIt0Oz0Gak= Received: from mail.skyhub.de ([127.0.0.1]) by localhost (door.skyhub.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id V7-q3MRQ1EBl; Sun, 19 Apr 2015 00:05:15 +0200 (CEST) Received: from pd.tnic (p5DDC7CCD.dip0.t-ipconnect.de [93.220.124.205]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 604031D99B4; Sun, 19 Apr 2015 00:05:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alien8.de; s=alien8; t=1429394715; bh=TCZjBGNcXhHFoZZtoy3UJecmZ96LNinYYvzXWvwkgPM=; h=From:To:Cc:Subject:Date:Message-Id; b=AH+sTdcRBlXJyvcMSwIwjtSG2kI p0g1bWs87XeBHAywv3iwE/eqaPusLjCE2ncQipYtau81xNM2yd7OQZfXKsldGiKZlPX WCKDP26dQbvNUn/X9uVclcQnSY3Yrva57mpaY+09WFuoHOcqxZ7z8kSUfaoAJ3dz/hX sIt0Oz0Gak= Received: by pd.tnic (Postfix, from userid 1000) id C5630160964; Sun, 19 Apr 2015 00:05:14 +0200 (CEST) From: Borislav Petkov To: LKML Cc: Michal Marek , linux-kbuild@vger.kernel.org Subject: [PATCH] kbuild/mkspec: Simplify vmlinux.bz2 creation Date: Sun, 19 Apr 2015 00:05:14 +0200 Message-Id: <1429394714-9028-1-git-send-email-bp@alien8.de> X-Mailer: git-send-email 2.3.5 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Borislav Petkov No need for the intermediary vmlinux.orig - bzip2 can keep the original files used for compression with --keep. Signed-off-by: Borislav Petkov Cc: Michal Marek Cc: linux-kbuild@vger.kernel.org --- scripts/package/mkspec | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/package/mkspec b/scripts/package/mkspec index d9ab94b17de0..89f9669d4f00 100755 --- a/scripts/package/mkspec +++ b/scripts/package/mkspec @@ -111,10 +111,8 @@ echo 'cp System.map $RPM_BUILD_ROOT'"/boot/System.map-$KERNELRELEASE" echo 'cp .config $RPM_BUILD_ROOT'"/boot/config-$KERNELRELEASE" echo "%ifnarch ppc64" -echo 'cp vmlinux vmlinux.orig' -echo 'bzip2 -9 vmlinux' +echo 'bzip2 -9 --keep vmlinux' echo 'mv vmlinux.bz2 $RPM_BUILD_ROOT'"/boot/vmlinux-$KERNELRELEASE.bz2" -echo 'mv vmlinux.orig vmlinux' echo "%endif" if ! $PREBUILT; then