From patchwork Fri Sep 5 21:23:17 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 257 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=1757107435; bh=iOPKIceSjIe/dTHnwgKuwN1DIvkXT67JLY15UftU9rY=; 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=TTfUztfneNxdBCN1Te3cf8P3kLdAMlRvyiBLc6k9NJwZCFllmDDdRihE0Hm86js8d icjqys2/SFqftuPuZJbcQe1g/Dfppwa4GofzV5vQZX6p0tpyWrKQih5apPSKa/Uj+R VxoavVLauX/VAZVlhB6+51/EVkpjsZbDpFo2ZibpqZsjXMMpqb2TrhO6C6XPtT2tc8 spVyCqO+FfiLBzL/F5RGGL/F7cGOhMOm+LfcsLDJw9ohcCHwnqz9yrsGRtp77b/V5z PUnvw8PkmpBhItFQm/KK+yRKdZ/1TmdjWOJw/qoAuSMOdjvYqrXlvP0Lf/hLuhixNq JZzus6zyDf0pQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 84AF4679D4 for ; Fri, 5 Sep 2025 15:23:55 -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 OxgsMNc6vkdW for ; Fri, 5 Sep 2025 15:23:55 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757107433; bh=iOPKIceSjIe/dTHnwgKuwN1DIvkXT67JLY15UftU9rY=; 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=g6+4EQhx071zT0fmP0GAMIAyyIAoO81X1xeHxV+s6xPTzJfTx6HIenpXv1poOxeY4 EClLIPBmfQWdaeLL85ZuxAxXE8uToHoOzF6qvrRw/NrXRKqXx+YYx8FVH9LYzxNeSq a1G8FziQduuoiI5ZOsmMZ4QBimxOy8f9HPPqMC6tv53UoH9PHc9I3IYJsjHuljcqav Cijqw6R5fr2HyvuD6TDC+WMg8oBIXOosu5gNY1xW3y1VFJeKpnLBbOZzXDgh5bTBNN 8mFIRXR3p47I2Uo4zQnZTVyEZoZkpR1Tu3NX1Mqn6mu47ZoIC7oeWZUh8MXxR7O0Qx oZ6n4Cu/i7fkg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 9C5116794B for ; Fri, 5 Sep 2025 15:23:53 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757107431; bh=sveJ47/VWZDovFYf2M41BtZAmiOtBqxCBaok7+Ebneg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XfzNy0W3XWa4+1hjNpenjGrvqpiMsQ84gFscDd/ZYWtr2U6w1I/6VZGd5pXwST/ec N16hsyOof2WUOaZBLLNi3K6RdN128JOIQRrJVuAItWKhObXUP8gayjBhMFc4n3mduR 7TtDDDVhwfrSSP0LOvGrK+z7eTT1NpRl9yuRpJPJQ3S3HxHMAPe1NySPVZB6Gdnkgq 9Hef9Fz5KPvLnW5RbOWEZdBJGg0E5JcK8G2p/v9AM6gzQezQzcldpG4xeqBwSm/JCH A504/6baw7hyiukgU3oexFfF1P6eVHGQUSHZmF9nH5j3/eTQZGF6l6vWwN9BumoSIJ Dse/zeHUG2qEw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 00BB5679C0; Fri, 5 Sep 2025 15:23:51 -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 76e71Ol3KW5q; Fri, 5 Sep 2025 15:23:50 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757107423; bh=Dlyasvn2m8/EzPRaTQ18T5epefgXg/Bk6Rsg5N2aPWw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fgg2yGOD7a/RpkqDepTopurMxTS1k3qq42MdmZp1I88fPfQDPvldk3O1oJGXGVI4R C8OOyiemvaWiHCX9EP/Ubi4V4bClAXWBcosDVmddZIwnsQmf7/z2wZsV3m0UGpMxt8 kY6EFnm1/9HSqmtecZ1LDIoBBnIVvOsJ1EMro76mYIyEippjKcyOS1bA0tk6siRJ8q SBbCyeceLOpx9NiZiqAerupMxg9f5pjNbj3xzdxkribdc4Y5jN47u4giZIGUTLDBNU d3Gf51WdyEeAIH6AnHZJ9gqKMUAmT2UEAULBRHII15hDmhqNx9OoyFy9ieAq77vO2r eXbPjkvDhuRqA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 623A96790F; Fri, 5 Sep 2025 15:23:43 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Fri, 5 Sep 2025 15:23:17 -0600 Message-ID: <20250905212330.354827-5-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: L4KCPDHLYTG7T624JZES3RKT7QNIL4KM X-Message-ID-Hash: L4KCPDHLYTG7T624JZES3RKT7QNIL4KM 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 04/10] Kconfig: Provide an option for the standalone directory 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 Rather than using CONFIG_EXAMPLES to control the inclusion of this directory, create a separate option. This will allow examples to be added which don't relate to the legacy API. Signed-off-by: Simon Glass --- examples/Kconfig | 8 ++++++++ examples/Makefile | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/examples/Kconfig b/examples/Kconfig index 62ae2ffab2c..4d5a2a9c8dd 100644 --- a/examples/Kconfig +++ b/examples/Kconfig @@ -9,3 +9,11 @@ config EXAMPLES help U-Boot provides an legacy API for standalone applications. Examples are provided in directory examples/. + +config EXAMPLES_STANDALONE + bool "Compile standalone examples" + depends on EXAMPLES + default y + help + Build the various examples in the standalone/directory for use with + the legacy API. diff --git a/examples/Makefile b/examples/Makefile index bf51f1a5018..50bef4e6157 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -6,6 +6,6 @@ ifdef FTRACE subdir-ccflags-y += -finstrument-functions -DFTRACE endif -subdir-y += standalone +subdir-$(EXAMPLES_STANDALONE) += standalone subdir-$(CONFIG_LEGACY_API) += api endif