Message ID | 20250905170132.182249-1-sjg@u-boot.org |
---|---|
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=1757091706; bh=TudBXtSUod71NvsEp3TroN9rZgGJC+qzwb8LSTOK8U0=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=vi8YePKWze++F7ntEm1hO3oljfcACZJ1A7qSvGwfEfntyniSrUnQSCwaSUZuA35rP 80HzuQSjVUZw6O5oF1/f8ifuVVNT3PTLXzNR2J0FCeHhG7+Wws5wqIlWHehkklqHnN wwksTBVaLvjDYKRaiyMxUSnnttt4GFqunmU8nwOuU0yF/aifKa6Jy0a2QUHXZljPfE km6hopw/eYf++USt2VGz8IPMdtRgaQZE38c6RQpF4maL/Dim6iWLVcnSur6YWMm4zw kGeaX/6OEvg6fK2roiW4n8HxGJkNQjS61w4TsYX7BDHxLS8zLonz7hD4ASFtb7rRY4 KvUfFskbN1Pcg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 0A383679A6 for <u-boot-concept@u-boot.org>; Fri, 5 Sep 2025 11:01:46 -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 z4CjjZzm-NJ9 for <u-boot-concept@u-boot.org>; Fri, 5 Sep 2025 11:01:45 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757091705; bh=TudBXtSUod71NvsEp3TroN9rZgGJC+qzwb8LSTOK8U0=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=Hg9hH/AwphyfEnibBUhh+zp/LN/a+j+rKV33o4FjfGoM2seECURfkqaocIt1P+v9/ NzlU0RWYyLfyW5RuytLMIuj6PVmbYWH/xCWLqBtWli0mqoA1U/IfpL1Kx2yDUSs5Vs twEmgYMmGsDilmNioYmrionq4v77S6HYl5BKYZ1QQgJ9pYsBCkJ3PU2UiZisDk+bzN sWm5ROE1HvsrlMqPJ7YQNyF3VNKBPw1wgAKTfXCmur7tKOuFsYt0c7uxZrFgf1fiic YhjOaPouwfqZlS1XOfzVNk/cA2/3DD+wklzUGwgsqQuqh3asdFsGuWv2G7nWPV8cDR nKoeveeSJV+6g== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id EC9BD678F8 for <u-boot-concept@u-boot.org>; Fri, 5 Sep 2025 11:01:45 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757091704; bh=RGyL0f5KxeT505D2eoUPxtBcmTGqoLmmPj+xadApgh4=; h=From:To:Cc:Subject:Date:From; b=wir2gigvBBAGmJTLqws3hrDHBYAAP5G0piTkbZq0Aqt6+R8GbG/CBRRpjDCik/PgD P9PbwLdZKgsuSiWUBFDDgBIk3mcAS7mAvnnZi79p721sr72BwYTOacuP0TiKdjoOZW EMWcnai48+OkaH6MwzW5cMg/bZjQOktKFvQUxBrmqZD/ocI/LCBjJoo7ED5CzGVzrr eLFtu3p9I2VxX8OVlf71CHmLXN8lnYGmod7/3cMwS74sAmSQnDkH5Ubbt9ea0yGEvJ uSGhGfcAiMw4F8lrUoFnlT4euhXEKh5ozmvqI6dP62V3peGdXTSfhjXPIqxcFBdaSc eW/HtM2ZObcMA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 25039678AA; Fri, 5 Sep 2025 11:01:44 -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 yNxdFzoATyvV; Fri, 5 Sep 2025 11:01:44 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757091700; bh=67gvYjA3PSYig+oK1S/lFFEr7xTyZf/rBx2WYBpzKHw=; h=From:To:Cc:Subject:Date:From; b=fI5LuHbiti6hmx3/pNyzeuTSYCE0Ra0pgUGcwi2P3uA/ypYU0wj19V7IhBDboesll fF24hnlFrIG4BRyPh+N/4Lg2DJu4ERW73fV2E/CY3yxAainManOAqrN2nNxEF9oCp9 xo9zpaWBdAalZ5xv/6j9bkZWF4GWmGndFKX+LKGkvFgQ7CQ1c9iUfDCUhetYJsVU6M ooJVe5fC0mZEkFpJ42EiyzBhtEi6xwXmL6Bg1KGD3fswHwwKIYgtg0sN4uvWUbV6U3 bTo3GcDGGrivkSUPmJzn/wcCX+ploovKthsiU8R5y51eg9+zwOCBxSNTXy8D88yTev Fw5hycZi4YCvw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id BBB2D678E6; Fri, 5 Sep 2025 11:01:39 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Fri, 5 Sep 2025 11:01:11 -0600 Message-ID: <20250905170132.182249-1-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Message-ID-Hash: GHERXNW7WALAHR2XE3X4YL3PNRFBYJUK X-Message-ID-Hash: GHERXNW7WALAHR2XE3X4YL3PNRFBYJUK 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 <sjg@chromium.org> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 00/15] ulib: Provide test programs and documentation 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/GHERXNW7WALAHR2XE3X4YL3PNRFBYJUK/> 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: Provide test programs and documentation
|
|
Message
Simon Glass
Sept. 5, 2025, 5:01 p.m. UTC
From: Simon Glass <sjg@chromium.org>
This series completes the implementation of a basic U-Boot library:
- ensure that no output is written during init
- provide a static library to match the existing shared library
- add test programs for both, to ensure they continue to build correctly
- provide documentation to describe how to use the libraries
This is still very early in the implementation, but this series provides
enough for some initial experimentation.
Simon Glass (15):
sandbox: Add a function to read a line from a file
ulib: Disable environment setup
ulib: Disable console messages
ulib: Disable network setup
ulib: Disable the main loop
ulib: Move struct bd_info into its own header
ulib: sandbox: Move the linker-script name into config.mk
ulib: Add static-library build support
ulib: Provide an init function for sandbox
ulib: Provide a generic init function
ulib: Provide a test program for the static library
ulib: Drop unnecessary pieces in test/ulib/Makefile
ulib: Provide a bit more info in the library-test program
ulib: Allow building of the libraries to be disabled
doc: Add ulib documentation for shared and static libraries
Makefile | 38 +++-
arch/sandbox/config.mk | 4 +
arch/sandbox/cpu/os.c | 32 +++
arch/sandbox/cpu/start.c | 30 ++-
arch/sandbox/cpu/ulib-test-static.lds | 19 ++
arch/sandbox/include/asm/u-boot-sandbox.h | 9 +
common/board_r.c | 14 ++
common/console.c | 2 +-
doc/develop/index.rst | 1 +
doc/develop/ulib.rst | 253 ++++++++++++++++++++++
include/asm-generic/u-boot.h | 52 +----
include/bd.h | 70 ++++++
include/init.h | 4 +
include/os.h | 14 ++
include/u-boot-lib.h | 34 +++
lib/Makefile | 2 +
lib/ulib.c | 36 +++
test/ulib/Makefile | 7 -
test/ulib/ulib_test.c | 53 +++--
19 files changed, 593 insertions(+), 81 deletions(-)
create mode 100644 arch/sandbox/cpu/ulib-test-static.lds
create mode 100644 doc/develop/ulib.rst
create mode 100644 include/bd.h
create mode 100644 include/u-boot-lib.h
create mode 100644 lib/ulib.c