From patchwork Tue Jan 13 22:20:48 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 100 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=1768342868; bh=mElv+Qu/zEczPk8oas3R7+qS1/BTzC/xR3xztUgrs6Y=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=dU/PXGKug+8V02ypnFp0Qjmu36iQhRuL4AK6El6Ngr3z0tGfuDIKvAUqTDSTCXic+ r1ahTwBCN+SZBfmjLVVsiIBOwfSVMmwLHrd4kZqxjGdwWbXW2XFSYEuwjnaL+5suH1 k4I+SUv51JvqxxeMu5tqk59QB+ttxGt+G6BTDpCUpY6U9m9bPINRrN5xMSXm0nuHZP /DXK6/JAhXC3Gq4Apg5WOl8stedggV6TqgHWPZgrDXhmTX4zcoTxXwinOFYApU4CPR EPcm6Fng0pi30gdAT/bARe/A/EMrCOhX0OQQw4zF4a/ILHcx5Ef1j8ocgS1H1uEK27 b0wua/i3Qc7kQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id D2BCA69325 for ; Tue, 13 Jan 2026 15:21:08 -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 BldleiWmP5mV for ; Tue, 13 Jan 2026 15:21:08 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768342868; bh=mElv+Qu/zEczPk8oas3R7+qS1/BTzC/xR3xztUgrs6Y=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=dU/PXGKug+8V02ypnFp0Qjmu36iQhRuL4AK6El6Ngr3z0tGfuDIKvAUqTDSTCXic+ r1ahTwBCN+SZBfmjLVVsiIBOwfSVMmwLHrd4kZqxjGdwWbXW2XFSYEuwjnaL+5suH1 k4I+SUv51JvqxxeMu5tqk59QB+ttxGt+G6BTDpCUpY6U9m9bPINRrN5xMSXm0nuHZP /DXK6/JAhXC3Gq4Apg5WOl8stedggV6TqgHWPZgrDXhmTX4zcoTxXwinOFYApU4CPR EPcm6Fng0pi30gdAT/bARe/A/EMrCOhX0OQQw4zF4a/ILHcx5Ef1j8ocgS1H1uEK27 b0wua/i3Qc7kQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id BDDB5692B4 for ; Tue, 13 Jan 2026 15:21:08 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768342865; bh=cwhXriE64zkbJiodvLWm3RQde+aUH2tUAyzxfks776w=; h=From:To:Cc:Subject:Date:From; b=CgwnJaVtHOLfIHkcWKePml9CDnLiwjjcHn2ZQBjtPIiVf4sJNqBoh1CuXovb7QFHV XTvBE93WR6Ral8Of3paAGXyGu8Nl2pKblWCX4eAB9k07AJJzaAiacilj9QsgSMWbO5 +KB+1kTFBT1wDDEGSE7+6Fdt57JFFTUp6LfzKDYmbioH4+UV/pZ5iWsVtTWHUmDIVq d1VIF6lgjaC/G+ZfmKbBvFrhYTy8qdMMt+1KgkuS0CVXapuFYZ/+md6eBsCzsGfEDs fiun3GXmtlF2/+ALRHZIREpUS5Si2gbi2Cy/qVNcJu+k1WtZfPdqQuUMq4U53Sb0rB NN5D8f0MJAWnQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 7C4E2692B4; Tue, 13 Jan 2026 15:21:05 -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 Z7rwBJc1Sj2S; Tue, 13 Jan 2026 15:21:05 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768342861; bh=dcMh5h5PIrD3x2tbr7rkByphfe2lVcch+cLUWkJ63D8=; h=From:To:Cc:Subject:Date:From; b=IdC9UKeldgQtVrpvEVsHYUGqwYFDpQjbdmpQQ67dSG9ap9MHw8rg9fwtZqBAYh8Fx FggSYcuFHCyT4wbvwEEsWIK7k20mKRhKflQ6BJ217+3u1zdU+y/ncadBhq4Z0oBsUd ijrtStR4gLyh2kn+lbDy0OzF3ajOQj50zUEy6OiZpiVk8Yv8xEwVYs0uIozKc8PvBK QQlQHaL+HR4v7fKz6lLNSi3+X2qnYx0DRCqNn+jA7aKOJXC1MbakMFESur9512R0GY UIxjJOpsArwpsy5JgncEMpHKxIrSoqxmB8nvGHZXtxceqI9j16oODi1FkObtf1Ye7x cAe6WVkeQCKAQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id E54046920B; Tue, 13 Jan 2026 15:21:00 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Tue, 13 Jan 2026 15:20:48 -0700 Message-ID: <20260113222054.1204055-1-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Message-ID-Hash: WVVJPDJ36SIGINJU3RFJBDRMXO7CT3G2 X-Message-ID-Hash: WVVJPDJ36SIGINJU3RFJBDRMXO7CT3G2 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 0/3] codman: Add category system and CSV output 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 This series adds a category system to codman for classifying source files by functional area (boot, drivers, networking, etc.). Categories and features are defined in a TOML configuration file (category.cfg). The category system is used by a new CSV output option, which generates machine-readable reports suitable for spreadsheet analysis. Other output formats (terminal, HTML) do not yet use categories. Simon Glass (3): codman: Add category module for file classification codman: Set up categories for the U-Boot codebase codman: Add CSV output with category support tools/codman/category.cfg | 854 ++++++++++++++++++++++++++++++++++ tools/codman/category.py | 147 ++++++ tools/codman/codman.py | 19 +- tools/codman/codman.rst | 89 ++++ tools/codman/output.py | 209 ++++++++- tools/codman/test_category.py | 279 +++++++++++ tools/codman/test_output.py | 212 +++++++++ 7 files changed, 1807 insertions(+), 2 deletions(-) create mode 100644 tools/codman/category.cfg create mode 100644 tools/codman/category.py create mode 100644 tools/codman/test_category.py create mode 100644 tools/codman/test_output.py