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: 3467211 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id BDFF4C02DC for ; Fri, 10 Jan 2014 16:49:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2E8EC20123 for ; Fri, 10 Jan 2014 16:49:11 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F1F1420122 for ; Fri, 10 Jan 2014 16:49:09 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W1f12-0007iD-Tj; Fri, 10 Jan 2014 16:33:02 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W1f0K-0005jp-Nj; Fri, 10 Jan 2014 16:32:16 +0000 Received: from mail-pa0-f41.google.com ([209.85.220.41]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W1ezC-0005a1-Nr for linux-arm-kernel@lists.infradead.org; Fri, 10 Jan 2014 16:31:08 +0000 Received: by mail-pa0-f41.google.com with SMTP id fb1so3374674pad.14 for ; Fri, 10 Jan 2014 08:30:45 -0800 (PST) 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=G6kxGA0t6gqV18ZLkH/aiDJMIvRuQ7E5KAbeVGpuv5E=; b=mLBIDzUszi1HGX71nOuVLjC0731XsinQMUzKy1Hhi+bE++g2g9wn3T8P1P0hK0p1IK LoHCgeRm38EIwbthFRoaJ+9tEysP1bkxDqtGeAxS5UDhAbBFPRLzKP691nKsajzVPFwG NknjbiFxh7vZx35Mhe3RzAJTdlPFp857bl0zWAC/Kv5askTchLONjwoG3e+Wd1hOgrll DpBS0SEsLN94D86fQ5sY00HNQqZPjezxwJH0ReGSG2qra0UQj94YJ2LehWbGcHxhe7CW Ie4HFZvR/SbDaPLheQ88oqYeZQPKxKWjvENNrz/ws9AsKf2+MmQdcU53P8iNw9krMnX/ 2MnA== X-Gm-Message-State: ALoCoQnkksdPKXs7FJ/WVuotWea03MaLc5ixeRnjVjj/3X+j0qLpG8SIQ74i8ExEnBSVpu4B29mR 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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140110_113106_923734_618263E5 X-CRM114-Status: GOOD ( 10.41 ) X-Spam-Score: -2.6 (--) Cc: patches@linaro.org, leif.lindholm@linaro.org, Roy Franz , msalter@redhat.com, grant.likely@linaro.org, dave.martin@arm.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 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+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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"