From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 03 Dec 2021 17:55:35 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mtBqR-00069S-51 for lore@lore.pengutronix.de; Fri, 03 Dec 2021 17:55:35 +0100 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mtBqQ-0008Mu-SA; Fri, 03 Dec 2021 17:55:34 +0100 Received: from mail-am6eur05on20623.outbound.protection.outlook.com ([2a01:111:f400:7e1b::623] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mtBpo-0008ML-8B for ptxdist@pengutronix.de; Fri, 03 Dec 2021 17:54:57 +0100 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K0b7kxc3ezkAo3UExbBr+Si1UTGxEVuMpT9ysIZxS4XVcdy4Mcddo0IRybsnvyiRDNi9JDddQrZ40e3M6cSHj8QM6cwE7ByqIGll6H3lmxaivEVakxvjb6pJ7QIBURuiAj7SBvmbRwAN4zhQ8AFode3Pmb94QAfTZ3IY49JSdloWvGUOI6aYB+A3kaomH6Jysq7FbJpXQFEwSXD8gW9+qnFMNBrq6S6sA8/aRyg8X6UgTlbtuJNRDF3eC2khq8DOsOitUyDAe8gPjSyxxfeamzalq4QG4ZGtxhlMGZ1OsJ7F1MCv4EZoCxn7KTc3Em/uua32nDg8uurIi+/C/XzRLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=qUnNWd4Ys7Vr/rwOW+DBCZw1eYpfRAB+Pz6GAw7G7V8=; b=aNAWf4HwmaAsXmzT1QXuwmRnMZMVa7n2XstlbBZAgNMWLIAC1XD7rMfk4MggM80bdd+azVnuqbwFTyTjaNYeUuMeGsJ+1RIn7ggWOla81mpbDQP1KRKn6MxHNMTadUQu8m8rB38POkdgGBByVbzvyMfe6/y8+dBWLdsGwgH0q+HPnCV9hKkA78gTVMMRE1FTRQiqPfBNbzeHIB1pEgM2W0qr4/sQgJMNZ4aKD15IlFa591MRvnRLuDz9g3ZCfh8rxoeD376Y34yeTiEdQHh6VqXyGqzt1vzoIYH/gyd9nkPcAxd+f1EifIygM7iHDVuHzIg+1+ArCBowzXMmSRcz/A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qUnNWd4Ys7Vr/rwOW+DBCZw1eYpfRAB+Pz6GAw7G7V8=; b=KtD8R98eRJFwk3OHD39BKr4PbrNEKCBcH97sZJbkHcIkpnV6gfc9I4xc+Br7oeLN3kD4Qnq+8iHRHR8Z5nKO8ap+wF4+1SY+ZW/gESY8e1UYMjdoGHvj7D1DoVWKcwMcGigYSf1l+sd2PzeaDDaM8XOLjQrKrc9TXQAm/GvmiOo= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from DBBPR08MB4523.eurprd08.prod.outlook.com (2603:10a6:10:c8::19) by DBAPR08MB5703.eurprd08.prod.outlook.com (2603:10a6:10:1ad::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4734.24; Fri, 3 Dec 2021 16:54:54 +0000 Received: from DBBPR08MB4523.eurprd08.prod.outlook.com ([fe80::81d1:d448:4016:1956]) by DBBPR08MB4523.eurprd08.prod.outlook.com ([fe80::81d1:d448:4016:1956%3]) with mapi id 15.20.4734.028; Fri, 3 Dec 2021 16:54:55 +0000 From: Michael Riesch To: ptxdist@pengutronix.de Date: Fri, 3 Dec 2021 17:54:37 +0100 Message-Id: <20211203165440.1180588-1-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.30.2 X-ClientProxiedBy: ZRAP278CA0007.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:10::17) To DBBPR08MB4523.eurprd08.prod.outlook.com (2603:10a6:10:c8::19) MIME-Version: 1.0 Received: from charlie.fritz.box (2a05:1141:1c9:7c00:2971:328c:3026:3149) by ZRAP278CA0007.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:10::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.14 via Frontend Transport; Fri, 3 Dec 2021 16:54:54 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8dcd38fa-7140-4456-6345-08d9b67da18e X-MS-TrafficTypeDiagnostic: DBAPR08MB5703: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RzNT4s5QbdXQBABA8+cZy7nYVNrGFfW23jNzv2qRvY8fyqwQHsnx3IyTCGvk1wy8Ti4Gt6DD6o7HvQGLdSQzg6/iNmvj2pbl203uKSHc3zxRLzVpIUmwiDgjI4PWAtOt8YlHyuwvSeeYI9jDYhJsLI05SwhQh8bo70pUn0ssTNWIX/mJ5hVMGNeFGy3CGIxOBy8qNtjDRB2mBCWjoizOExbxDTJ7mdjcubFm75xFm9n9gd0LMpRu6EVcrCTGOw/64GdR4x54bk9s713SJx+mbAyLMNs1e2yx+w3+UX0KQCUc9G8eZOGy4LtKEQGE2iY5qJaN1/zqesgEq+suknWn/AzdYck6a+wU+6G3eldIGc3nNYMcamzq0A8zlnjeQsytkVpOC+UahK56vellqCoVxZrIq0hV8FfCMRVip6ydYM44u9kH4V9ozFyx6g4BVoFHXzuR0+Pt7KhijoenCJzv3QiUYhwxUCBNWkL4jbPcnJXcirpWyCot5G4Cn4XRN29QOMoO/wL2Vy8CkXMV01OSsdjZpSDYaGQpkRmTaoqZGrlZUF/nco8j3YH54mRAFMaR+C1u9accgVXPgKbnbWVGS29z5EK12bKJ4vdenfKMQkr2Z8OzDpAP7hHD/a8pnGC9kZDjnlAjQf5yVMOs0GaaSg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DBBPR08MB4523.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(39840400004)(396003)(376002)(366004)(136003)(6486002)(36756003)(52116002)(5660300002)(44832011)(83380400001)(6666004)(66946007)(66476007)(38100700002)(66556008)(508600001)(8936002)(4326008)(6916009)(316002)(2616005)(6512007)(86362001)(107886003)(450100002)(6506007)(8676002)(1076003)(2906002)(186003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?c9/y/YzHMmnznnfqC5dAa13I8t8Sn2uWndlMqjBXuKknwp+zdVxb/A7fiGUt?= =?us-ascii?Q?2YKjrNkvXZLtrzK4UA++dFBtfw/92npEPRr1nlF1zBAbJVcgqFb/nMpAezVF?= =?us-ascii?Q?pcQMAVi4HD0pC4zNSMOTimj4PRoE3VZbQUkGfQ64JVSKn+xKbwLGB+HzFXZU?= =?us-ascii?Q?LP0mFA533OFvQrxXnnyizyw5HpA8aLmCnh8yez9drcxZ5mF/eCnsO718TSXd?= =?us-ascii?Q?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Eiejf136xjrc2F/bQFjB?= =?us-ascii?Q?gDTpZUhCrxVyZoNCQAzJaPAbvo64xTbHJ8TU13Bw98JRT7azh21gYVYcTd6q?= =?us-ascii?Q?JYnjZsS3Z0OD5lUIh5ZlJI+Uxq1pokhMcp1wbpLQXHn+GJ62ft2XBO+eyMmC?= =?us-ascii?Q?5VwdK7M9XdT4uM3kFlE5uwbkk9pWMpQ6CyUP9//BpRNNXnVwcfDmkpnxwNvr?= =?us-ascii?Q?UtVpk6CpgK6nlC25egQDnhKofjPIU/1B1Gnnbm0ZOvrV/Gc5sOt1jmw3Pm90?= =?us-ascii?Q?1tFCqh1zo7W8tCRFrRK7iubaecjqZiKVxkSUFRKtrZZWKeDmmY1EpfEF/+Jl?= =?us-ascii?Q?qTX1/92sg+0b8EKGY44NvZXwLv660Zm71doYKGR+3jCsrfvAFD2r48Y9tPJ8?= =?us-ascii?Q?If4X/OnoV94CXH8BSKcXgSbe8D4US0hO9ucUL7lHx7xdUvU4dJdv2AZVRCaS?= =?us-ascii?Q?QFkyOVYNaLn+zyL8CEhjURqfNZE+NkmqOrH/DVW/piQeSCVdvxTX/vX+IkEQ?= =?us-ascii?Q?AVPIYgTK56CXgGT19V4txZTM+fXd5Yixb/ncr1cRpO+s4qEyIQg6fGyTQbq9?= =?us-ascii?Q?gOH8Q8Wfn9zd9rCtw83YxLJxS0xfZit0/xsS2RsmKmWZgcw3vwlnJ5V4LARY?= =?us-ascii?Q?0XIVtk/+Dg=3D=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 8dcd38fa-7140-4456-6345-08d9b67da18e X-MS-Exchange-CrossTenant-AuthSource: DBBPR08MB4523.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Dec 2021 16:54:54.8765 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: VfV5HMwJYVXe51ZsJD56NIEbk71LHV5cte7zslXl5bZEmW46qaT87i0TuknU5C20aAkigDDQLBdNrzgqTLp9EMCvGo9fyXoUCHiKsLV0Cf8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR08MB5703 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-3.2 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MSGID_FROM_MTA_HEADER, RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH 0/3] Add support for Rockchip firmware blobs X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: michael.tretter@pengutronix.de, Michael Riesch Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Hi all, Integrating binary firmware blobs provided by vendors into our BSPs is a nasty part of our job, isn't it... But maybe we can at least share the efforts to reduce the pain. In this spirit I look forward to your comments on these patches: The first patch adds a section dedicated to non-free firmware blobs, as has been suggested in the firmware-imx rule in DistroKit. This allows to group the firmware blob rules at a defined point and disable them with a single switch, if required. The second patch adds a rule to download the Rockchip binaries, where the files for the RK3566/RK3568 are in the focus for now. Barebox support for those two SoCs is coming along rather nicely, but those blobs are a mandatory requirement. In similar cases, a separate rule file for barebox have been added to a ptxdist setup that takes care of integrating the firmware blobs into the source tree. Maybe a generic approach would eliminate the need for a different rule file only to copy a few files. Therefore, the third patch allows to configure files that are injected into the barebox source tree during preparation. This patch can be considered as RFC, as my knowledge of the ptxdist internals as well as my shell script skills leave a lot to be desired. Still I think you can get the gist. Have a nice weekend! Best regards, Michael Michael Riesch (3): platforms: add section for non-free firmware blobs add package for rockchip firmware binaries barebox: add integration of firmware blobs platforms/Kconfig | 10 ++++ platforms/barebox.in | 23 ++++++++ platforms/firmware-rockchip.in | 35 ++++++++++++ rules/barebox.make | 6 +++ rules/firmware-rockchip.make | 75 ++++++++++++++++++++++++++ rules/post/ptxd_make_world_inject.make | 19 +++++++ scripts/lib/ptxd_make_world_inject.sh | 21 ++++++++ 7 files changed, 189 insertions(+) create mode 100644 platforms/firmware-rockchip.in create mode 100644 rules/firmware-rockchip.make create mode 100644 rules/post/ptxd_make_world_inject.make create mode 100644 scripts/lib/ptxd_make_world_inject.sh -- 2.30.2 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de