From patchwork Wed Oct 19 03:15:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 683951 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 3szHT73trFz9snm for ; Wed, 19 Oct 2016 14:28:11 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=w4ZY9XP9; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3szHT72HVCzDvZY for ; Wed, 19 Oct 2016 14:28:11 +1100 (AEDT) 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=w4ZY9XP9; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from mail-pf0-x242.google.com (mail-pf0-x242.google.com [IPv6:2607:f8b0:400e:c00::242]) (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 3szHCk13TgzDt1h for ; Wed, 19 Oct 2016 14:16:34 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=w4ZY9XP9; dkim-atps=neutral Received: by mail-pf0-x242.google.com with SMTP id r16so1084980pfg.3 for ; Tue, 18 Oct 2016 20:16:34 -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=t4tI1+kiWL1dlWTj27DQ8xgG+3tfppSguFkDHunnAiU=; b=w4ZY9XP9TBEWGyECS1dtVapLYnlgqBzEZn39Ws9s6pX6yPfeTb4jnOH8WLC4x75NDf Sh7diBhrlXaJgpG+U4wnEvm+Nm+m5koMnsMVO9nalTWXnb3XKKAmsnDtqL+9B2c/MAhL SGt62r+jZJ0aQTJtS0bRIsMvI/9YtIk/rwLWPuwg+Zo95dx1WS5jJTX04btcYbQk8ndk d7ESiznOcxiu3BRJVJx46Rw0pPt9PNLKTXEEH3Tvvl3xmiX80ubbwcKwVItjC0VO17wB LQQ1CYGLIAghbRXzKQMJURkWM0re1F/zgJTwYcpuUtwxsjuMQR3nxSixEoqnrsYLC+a4 xMfA== 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=t4tI1+kiWL1dlWTj27DQ8xgG+3tfppSguFkDHunnAiU=; b=AiStHtVxkcxd+tger3VraXyxo+vxx1X5Dl/+wcqnpQg9iJffFCJV34chfp8SYW7kTV 0TgvRB4lRuEtyCmoiaisCTVndT03WAEk5TZuYNreK1naZredO88w0n393yUwWw4TPqoL i4A+ynFKWSEKT2GOkggpZ5P7SIaQNPslSysTlHjc9oweNhpRGtJfuqZorWu780iPxki8 RYvLRfm02+2HqDhxJoEDHIlwBxLvelnMIPMVuAuPXFQu7JBwAw0ImphscvAExXOUYXmP m1aOv01FxtrJTyw09D7tgCypLDJEZoAL4cA5j7Dl2MgFFR9VngoNhUQX0bha7DUtR9Gr i6/Q== X-Gm-Message-State: AA6/9RmNVDDUPK27EQODLlGpV0RD4GcWtM7txr105zT4uLIYni2/fETgU8wmCxGSykXcxg== X-Received: by 10.99.113.25 with SMTP id m25mr5432414pgc.173.1476846992075; Tue, 18 Oct 2016 20:16:32 -0700 (PDT) Received: from roar.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id aa6sm59152924pad.46.2016.10.18.20.16.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Oct 2016 20:16:31 -0700 (PDT) From: Nicholas Piggin To: linuxppc-dev@lists.ozlabs.org Subject: [PATCH 6/7] powerpc: switch to using thin archives if COMPILE_TEST is set Date: Wed, 19 Oct 2016 14:15:59 +1100 Message-Id: <20161019031600.17933-7-npiggin@gmail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161019031600.17933-1-npiggin@gmail.com> References: <20161019031600.17933-1-npiggin@gmail.com> X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stephen Rothwell , Nicholas Piggin Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Enable thin archives build for powerpc when COMPILE_TEST is set. Thin archives are explained in this commit: a5967db9af51a84f5e181600954714a9e4c69f1f This is a gradual way to introduce the option to testers. 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/Kconfig | 1 + arch/powerpc/Makefile | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 65fba4c..00d9e31 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -80,6 +80,7 @@ config ARCH_HAS_DMA_SET_COHERENT_MASK config PPC bool default y + select THIN_ARCHIVES if COMPILE_TEST select ARCH_MIGHT_HAVE_PC_PARPORT select ARCH_MIGHT_HAVE_PC_SERIO select BINFMT_ELF diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index 0fcb47c..fe76cfe 100644 --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile @@ -23,7 +23,7 @@ CROSS32AR := $(CROSS32_COMPILE)ar ifeq ($(HAS_BIARCH),y) ifeq ($(CROSS32_COMPILE),) CROSS32CC := $(CC) -m32 -CROSS32AR := GNUTARGET=elf32-powerpc $(AR) +KBUILD_ARFLAGS += --target=elf32-powerpc endif endif @@ -85,7 +85,7 @@ ifeq ($(HAS_BIARCH),y) override AS += -a$(BITS) override LD += -m elf$(BITS)$(LDEMULATION) override CC += -m$(BITS) -override AR := GNUTARGET=elf$(BITS)-$(GNUTARGET) $(AR) +KBUILD_ARFLAGS += --target=elf$(BITS)-$(GNUTARGET) endif LDFLAGS_vmlinux-y := -Bstatic