From patchwork Fri Sep 22 20:24:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 9967047 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6B5806020C for ; Fri, 22 Sep 2017 20:24:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5CBB22966C for ; Fri, 22 Sep 2017 20:24:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5144129698; Fri, 22 Sep 2017 20:24:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AE4B82966C for ; Fri, 22 Sep 2017 20:24:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751871AbdIVUYM (ORCPT ); Fri, 22 Sep 2017 16:24:12 -0400 Received: from mout.gmx.net ([212.227.15.19]:52309 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751845AbdIVUYL (ORCPT ); Fri, 22 Sep 2017 16:24:11 -0400 Received: from ls3530.fritz.box ([91.36.203.180]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MYP57-1dqh771DgP-00VB1t; Fri, 22 Sep 2017 22:24:04 +0200 Date: Fri, 22 Sep 2017 22:24:02 +0200 From: Helge Deller To: linux-parisc@vger.kernel.org, James Bottomley , John David Anglin Subject: [PATCH] parisc: Reintroduce option to gzip-compress the kernel Message-ID: <20170922202402.GA21262@ls3530.fritz.box> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.0 (2017-09-02) X-Provags-ID: V03:K0:UiyqjhxSMffTKenRuOzpUhIxqSDnckBp2SArLH/lR3LR56DVm2z 1xfBEHzXbFrsYzY3VxlPs71bA6sJ3NYoDNlj63pKPlGS5LHPraY8I3qRSdqk/XqTISCyHiR kCsINKvqNi8h9OpfAlqI6BF7nM7tsbW5hoG8fPCvxFOavcyWBA1zafYSx3DFv49f48u2RlE jbDYbnh3QitSKmbBL69cg== X-UI-Out-Filterresults: notjunk:1; V01:K0:Sv1wK8nH0gw=:UHgD3Iw7GJdTXrxbWs+/dG l7Y6s+lFyq6PxLrEYiAygdVz1+6dlv0sIn0oTQZfBvC2VXmpC7vNO/GPwV3aSt6PR3iHhD3MF 2OzvSHUE439f/yAueo2PXYY6JHUfWWNxEvWGpK6L7kzHiAlp5dWXmdJDWw7aDUuP81cpp5Oab cSW/W/LLcBISOwJq2o6OpH21fmqO6b4X6/67DInFh0tLj1WZNbUl6zsn9MDCg7kXGZiVhijkb YUDinzOFdfftvgYZ3Y3WDpCqRhhPfWVbefakEvzVriRPBQlFaj61w4Cop8WHQcZBPNE1CPN3y OoWP3ciCxzrjCZ0FFS5swp5InS+RvuuDvbD3DkqC+BIkY1BzRBsJdJCp/0EdxUx+LgoFQNrD9 YfBczyRP7nIJAaX1mYx46yRAT4bqq5njYcgugUs3jhs9e51yVDHMoPT9E9Z5T5UgfJgS1Y8Jq fGFopWASyuHSQRan63PIbcra0/9M9dyE8W82CW0AUv+xF53SiBDbxDesebCRzq4WVmysGoFx9 w2edOG1sgj3O3GDnjvBeUOVFbXLaP0F4aSQqeeUlkyeiGyODFpckQpMnEgRqRhkpZZCpPQklK aEMxq5pVWMYKdtESYEJcL2B27kODGevis699V8fXx0/RHJoP0iuH5CB4No+yQ7F2eOUtrc05d TeXzZ1KaH7D17D/b467daQbbdIKGNwy9U+EqV7FrT8Uk8ZPFdWTKogTdE0HrxVqF8xjti89bd N0dHbNBkw+QaevmSC46O0L8ptAU3lMZ7xZMAeSdKF69FfyT5Q9SY1drOhwHry/DpOii11pRUB Qx9I3AJQ3SOyTiLqmpmQAgRYXtvLQ== Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP By adding the feature to build the kernel as self-extracting executeable, the possibility to simply compress the kernel with gzip was lost. This patch now reintroduces this possibilty again and leaves it up to the user to decide how the kernel should be built. The palo bootloader is able to natively load both formats. Signed-off-by: Helge Deller --- To unsubscribe from this list: send the line "unsubscribe linux-parisc" 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/arch/parisc/Kconfig b/arch/parisc/Kconfig index bb8ed34024ef..cce21a159fe7 100644 --- a/arch/parisc/Kconfig +++ b/arch/parisc/Kconfig @@ -258,6 +258,18 @@ config PARISC_PAGE_SIZE_64KB endchoice +config PARISC_SELF_EXTRACT + bool "Build kernel as self-extracting executable" + default y + help + Say Y if you want to build the parisc kernel as a kind of + self-extracting executable. + + If you say N here, the kernel will be compressed with gzip + which can be loaded by the palo bootloader directly too. + + If you don't know what to do here, say Y. + config SMP bool "Symmetric multi-processing support" ---help--- diff --git a/arch/parisc/Makefile b/arch/parisc/Makefile index 58fae5d2449d..01946ebaff72 100644 --- a/arch/parisc/Makefile +++ b/arch/parisc/Makefile @@ -129,8 +129,13 @@ Image: vmlinux bzImage: vmlinux $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ +ifdef CONFIG_PARISC_SELF_EXTRACT vmlinuz: bzImage $(OBJCOPY) $(boot)/bzImage $@ +else +vmlinuz: vmlinux + @gzip -cf -9 $< > $@ +endif install: $(CONFIG_SHELL) $(src)/arch/parisc/install.sh \