From patchwork Fri Aug 5 12:12:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 656186 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3s5Qrg0Xx5z9snm for ; Fri, 5 Aug 2016 22:21:07 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=ZO9e6H61; dkim-atps=neutral Received: from ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3s5Qrf6NmbzDqdt for ; Fri, 5 Aug 2016 22:21:06 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=ZO9e6H61; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from mail-pf0-x241.google.com (mail-pf0-x241.google.com [IPv6:2607:f8b0:400e:c00::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3s5QgL4fmRzDqX8 for ; Fri, 5 Aug 2016 22:13:02 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=ZO9e6H61; dkim-atps=neutral Received: by mail-pf0-x241.google.com with SMTP id y134so20071830pfg.3 for ; Fri, 05 Aug 2016 05:13:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=GKe6YdVFoNJXBcwe/oLnj3g1oAzHPRD860qCmimFMSM=; b=ZO9e6H61uvsC0WQjGbk9zkIRR/NqcmOMIF0uZ0MZxx2XMl34kBsacz4HQr2K5s2BlY 5R5KhxExigOxwTrWZsIcaphc5nx5NG+2Dr9zhwCyIcl2ibDAfojxdK0dG1dg2xxdgbfV TIy3PcLaSu9AH9bFsuo2gNANrx2bjjx4Gu7jKWW52ELtPOlL+DmZFsQg2KW4lfCuBteS HWgfWFmddl4D6dnVSvrWcjihN5/sW/eyyvHz/Bs6VyjZBg69u+mWRnshungWvnuEQ6dh wmVnvsFvj3pWrxH8b1R+rdt124CxdPaVfOmOj3HsCndU46XUtReVfgk/6As0EtYForvU R7vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=GKe6YdVFoNJXBcwe/oLnj3g1oAzHPRD860qCmimFMSM=; b=FGjzX0fNjWjSjc1K+ET/sWIq7+KViTl4AFf0ayacSI7hWkjpFFIinEnblfznZM8IFz RpZ3P61+ecYM3VRvYDxPzBj4iMWxtLYpqH/n4bbbb6DDIjeazK6+j6dDJycvbV6ZaMBz osjALCWDNS9GGi604xAxXBQqPy0K/HpSzirv6j2yN8K2HseNFUMzT57UO8uwXaz2cSIN D87FHyNo7AeiIe1vpsEc7bfNRncc5dJsYu9UtSnyQ6ZCF3sGHgt7WIkVL6VzTFzugTqp BEVx1jLx0UviwHDlmNUbnJPCMwzXsi1N3yn4gHbG6Ybn7DqWs+4M9CZiA0uTSoHdnEd6 vbhQ== X-Gm-Message-State: AEkooutLBbREEHSegIsT3Zmkftvsg6iQsMdNo4rOJjizQpGRVVr70EWQofXhviy9tmat/A== X-Received: by 10.98.21.131 with SMTP id 125mr134932675pfv.92.1470399180980; Fri, 05 Aug 2016 05:13:00 -0700 (PDT) Received: from roar.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id m65sm27669685pfg.79.2016.08.05.05.12.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Aug 2016 05:13:00 -0700 (PDT) From: Nicholas Piggin To: linux-kbuild@vger.kernel.org Subject: [PATCH 4/5] powerpc: switch to using thin archives Date: Fri, 5 Aug 2016 22:12:02 +1000 Message-Id: <1470399123-8455-5-git-send-email-npiggin@gmail.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1470399123-8455-1-git-send-email-npiggin@gmail.com> References: <1470399123-8455-1-git-send-email-npiggin@gmail.com> X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arch@vger.kernel.org, Stephen Rothwell , Arnd Bergmann , Nicolas Pitre , Alan Modra , Nicholas Piggin , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" From: Stephen Rothwell Some change to the way we invoke ar is required so it can be used by scripts/link-vmlinux.sh Signed-off-by: Stephen Rothwell Signed-off-by: Nicholas Piggin --- arch/powerpc/Makefile | 6 ++++-- arch/powerpc/platforms/Kconfig.cputype | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index 709a22a..160837c 100644 --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile @@ -23,7 +23,8 @@ CROSS32AR := $(CROSS32_COMPILE)ar ifeq ($(HAS_BIARCH),y) ifeq ($(CROSS32_COMPILE),) CROSS32CC := $(CC) -m32 -CROSS32AR := GNUTARGET=elf32-powerpc $(AR) +CROSS32AR := $(AR) +KBUILD_ARFLAGS += --target elf32-powerpc endif endif @@ -93,7 +94,8 @@ ifeq ($(HAS_BIARCH),y) override AS += -a$(CONFIG_WORD_SIZE) override LD += -m elf$(CONFIG_WORD_SIZE)$(LDEMULATION) override CC += -m$(CONFIG_WORD_SIZE) -override AR := GNUTARGET=elf$(CONFIG_WORD_SIZE)-$(GNUTARGET) $(AR) +override AR := $(AR) +KBUILD_ARFLAGS += --target elf$(CONFIG_WORD_SIZE)-$(GNUTARGET) endif LDFLAGS_vmlinux-y := -Bstatic diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype index 77e9b8d..3c77091 100644 --- a/arch/powerpc/platforms/Kconfig.cputype +++ b/arch/powerpc/platforms/Kconfig.cputype @@ -2,6 +2,7 @@ config PPC64 bool "64-bit kernel" default n select HAVE_VIRT_CPU_ACCOUNTING + select THIN_ARCHIVES select ZLIB_DEFLATE help This option selects whether a 32-bit or a 64-bit kernel