From patchwork Mon Jul 21 15:16:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 33984 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f198.google.com (mail-ig0-f198.google.com [209.85.213.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 78EEA20672 for ; Mon, 21 Jul 2014 15:20:18 +0000 (UTC) Received: by mail-ig0-f198.google.com with SMTP id h18sf14803067igc.5 for ; Mon, 21 Jul 2014 08:20:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:cc:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:content-type:content-transfer-encoding; bh=pQvUPPe4z+blTEX36RRlH3CCffxq7DO7KKq/0bsWJEU=; b=BcVKDf7ha9TqzEKn9vzmCaAY10drUyavK7VIWm8G/cW7sMu2B/OovGyTSDVptPAKYQ NGksszfTgqQV14lmmzL422iyB4OcNttILGANLdRA2wllfq0PrNlunzdA68MsKxWftzGE hZ46lde6aepUqlkXclM5wcat70YGFbakT3chOsjFb7Rfc09P5t2mtS47+Eao6Mw8e0Nq JmRE61qDH4SyYsjRwTflDusgPJadwy3FWhUqM895zVqO5lYw/IEjR+x5Mp2E4KNTsKeg KNeMaTtNHLzvzW9rUnfrrziPbt1Y7C2MWZNPxFRbBaWYESZ5eukdqINX+k6vTTX3Vfer kWhQ== X-Gm-Message-State: ALoCoQnrFgQHjdnn9cg6EGG/cvXhgYuKkeLvZ5b8ttM0us68pkzkEFEL975xgWWLVR2RcrVr+gLL X-Received: by 10.182.230.133 with SMTP id sy5mr13336566obc.22.1405956016965; Mon, 21 Jul 2014 08:20:16 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.107.198 with SMTP id h64ls2023640qgf.66.gmail; Mon, 21 Jul 2014 08:20:16 -0700 (PDT) X-Received: by 10.52.37.81 with SMTP id w17mr2392875vdj.95.1405956016493; Mon, 21 Jul 2014 08:20:16 -0700 (PDT) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id f15si11541675vdt.65.2014.07.21.08.20.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Jul 2014 08:20:11 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.174 as permitted sender) client-ip=209.85.220.174; Received: by mail-vc0-f174.google.com with SMTP id la4so12408102vcb.33 for ; Mon, 21 Jul 2014 08:20:11 -0700 (PDT) X-Received: by 10.52.37.81 with SMTP id w17mr2392148vdj.95.1405956011239; Mon, 21 Jul 2014 08:20:11 -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.221.37.5 with SMTP id tc5csp121063vcb; Mon, 21 Jul 2014 08:20:09 -0700 (PDT) X-Received: by 10.66.66.133 with SMTP id f5mr25652224pat.81.1405956008952; Mon, 21 Jul 2014 08:20:08 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id ej14si7284153pdb.390.2014.07.21.08.20.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Jul 2014 08:20:07 -0700 (PDT) Received-SPF: none (google.com: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1X9FMX-000082-SU; Mon, 21 Jul 2014 15:18:49 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X9FLf-0007fU-8L for linux-arm-kernel@bombadil.infradead.org; Mon, 21 Jul 2014 15:17:55 +0000 Received: from mail-wg0-f45.google.com ([74.125.82.45]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X9FLb-0002I4-MA for linux-arm-kernel@lists.infradead.org; Mon, 21 Jul 2014 15:17:53 +0000 Received: by mail-wg0-f45.google.com with SMTP id x12so6583179wgg.4 for ; Mon, 21 Jul 2014 08:17:26 -0700 (PDT) X-Received: by 10.194.71.52 with SMTP id r20mr23140084wju.113.1405955846298; Mon, 21 Jul 2014 08:17:26 -0700 (PDT) Received: from ards-macbook-pro.local ([212.91.105.246]) by mx.google.com with ESMTPSA id ft17sm38327602wjc.14.2014.07.21.08.17.23 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Jul 2014 08:17:25 -0700 (PDT) From: Ard Biesheuvel To: matt.fleming@intel.com, linux-efi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, will.deacon@arm.com, leif.lindholm@linaro.org Subject: [RFC PATCH 10/10] arm64: Kconfig: enable UEFI on BE kernels Date: Mon, 21 Jul 2014 17:16:25 +0200 Message-Id: <1405955785-13477-11-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1405955785-13477-1-git-send-email-ard.biesheuvel@linaro.org> References: <1405955785-13477-1-git-send-email-ard.biesheuvel@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140721_111751_854808_60651596 X-CRM114-Status: GOOD ( 10.42 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [74.125.82.45 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: roy.franz@linaro.org, victor.kamensky@linaro.org, steve.capper@linaro.org, Ard Biesheuvel , msalter@redhat.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ard.biesheuvel@linaro.org 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.174 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 This changes the Kconfig logic to allow EFI to be enabled on a BE kernel build. Signed-off-by: Ard Biesheuvel --- arch/arm64/Kconfig | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index e9d8af2fc389..9fa1383acbd3 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -301,16 +301,20 @@ config CMDLINE_FORCE config EFI_STUB bool +config EFI_LE_STUB + bool + config EFI bool "UEFI runtime support" - depends on OF && !CPU_BIG_ENDIAN + depends on OF select LIBFDT select UCS2_STRING select EFI_PARAMS_FROM_FDT select EFI_RUNTIME_WRAPPERS - select EFI_STUB + select EFI_STUB if !CPU_BIG_ENDIAN + select EFI_LE_STUB if CPU_BIG_ENDIAN select EFI_ARMSTUB - default y + default y if !CPU_BIG_ENDIAN help This option provides support for runtime services provided by UEFI firmware (such as non-volatile variables, realtime