From patchwork Thu Feb 12 00:14:03 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1835 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1770855310; bh=DkmEaC+/DFh8UyeW0eBqESCppO9bhhHJtI1e+YZKsjQ=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=I7DBkAEJfdlzrNQdhz4touv4rIk+nSEdQ7mScrvgGI1JbsDguwCRqPXKXqOL5iZxr P+eyCxjvkx7P9HOUoLtCbbytV6nyfRK1d8akTZuNvIFWB9uDZLuJdAspahxz7XTa4x /cSdKb6ovPUieqTo0fdOMNBz+ibY+cQhhcmC+prv71IY6sw0oOWLyn9LkLZiEOnlud QMDqPG+ZfxwM+nu+feV69Bdtzz80wGD/tObQAJFDFdO0rucZlYMueMtNqG8WCvEUFU pyNiMOyswlPWNIwpvHkcpwNO2pG2jocnmi8EdITNcxIvP7I7omYzponFasBJJlwYdc h/p7sou+Xhy0A== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 4D8EA69A9B for ; Wed, 11 Feb 2026 17:15:10 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id q5NUBAsLTrM6 for ; Wed, 11 Feb 2026 17:15:10 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1770855310; bh=DkmEaC+/DFh8UyeW0eBqESCppO9bhhHJtI1e+YZKsjQ=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=I7DBkAEJfdlzrNQdhz4touv4rIk+nSEdQ7mScrvgGI1JbsDguwCRqPXKXqOL5iZxr P+eyCxjvkx7P9HOUoLtCbbytV6nyfRK1d8akTZuNvIFWB9uDZLuJdAspahxz7XTa4x /cSdKb6ovPUieqTo0fdOMNBz+ibY+cQhhcmC+prv71IY6sw0oOWLyn9LkLZiEOnlud QMDqPG+ZfxwM+nu+feV69Bdtzz80wGD/tObQAJFDFdO0rucZlYMueMtNqG8WCvEUFU pyNiMOyswlPWNIwpvHkcpwNO2pG2jocnmi8EdITNcxIvP7I7omYzponFasBJJlwYdc h/p7sou+Xhy0A== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 3B2E2699C6 for ; Wed, 11 Feb 2026 17:15:10 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1770855307; bh=4/+ikzUBejTDPixwNIa+Oh0/3OLy7A4BExmlVr/nxPY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=er3b78bNEc1UKtjH+NrsPSg25f/9TlvupVJJS/qQFGylOiNgR1L5eG1J6bTApmDhb ARe4cPEMrCLecuokPc+wbBoTjicYsH3fBQz7gazdIennHU+N4fEPne8bfnh0FXbXMB kVnXtHhWcSgqEBohem5b7c5zM8DgiISAa4bPgUEvbPMeZxLLDlsWhlac+A6h8zVPCJ L3TrVZjTeiWKCRL6/Hm9fwshE45CIs1cAjZkMo555sDq4xPXUAAntRvFtPkJmgfFiV KPEZEZCsHhmy/SHLSkoNZ+rSEMf85Z/agI8YmB2bBFJ8grdOhkO5tyXGCK8A9mAJyn 2VnZI7PLwszcQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id C60EC699DD; Wed, 11 Feb 2026 17:15:07 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id qf8Ughi7Dy6L; Wed, 11 Feb 2026 17:15:07 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1770855302; bh=doBz2j5nu2i7pVSCy+34ChKvdqbYdiFx9Ugsc/G6GGI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=W2pKp3M1EFv5kKUX06wkU6QNgcNaOoMlziJ/9FrsVR7/21bojY3XJRufDRL4WstEf d85iRQWxyVlvdS3I1m4b7ZHgXPLhrSjuaxhnsJig58cKClxxnGYo3J2/pdjyzKDCxb GjkLRLYAxMJsPnNxLoGFcnnElN/iCIvJgAO0BW+zoC2fbx11LV5A2SHojzObDxc5mP HkXblkym/UFpVOnyKXNAzwr1+ilA9ZoApcP9cacnwqIvg3SEWwfryLT5Ixl2ZaTBqw sTGSrx4MPpzfWOjH8aOXhiS0O3XaKFT1IWGKJCI4iLTw7EMH5ZHWU/KngBoLV1T3zD AVoaCUiO/iNnA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 0B4B869A90; Wed, 11 Feb 2026 17:15:01 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Wed, 11 Feb 2026 17:14:03 -0700 Message-ID: <20260212001410.1919749-13-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260212001410.1919749-1-sjg@u-boot.org> References: <20260212001410.1919749-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: WQT4VH3IQSH7VTWIL7RTO32OQBLYMIK6 X-Message-ID-Hash: WQT4VH3IQSH7VTWIL7RTO32OQBLYMIK6 X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt , Simon Glass , "Claude Opus 4 . 6" X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 12/15] riscv: Exclude unwanted startup code for EFI app builds List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass The EFI application uses its own CRT0 entry point instead of the bare-metal start.o file. Exclude it so it is not linked as the entry point to the binary. Co-developed-by: Claude Opus 4.6 Signed-off-by: Simon Glass --- arch/riscv/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile index 6f80f4a7108..aaa5a02e17c 100644 --- a/arch/riscv/Makefile +++ b/arch/riscv/Makefile @@ -55,7 +55,9 @@ endif PLATFORM_CPPFLAGS += $(ARCH_FLAGS) CFLAGS_EFI += $(ARCH_FLAGS) +ifndef CONFIG_EFI_APP head-y := arch/riscv/cpu/start.o +endif libs-y += arch/riscv/cpu/ libs-y += arch/riscv/cpu/$(CPU)/