From patchwork Tue Sep 22 18:03:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 1369153 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gmx.de Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.a=rsa-sha256 header.s=badeba3b8450 header.b=bD5nGhdC; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Bwq2Y1PKhz9ryj for ; Wed, 23 Sep 2020 04:04:28 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 362C582376; Tue, 22 Sep 2020 20:04:16 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.b="bD5nGhdC"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4CA918006D; Tue, 22 Sep 2020 20:04:14 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6A1CA8006D for ; Tue, 22 Sep 2020 20:04:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=xypron.glpk@gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1600797840; bh=ykU5yfrZbYVGmiQ7Pd047Yze1dNdzwG47ev8CF1koy0=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=bD5nGhdCczocSFT2wYyHWgaLP9t6096buljdvQYLgh4lLViIX6ugdVUQ0Vuam7I/0 MJegyLkt4N07NnVf6rrYnSh3mi4UqFjhf/KxqCItzV8QcGAQzvGpxpNMDyC4OUFxpA qaG4NWLXeRZSEGj7CIZIr2XHLpiyn7zow3kzbZWs= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from LT02.fritz.box ([178.202.41.107]) by mail.gmx.com (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MDhlV-1kCm2R0zg7-00AojZ; Tue, 22 Sep 2020 20:04:00 +0200 From: Heinrich Schuchardt To: Tom Rini Cc: Matthias Brugger , Simon Glass , Ovidiu Panait , Michal Simek , Peng Fan , Reuben Dowle , u-boot@lists.denx.de, Heinrich Schuchardt Subject: [PATCH 1/1] examples: make examples customizable Date: Tue, 22 Sep 2020 20:03:50 +0200 Message-Id: <20200922180350.46636-2-xypron.glpk@gmx.de> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200922180350.46636-1-xypron.glpk@gmx.de> References: <20200922180350.46636-1-xypron.glpk@gmx.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:sxdSs/ffcSNaOc8mYTaNbrtY1MbCVftXJh8BRmblOy5iN55Llmk +Oslpf7C7aA27Ho2kd5cF91wf97Qb17n2RuIuYMtJ2ZdefekOQK1MadhBA1+a4vRWqhcwTp niA/SmJ01TGsVIq8szQyzIzozLSZDUeHuzWLWyPTvQSbNgxdHzRHpysoAsshXeDCyIy/fgn Sqq86uQ6ovYg9sdx80+bg== X-UI-Out-Filterresults: notjunk:1;V03:K0:+nUBHL6BDwU=:VRV5ye+YilIyvEZ16cxArl lnDc2fJAquJGZs8pgBnttloXX3S8gPPpvtbPTrH3GzqRKG/RxGXFR9Rhff+KHMQoZIvJTBOHo MrzMcWl4VXL/2VHdUTatW3Gt2jPaMgpu1QvZkHpr4PMjLwQowqcsR6Lp8rpF0eyHX4ciKbGHj RjJPRqbUYxxv/CM/+AaPzYRj/2LSXbKObUljOPLj2NnsYAb2+MKD64H2OR6gsokkU7KpkWCMY XtB+LO1+iu+HjVmQfgj2MkW+N7Zv0hZfoSiLxPxhlA0now4+m/nQF0nf3R4YiBMoUw464kORr Ej/PuNHzOBYYfqehEO77LYs3YuQD0Z/yTaYvtDWd8cSJmKw0m0iftjECKhCrq5Jvlw6f8j/E2 xcbced1WjdmEcOV5nZxWdl7rG+8Zit+fc/4B5hzdAuaWgUmCoDc9Yt1kJysgyYYX9pEodVbVw QY8/CrmN4LVcVQhbCpSn7ZnVAxwlRoX9nlNRLKTP4jxKsIKPPkLphj3/9EAlWWJMYgq7fQ6KZ PRVEZoGvqjM26fT9tVh7F8YjnIEmenwNmOQM87IP/hh5KOJMBKRqIxnqWXkHLzemQoULfDPsK WM5OZgf4zOLp9x7KxR8fC8pWELrajgCvKQHyhYjYI7vmWQfq1Tsl8ZNpjZDC38fMylKbR26Lk 1ErbhZ3iuAhKdefZPm5+TYoFe6EL61V6klNQ6xwHt5J6L9K126V3WaT+AWqEXnVOqVUUqtSBj I1G22LL1TyyZhxENLMS+TdiHk/oftOXnEPRbhPjkW2k1EBlo2MbTyJTWVrRM/fo1Y4QNnUfvK iBNEFturci/RZyqQifRZsfc7qWqLqcgpqAz88j5uSXUFjYooeFMubY/8odCnW2Cd4L5pLcsAg U1Axk4VLS6bnD0EurL9AYlPcnjypPiCpePc02Sg7w4UYD7NxDi1JuaWZWFHDNKfybJBBHMmfz czNk00+geemJfbE1wzKWOjFhBU6/+AfiMfDmANEx/MPX1Sft68QsQlcbymB12AuIehhz0fXWi CN1pclQ3QDzm5MlYi+lMp9qxzCOyeN0IR2bC3fz3TrsVi4C75jEEBUYloZeaMEsWu7ky2PB8d t/ynyiIYHpGO5y8XeSjA5apdMxD1dz0Y1qtJ0R+vv15Kdqu8QvwZLJepvVip8XP3pactNi277 5vc041mb3nRbSNzmqvAe+S4yOQrOUCt1KmArn5ZjjmURwxi0ZxPTeY6X4BpGoTLKjY2NybyLi 9SbeOANXrmxVu2LdHlxUGRE7Xo2uwWTZ+M1vkNA== X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean Most users don't need the standalone API examples. Distributions like Suse do not supply libgcc for cross-compiling and we cannot do without on ARMv8 for building examples/. Make examples customizable via symbol CONFIG_EXAMPLES. It only defaults to yes to ensure that we compile it on Gitlab CI. Cc: Matthias Brugger Signed-off-by: Heinrich Schuchardt --- I wonder if we should not completely drop the standalone API. The UEFI API has enough to run a standalone application. --- Kconfig | 8 ++++++++ examples/Makefile | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) -- 2.28.0 diff --git a/Kconfig b/Kconfig index 883e3f71d0..d0eae2ceba 100644 --- a/Kconfig +++ b/Kconfig @@ -422,6 +422,14 @@ config SYS_SRAM_SIZE default 0x10000 if TARGET_TRICORDER default 0x0 +config EXAMPLES + bool "Compile API examples" + depends on !SANDBOX + default y + help + U-Boot provides an API for standalone applications. Examples are + provided in directory examples/. + endmenu # General setup menu "Boot images" diff --git a/examples/Makefile b/examples/Makefile index d440bc5655..bf518bd221 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0+ -ifndef CONFIG_SANDBOX +ifdef CONFIG_EXAMPLES ifdef FTRACE subdir-ccflags-y += -finstrument-functions -DFTRACE