From patchwork Fri Sep 5 21:23:16 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 255 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=1757107428; bh=HMcK9NWo7cwYdTJ56LVE7Favm3xEXAIt/2j2bAhDetc=; 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=vS+JtSrhgGjYfHS+VkUb4InVkKzSlgmpBHnW22V7RRtRz/AZGSLsHJLEJ7MY93UYK ARTYZJIE4/ZBbsysPxJt2AtNRp+vFrk8U+3Zg1WIVfHLwjP6uj1iSgVbsqykA5gfHg FJZAXffu/NB9L/scJfZ2KuhlsWjhDBfuRw26jt69Jo3iDA6gDz3ivbD0rmY+eEFyBZ BxYQatamCfSw3lzcNjEtP3L2f4IOpK5fAcX7970ae7WJka8t5lfUdKPiEZhW60EpQC /VbhQNmrwOAk+5ks4GvP6ymW2U2Li9RtjguIoqLdVOwAY7esoJ4uRJ+UgeurhVA03W eAczyqvRjfSKg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id BD3B3679BF for ; Fri, 5 Sep 2025 15:23:48 -0600 (MDT) 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 yG0UubMM6iak for ; Fri, 5 Sep 2025 15:23:48 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757107426; bh=HMcK9NWo7cwYdTJ56LVE7Favm3xEXAIt/2j2bAhDetc=; 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=ZEyN6/n5c83153+a0dWJQnmcCwQDl/ND2+h2S+XO6gNRMAT6LnUKqtqq+5kgFcQKe FLnG4PwF0dmugPGFutRK63v+nbZZOl4/rbvbVOOxxfMxv3ZTvQRNaHSm6OBpBxWB7Y oGHliVmyD0Xj3CWwDsB70ITNInwHu0YgZbj/Iqb+APdbIO3Kptw0J4+X7xLGScYXGE K99AW7ApdmIPzS7sUourORQYnEomIMV6ABtOJOYt3ReqU2ORNjW0eUEdfcrVShEBPq 79sOVxG+qpdvP/h6SVH7BCa+hf+tbE6g3/I9f6WFD9A6uKxnjP52LG5GgUYIOZts20 88+R2vg6FRaOA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id BBC39679C1 for ; Fri, 5 Sep 2025 15:23:46 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757107423; bh=i5QGFumgRJ9N1O/DDBnTrEATQKQLg0puQc6tmh3fdfs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mPQ9hstd37a5HlgIVw+F6YgskumUjBDUGVIiM8RbwHfzSCR+/DBwPb16mNSElA5G+ YZD/Vj808bh0XRFUMVVoK5NUnv2va+Z0sKfo3MGd6kbYDhHtxSqfJ5pIbafjvnWJkW rtkuFvFgfMsJfvvw6ve1cvW1yXqPSRdg7+E+NDCDfY9PsoP7xTIDXPopzeuJ6fSIzi zCgRyYzgjyYBwd3ONr0j2FIkuqNpJiyqZadgMujBaWU4OCh6mjNGcOvR0quIcRTA75 ApAUEA9CBaGEA34jPa32Cjv8Di4aXx3se3E7Oz96Yy5jT/DjEVQzDIqgHkFo/gAjGW XdbIEaZ4Rp8wQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id E1C22679C0; Fri, 5 Sep 2025 15:23:43 -0600 (MDT) 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 1KxMM3Hyapkm; Fri, 5 Sep 2025 15:23:43 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757107422; bh=X0eczDwAY+0AHdOynE6W87t4yTyzUKPM6ECyfe9YO2U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TXYr9HggM+VlThx1/orKoEUKjvps5/ITfzTCwP4Dr/mX2bWsGzX9d/dSUObBcgIWD dcmjUJ7AKH8o3PoKeMNIyYmjpZ9pyMkuHEfkcHtNtpdsYoxsX18NoP2GMbqbYE63v+ E8pLRNKCcbGu8SsT3LPonJEHSRo/w7kkarDLKfvri6x/COqPWqQewO9iCK7PrfZjE0 /a2iCVxEJQ41864LayeloitQX2YNbiznGomYy6c+zJZFQ7AQal5a4Nibu8XGyPFUj6 b8FpvI/NjCOjSBDjp3POkIhrMzgqgsRS+g1RgSOaZhSDaF4fKUnG4reBylFgmbWF+Q nW9GcWqcaWrFg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 8E15C678E7; Fri, 5 Sep 2025 15:23:42 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Fri, 5 Sep 2025 15:23:16 -0600 Message-ID: <20250905212330.354827-4-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250905212330.354827-1-sjg@u-boot.org> References: <20250905212330.354827-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: JIWBC5HE5AQGSSTYM22MQCL2QH2INGVM X-Message-ID-Hash: JIWBC5HE5AQGSSTYM22MQCL2QH2INGVM 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 X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 03/10] Kconfig: Split the EXAMPLES option into its own file 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 We want to build examples for things other than the legacy API. As a first step, create a Kconfig file in examples/ and move CONFIG_EXAMPLES into it. Signed-off-by: Simon Glass --- Kconfig | 2 ++ examples/Kconfig | 11 +++++++++++ legacy_api/Kconfig | 8 -------- 3 files changed, 13 insertions(+), 8 deletions(-) create mode 100644 examples/Kconfig diff --git a/Kconfig b/Kconfig index bf30179db93..76cfa74dc8b 100644 --- a/Kconfig +++ b/Kconfig @@ -733,6 +733,8 @@ config LDR_CPU source "legacy_api/Kconfig" +source "examples/Kconfig" + endmenu # General setup source "boot/Kconfig" diff --git a/examples/Kconfig b/examples/Kconfig new file mode 100644 index 00000000000..62ae2ffab2c --- /dev/null +++ b/examples/Kconfig @@ -0,0 +1,11 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# Copyright 2017 Emmanuel Vadot + +config EXAMPLES + bool "Compile legacy API examples" + depends on !SANDBOX + default y if ARCH_QEMU_ARM + help + U-Boot provides an legacy API for standalone applications. Examples + are provided in directory examples/. diff --git a/legacy_api/Kconfig b/legacy_api/Kconfig index 6dc96455ff0..7e5725a7202 100644 --- a/legacy_api/Kconfig +++ b/legacy_api/Kconfig @@ -15,14 +15,6 @@ config SYS_MMC_MAX_DEVICE int "Maximum number of MMC devices exposed via the legacy API" default 1 -config EXAMPLES - bool "Compile legacy API examples" - depends on !SANDBOX - default y if ARCH_QEMU_ARM - help - U-Boot provides an legacy API for standalone applications. Examples - are provided in directory examples/. - config STANDALONE_LOAD_ADDR depends on EXAMPLES hex "Address in memory to link standalone applications to"