From patchwork Thu Aug 11 10:16:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 9274983 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 064F560231 for ; Thu, 11 Aug 2016 10:17:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E9CF1284DE for ; Thu, 11 Aug 2016 10:17:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DDC60285E9; Thu, 11 Aug 2016 10:17: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.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID 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 444E8284DE for ; Thu, 11 Aug 2016 10:17:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752801AbcHKKRM (ORCPT ); Thu, 11 Aug 2016 06:17:12 -0400 Received: from mail-pa0-f67.google.com ([209.85.220.67]:36729 "EHLO mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750797AbcHKKRL (ORCPT ); Thu, 11 Aug 2016 06:17:11 -0400 Received: by mail-pa0-f67.google.com with SMTP id ez1so4543473pab.3; Thu, 11 Aug 2016 03:17:11 -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=BFbbfad7zIL2en+qpxDZmcumbWzmweaM2jaBhcR9tWg=; b=sE5kuwEAKg9EowqyuQfwtrhqN/RJmgmBSpJd29wkFqehxraQeY3AH23wLG+1f1K25L RMUjidH3EHBtsSFCiHIxt2ZK1KwDCp0n6sZnts6UCFRt/YSXaShipe14XqIO4xSTDVNY pT58VFrsTNQ9cx/VJj8y+fsFRLhkiZfU7134+A5nHdR76/PSrch5cLAxY4HyUZLABh/V waSN0C1/8mXBuNa5S3/+DGUANr8J+36XcK4kzWfyqUlKK+JDlAg1lfyfin9GmPY7vxQ/ 0URlwvdCy123Z/1Ffo9nmIVgAM4ntBwFoxZN+6Rc/qxO+nTZK9hmXdXm3PzTH/vZb2Vs iVPg== 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=BFbbfad7zIL2en+qpxDZmcumbWzmweaM2jaBhcR9tWg=; b=j7WXSVWuSb/MCuExLdxQkrb0PVU9uepcrDz9waiwkDmDXiVzJJrDeQiDhK3oYDcBa2 2Mt4TidDhdcos/rIrG1LPr5r3eLwVsUnEfF/kJcTeGa2cqX4Byb+0JS++ZbtLX2itiiH 8ypzqZUpggx0m/Lb92qLQrX4x6NRHPfp+BJsbEletAflCwqlaRspXIUV+P18eBpNEYtu gVxCFrqrCdqdNdbLIGaSW8JXbDTca1CWFfwUOyh7a1FEShVwRMJZEP+0EcuIswyhag4I dkUNhv1qLFzrfeoC++dco1KBGpndTpivVxRE272tqIPhs1Ld8trwZAuOT/TdcycUkEvN VJqA== X-Gm-Message-State: AEkoouvnvkGVaPg8Ae/YN7obS3X0y+lafrgE155H0EXJ67Aq0mQJ+brG3Ooo20c7HJcBEw== X-Received: by 10.66.153.163 with SMTP id vh3mr15908037pab.0.1470910631271; Thu, 11 Aug 2016 03:17:11 -0700 (PDT) Received: from roar.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id ao6sm4028351pac.8.2016.08.11.03.17.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Aug 2016 03:17:10 -0700 (PDT) From: Nicholas Piggin To: linux-kbuild@vger.kernel.org Cc: Nicholas Piggin , linux-arch@vger.kernel.org, Michal Marek , Sam Ravnborg , Stephen Rothwell , Arnd Bergmann , Nicolas Pitre , Segher Boessenkool , Alan Modra Subject: [PATCH 4/6] powerpc: switch to using thin archives Date: Thu, 11 Aug 2016 20:16:18 +1000 Message-Id: <1470910580-18458-5-git-send-email-npiggin@gmail.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1470910580-18458-1-git-send-email-npiggin@gmail.com> References: <1470910580-18458-1-git-send-email-npiggin@gmail.com> Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 ca25454..04a1332 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 f32edec..b5fc6cb 100644 --- a/arch/powerpc/platforms/Kconfig.cputype +++ b/arch/powerpc/platforms/Kconfig.cputype @@ -1,6 +1,7 @@ config PPC64 bool "64-bit kernel" default n + select THIN_ARCHIVES select ZLIB_DEFLATE help This option selects whether a 32-bit or a 64-bit kernel