| Message ID | 20260214021317.816170-13-sjg@u-boot.org |
|---|---|
| State | New |
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> 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=1771035264; bh=7M+fSrGCqxBWx2CWvBLy+/Ce6rrkFyWchmfDIbYWgAE=; 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=r/GVtvuJKOTuvCGu+G35F5Q8VPacCreWuafBFw1m2M6mWBMq9DyG0/OeLcTy6Yz0v E8nGqLiBPYjK+7NFnQ40XinjEIKy8CSE2hCZIU87lJfsGChtBCJW+bKra7EPbNldpF LkGAZykyvR5I+RVxvunqrNkm6aR+kcqjpXFVsyEf58vHLkPR9ya6ZFUUSQNKh99l8D cL62MOrMx7+bvA1AcIQuTh6J/zeSb0WFXKs/jUWv7eGx1hdAERICdCkys7FPPtXxL+ WrtcWvjTODBVsvreW92hmIjo7Vj3qzDe9kPd+rYud5inMPKtO5x8NkhsHM1fOnQjlc aP3DwvolmAyfg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id B3E0169B5B for <u-boot-concept@u-boot.org>; Fri, 13 Feb 2026 19:14:24 -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 twP4iuVwOHeU for <u-boot-concept@u-boot.org>; Fri, 13 Feb 2026 19:14:24 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1771035264; bh=7M+fSrGCqxBWx2CWvBLy+/Ce6rrkFyWchmfDIbYWgAE=; 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=r/GVtvuJKOTuvCGu+G35F5Q8VPacCreWuafBFw1m2M6mWBMq9DyG0/OeLcTy6Yz0v E8nGqLiBPYjK+7NFnQ40XinjEIKy8CSE2hCZIU87lJfsGChtBCJW+bKra7EPbNldpF LkGAZykyvR5I+RVxvunqrNkm6aR+kcqjpXFVsyEf58vHLkPR9ya6ZFUUSQNKh99l8D cL62MOrMx7+bvA1AcIQuTh6J/zeSb0WFXKs/jUWv7eGx1hdAERICdCkys7FPPtXxL+ WrtcWvjTODBVsvreW92hmIjo7Vj3qzDe9kPd+rYud5inMPKtO5x8NkhsHM1fOnQjlc aP3DwvolmAyfg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id A32C869B5A for <u-boot-concept@u-boot.org>; Fri, 13 Feb 2026 19:14:24 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1771035263; bh=7cqwD4vpp+KTNmvIQY69LSHZb4bk73fAJyvSujz5KiM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pRrl43DLz5lwL79b/GH/IxY8eUQMKMcpMhjRr3iFwc/9p10HSHYkxfAqEFGOHTCah xTBREQrEtWOxJcft3U+lKuPN8vC5cS3ZN8CBZgnD74Hlv2Zz9r8xGkOByh3qEePwED NDqOtVW+ucVGP5BqsIWY8zxBGfIeNtMK9obuCdw9IQRu8kth4ZutaL0xuNSnIUcYtO fBZfhbx6OvvL0zp7O+/NZHLU2lTEeraZdb/CMlFtMS3kW68DMcKhXXM8vVrU8VlW08 tWl7TlIqs0/sBaipUZ89E6utrTP4uN0ftsS6SOyWPV6IL830iMg/sq4KO9y9CubOoo PBfKzwOedYmIg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 730CA69A69; Fri, 13 Feb 2026 19:14:23 -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 xG63ottgMcon; Fri, 13 Feb 2026 19:14:23 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1771035259; bh=YaGTzs5mhN2Isg35ZJL3vjZJzBt/NcmhWlppP4r0vpQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UYAwl23hoNUiyDxq4OIQwbFAM9blEaR6vQ2mo1vKYCve9DIbzrtWfZMtNPrxqkAxd 78q8073kAmI8p9VTOx8FFPoHJhvTtnecIysK5GMlpQ5j2a8+XvKuVjcsZ1NQG5cqbw +DZ9IVACFMxGDmfhnBrPOm062YohHjAhqX5NaFWXbsbJ7YUFQp1e7o73K2XPGJNu1X Bq2/GxSPm0GP46BrR5b/52yVG7JXvPql1zV8Vk5Wm6PG8QeQYuCRrW8bTBEXNNYLSp 0LvMifjNxgZK7ASaysVKbA9uBbSsY+rs1Uuckn8IgI9Au3PV0fEFBJAOzITXKqS1sX 3T4EOcx1lJ9IQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 07B4869B56; Fri, 13 Feb 2026 19:14:18 -0700 (MST) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Fri, 13 Feb 2026 19:13:06 -0700 Message-ID: <20260214021317.816170-13-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260214021317.816170-1-sjg@u-boot.org> References: <20260214021317.816170-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: LN5TPJCAZJLREGHU26G35L64CXTXBW6U X-Message-ID-Hash: LN5TPJCAZJLREGHU26G35L64CXTXBW6U 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: Simon Glass <simon.glass@canonical.com>, "Claude Opus 4 . 6" <noreply@anthropic.com> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 12/13] Makefile: Only run standalone ulib examples for sandbox List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/LN5TPJCAZJLREGHU26G35L64CXTXBW6U/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
ulib: Support building examples for x86
|
|
Commit Message
Simon Glass
Feb. 14, 2026, 2:13 a.m. UTC
From: Simon Glass <simon.glass@canonical.com> The examples_ulib target invokes the standalone Makefile in examples/ulib/ which uses sandbox-specific headers and linking flags (e.g. -lpthread, -ldl, arch/sandbox/include). Running this for non-sandbox builds like qemu-x86 causes compilation failures due to missing sandbox-specific CONFIG symbols and GD_SIZE mismatches. Non-sandbox architectures already build ulib examples via the kbuild path (examples/ulib/Kbuild + arch-specific re-linking), so guard the standalone Makefile target with CONFIG_SANDBOX. Co-developed-by: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com> --- Makefile | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/Makefile b/Makefile index e61e1c7fe94..f1fdace661d 100644 --- a/Makefile +++ b/Makefile @@ -1061,11 +1061,13 @@ ifeq ($(NO_LIBS),) INPUTS-$(CONFIG_ULIB_SHARED_LIB) += libu-boot.so test/ulib/ulib_test INPUTS-$(CONFIG_ULIB) += libu-boot.a ifdef CONFIG_EXAMPLES +ifdef CONFIG_SANDBOX INPUTS-$(CONFIG_ULIB) += examples_ulib examples_rust endif endif endif endif +endif LDFLAGS_u-boot += $(LDFLAGS_FINAL)