Message ID | 1400914905-9594-2-git-send-email-apinski@cavium.com |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCHZN4WEQUCBB7EHQGOAKGQEBSUOYWQ@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f69.google.com (mail-yh0-f69.google.com [209.85.213.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DE67A20F2E for <linaro@patches.linaro.org>; Sat, 24 May 2014 07:02:20 +0000 (UTC) Received: by mail-yh0-f69.google.com with SMTP id i57sf23131892yha.4 for <linaro@patches.linaro.org>; Sat, 24 May 2014 00:02:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:to:to:sender:precedence :list-id:x-original-sender:x-original-authentication-results :mailing-list:list-post:list-help:list-archive:list-unsubscribe; bh=M20VB8CNc9FlTGUXi5Lz+lKpB8Gppm8bm2qyuooZqug=; b=i7VVFK01ejxLzv0szD8m6P9A2v+e9JxcJ5ZjdiQw1nLSD5F58FQ7jY8D2dMaNvF2h/ DH+FK1izSZFhPi3yU5Lg5EXKEtH8x+qyeFlW2DvsEWikAxjQ83wkCuVoLPqp0cka139Y VnS8H4bcDUFoMUa3/wnNN4EMGsSdfczjQwx1JILr2C3212emZ/WoV8ZaShLSh1vXRmss 7nj7MdFAmGvBj6kki03/RxINLfPiYM3M2nr6d0IetwUnHAppEgCnp6MWLvvmYidGmnsl VVm/TKNDzOVRrvyAR9+giW7fnVXrAXmmhgHCB2BaOmBkqyr6Z5FEZ4MNff2P4VXMMnPX lcjw== X-Gm-Message-State: ALoCoQnEJnJGyEofiJfnxN6Yskq5DdbKf8w4bkfKXjubV8ZMdLhaBYDOEAJuMF8hLQIAbyXrjHjd X-Received: by 10.58.207.50 with SMTP id lt18mr3959748vec.1.1400914940728; Sat, 24 May 2014 00:02:20 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.92.44 with SMTP id a41ls2062550qge.72.gmail; Sat, 24 May 2014 00:02:20 -0700 (PDT) X-Received: by 10.58.23.6 with SMTP id i6mr8638725vef.12.1400914940640; Sat, 24 May 2014 00:02:20 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id d3si3067966vck.42.2014.05.24.00.02.20 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 24 May 2014 00:02:20 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id il7so7326409vcb.32 for <patchwork-forward@linaro.org>; Sat, 24 May 2014 00:02:20 -0700 (PDT) X-Received: by 10.220.159.4 with SMTP id h4mr8605300vcx.1.1400914940554; Sat, 24 May 2014 00:02:20 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp87330vcb; Sat, 24 May 2014 00:02:20 -0700 (PDT) X-Received: by 10.68.233.37 with SMTP id tt5mr12015083pbc.154.1400914939810; Sat, 24 May 2014 00:02:19 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pi1si6840504pbb.62.2014.05.24.00.02.19 for <sandeep.tripathy@linaro.org>; Sat, 24 May 2014 00:02:19 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751363AbaEXHCI (ORCPT <rfc822;sandeep.tripathy@linaro.org> + 27 others); Sat, 24 May 2014 03:02:08 -0400 Received: from mail-ig0-f178.google.com ([209.85.213.178]:61659 "EHLO mail-ig0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750845AbaEXHCD (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 24 May 2014 03:02:03 -0400 Received: by mail-ig0-f178.google.com with SMTP id hl10so1517974igb.17 for <linux-kernel@vger.kernel.org>; Sat, 24 May 2014 00:02:02 -0700 (PDT) X-Received: by 10.42.211.205 with SMTP id gp13mr8846649icb.29.1400914922044; Sat, 24 May 2014 00:02:02 -0700 (PDT) Received: from localhost.localdomain (64.2.3.195.ptr.us.xo.net. [64.2.3.195]) by mx.google.com with ESMTPSA id j13sm9993469igf.11.2014.05.24.00.02.01 for <multiple recipients> (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 24 May 2014 00:02:01 -0700 (PDT) Received: from localhost.localdomain (apinskidesktop [127.0.0.1]) by localhost.localdomain (8.14.3/8.14.3/Debian-9.4) with ESMTP id s4O720rZ009686 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Sat, 24 May 2014 00:02:00 -0700 Received: (from apinski@localhost) by localhost.localdomain (8.14.3/8.14.3/Submit) id s4O720YX009685; Sat, 24 May 2014 00:02:00 -0700 From: Andrew Pinski <apinski@cavium.com> To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Andrew Pinski <apinski@cavium.com> Subject: [PATCH 01/24] ARM64: Force LP64 to compile the kernel. Date: Sat, 24 May 2014 00:01:22 -0700 Message-Id: <1400914905-9594-2-git-send-email-apinski@cavium.com> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1400914905-9594-1-git-send-email-apinski@cavium.com> References: <1400914905-9594-1-git-send-email-apinski@cavium.com> To: linux-arm-kernel@lists.infradead.org To: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: apinski@cavium.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index 2fceb71..e9dbd20 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -20,14 +20,18 @@ LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) KBUILD_DEFCONFIG := defconfig KBUILD_CFLAGS += -mgeneral-regs-only +KBUILD_CFLAGS += $(call cc-option,-mabi=lp64) +KBUILD_AFLAGS += $(call cc-option,-mabi=lp64) ifeq ($(CONFIG_CPU_BIG_ENDIAN), y) KBUILD_CPPFLAGS += -mbig-endian AS += -EB LD += -EB +LDFLAGS += -maarch64linuxb else KBUILD_CPPFLAGS += -mlittle-endian AS += -EL LD += -EL +LDFLAGS += -maarch64linux endif comma = ,
Sometimes the compiler is set to default to ILP32 ABI so we want to make sure the kernel can compile in that case. Thanks, Andrew Pinski Signed-off-by: Andrew Pinski <apinski@cavium.com> --- arch/arm64/Makefile | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)