From patchwork Fri Jan 10 16:30:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roy Franz X-Patchwork-Id: 23095 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f71.google.com (mail-qa0-f71.google.com [209.85.216.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B6BE0216DB for ; Fri, 10 Jan 2014 16:30:52 +0000 (UTC) Received: by mail-qa0-f71.google.com with SMTP id o15sf7878667qap.10 for ; Fri, 10 Jan 2014 08:30:51 -0800 (PST) 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=G6kxGA0t6gqV18ZLkH/aiDJMIvRuQ7E5KAbeVGpuv5E=; b=ETwyN+0LZd+EWihoagVsYtG38cD8JTWfUCUrD65SIdKsaPftEhQoTLYgT3zAldPDrF gtowXTQG0fFNlG40DHCeV+FW4qvMoyvCy43XayP7X7bJx0/2VzD4oRO4/zHBHnKEFLKx 4/5MxFd76oEY5d4gFAKH80g1h8wPANm3IRuczRVAfUbX/2D1onhA3X2ch8/l2PefBadB sya95hiuPCm9V/ieIOKemCJgdXfCHvQptGG12NfwPpLzwZv8S2R2kuxsxVbSX3HiCZgC pITJpllaglyqUFbfvcFdhF++MEQPNHf1aTkhPRRYvDzojoRbJ/qXMUZb7mdn7A0KtzFf lzHA== X-Gm-Message-State: ALoCoQnHY+Mr3Svu1fozLf1VDHGKa8BTdgf4xTXiVwrqXXwoMJ0u6rhP2rCutWWbXku2ioikVfCR X-Received: by 10.58.171.135 with SMTP id au7mr3958180vec.22.1389371451853; Fri, 10 Jan 2014 08:30:51 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.71.51 with SMTP id r19ls1237352qeu.21.gmail; Fri, 10 Jan 2014 08:30:51 -0800 (PST) X-Received: by 10.58.186.233 with SMTP id fn9mr8741136vec.31.1389371451730; Fri, 10 Jan 2014 08:30:51 -0800 (PST) Received: from mail-vb0-f50.google.com (mail-vb0-f50.google.com [209.85.212.50]) by mx.google.com with ESMTPS id ks3si5248250vec.89.2014.01.10.08.30.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 10 Jan 2014 08:30:51 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.50 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.50; Received: by mail-vb0-f50.google.com with SMTP id w18so3306945vbj.23 for ; Fri, 10 Jan 2014 08:30:51 -0800 (PST) X-Received: by 10.53.11.198 with SMTP id ek6mr7370475vdd.24.1389371451597; Fri, 10 Jan 2014 08:30:51 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.59.13.131 with SMTP id ey3csp100843ved; Fri, 10 Jan 2014 08:30:49 -0800 (PST) X-Received: by 10.66.255.39 with SMTP id an7mr12364810pad.7.1389371445764; Fri, 10 Jan 2014 08:30:45 -0800 (PST) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id o7si7635629pbb.130.2014.01.10.08.30.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 10 Jan 2014 08:30:45 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of roy.franz@linaro.org) client-ip=209.85.160.50; Received: by mail-pb0-f50.google.com with SMTP id rr13so4660268pbb.37 for ; Fri, 10 Jan 2014 08:30:45 -0800 (PST) X-Received: by 10.68.143.33 with SMTP id sb1mr12217094pbb.99.1389371443422; Fri, 10 Jan 2014 08:30:43 -0800 (PST) Received: from rfranz-i7.local (c-24-10-97-91.hsd1.ca.comcast.net. [24.10.97.91]) by mx.google.com with ESMTPSA id nw11sm23388124pab.13.2014.01.10.08.30.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Jan 2014 08:30:41 -0800 (PST) From: Roy Franz To: linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, matt.fleming@intel.com, linux@arm.linux.org.uk Cc: leif.lindholm@linaro.org, grant.likely@linaro.org, dave.martin@arm.com, msalter@redhat.com, patches@linaro.org, Roy Franz Subject: [PATCH V6 8/8] Add config EFI_STUB for ARM to Kconfig Date: Fri, 10 Jan 2014 08:30:17 -0800 Message-Id: <1389371417-379-9-git-send-email-roy.franz@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1389371417-379-1-git-send-email-roy.franz@linaro.org> References: <1389371417-379-1-git-send-email-roy.franz@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: roy.franz@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.50 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The previous patches have added the implementation of the EFI stub functionality to the kernel, so now the Kconfig support is added to enable it. Signed-off-by: Roy Franz --- arch/arm/Kconfig | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 1ab24cc..b650a38 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1867,6 +1867,17 @@ config EFI However, even with this option, the resultant kernel will continue to boot on non-UEFI platforms. +config EFI_STUB + bool "EFI stub support" + depends on EFI && !CPU_BIG_ENDIAN + ---help--- + This kernel feature allows a zImage to be loaded directly by EFI + firmware without the use of a bootloader. A PE/COFF header is + added to the zImage in a way that makes the binary both a Linux + zImage and an PE/COFF executable that can be executed directly by + EFI firmware. + See Documentation/efi-stub.txt for more information. + config SECCOMP bool prompt "Enable seccomp to safely compute untrusted bytecode"