From patchwork Mon Jun 29 10:45:59 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frans Pop X-Patchwork-Id: 29268 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@bilbo.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ozlabs.org (ozlabs.org [203.10.76.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.ozlabs.org", Issuer "CA Cert Signing Authority" (verified OK)) by bilbo.ozlabs.org (Postfix) with ESMTPS id 91AB6B707E for ; Mon, 29 Jun 2009 20:46:04 +1000 (EST) Received: by ozlabs.org (Postfix) id 80C9BDDD1C; Mon, 29 Jun 2009 20:46:04 +1000 (EST) Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id 0EB51DDD1B for ; Mon, 29 Jun 2009 20:46:04 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750893AbZF2Kp6 (ORCPT ); Mon, 29 Jun 2009 06:45:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752167AbZF2Kp6 (ORCPT ); Mon, 29 Jun 2009 06:45:58 -0400 Received: from Cpsmtpm-eml107.kpnxchange.com ([195.121.3.11]:51492 "EHLO CPSMTPM-EML107.kpnxchange.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750893AbZF2Kp5 (ORCPT ); Mon, 29 Jun 2009 06:45:57 -0400 Received: from aragorn.fjphome.nl ([84.85.147.182]) by CPSMTPM-EML107.kpnxchange.com with Microsoft SMTPSVC(7.0.6001.18000); Mon, 29 Jun 2009 12:46:00 +0200 From: Frans Pop To: sparclinux@vger.kernel.org Subject: [PATCH] sparc64: build compressed image (zImage) by default Date: Mon, 29 Jun 2009 12:45:59 +0200 User-Agent: KMail/1.9.9 Cc: linux-kbuild@vger.kernel.org, Jurij Smakov MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200906291245.59887.elendil@planet.nl> X-OriginalArrivalTime: 29 Jun 2009 10:46:00.0561 (UTC) FILETIME=[CAB0BE10:01C9F8A6] Sender: sparclinux-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: sparclinux@vger.kernel.org From: Jurij Smakov Subject: sparc64: build compressed image (zImage) by default Besides creating the uncompressed vmlinux image for sparc64, also create a compressed zImage. This is more consistent with other architectures and required to make the 'deb-pkg' target work. Signed-off-by: Jurij Smakov Signed-off-by: Frans Pop --- The patch was taken from the Debian kernel package. It was written by Jurij. I added his Signed-off-by with his permission. The patch was tested to work during my recent tests for the cmd64x issue. -- To unsubscribe from this list: send the line "unsubscribe sparclinux" 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/sparc/Makefile b/arch/sparc/Makefile index 2003ded..2adc5ea 100644 --- a/arch/sparc/Makefile +++ b/arch/sparc/Makefile @@ -91,6 +91,9 @@ endif boot := arch/sparc/boot +# Default target +all: zImage + image zImage tftpboot.img vmlinux.aout: vmlinux $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ diff --git a/arch/sparc/boot/Makefile b/arch/sparc/boot/Makefile index 1ff0fd9..97e3feb 100644 --- a/arch/sparc/boot/Makefile +++ b/arch/sparc/boot/Makefile @@ -79,6 +79,9 @@ $(obj)/image: vmlinux FORCE $(call if_changed,strip) @echo ' kernel: $@ is ready' +$(obj)/zImage: $(obj)/image + $(call if_changed,gzip) + $(obj)/tftpboot.img: $(obj)/image $(obj)/piggyback_64 System.map $(ROOT_IMG) FORCE $(call if_changed,elftoaout) $(call if_changed,piggy)