From patchwork Wed Apr 22 00:45:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Park, Aiden" X-Patchwork-Id: 238233 List-Id: U-Boot discussion From: aiden.park at intel.com (aiden.park at intel.com) Date: Tue, 21 Apr 2020 17:45:00 -0700 Subject: [PATCH 1/8] x86: Add a new X86_RUN_64BIT_ONLY to Kconfig In-Reply-To: <20200422004507.2025-1-aiden.park@intel.com> References: <20200422004507.2025-1-aiden.park@intel.com> Message-ID: <20200422004507.2025-2-aiden.park@intel.com> From: Aiden Park This will build U-Boot as a pure 64-bit binary with no SPL. It can be used with a pre-stage boot firmware which has already done 16-bit, 32-bit and 64-bit init. Signed-off-by: Aiden Park Reviewed-by: Bin Meng --- arch/x86/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index c8eae24c07..89add17e69 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -40,6 +40,14 @@ config X86_RUN_64BIT runs through the 16-bit and 32-bit init, then switches to 64-bit mode and jumps to U-Boot proper. +config X86_RUN_64BIT_ONLY + bool "64-bit only" + select X86_64 + help + Build U-Boot as a pure 64-bit binary with no 32-bit SPL. This can + be used with a pre-stage boot firmware which has already done + 16-bit, 32-bit and 64-bit init. + endchoice config X86_64