From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 20 Dec 2021 13:10:11 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mzHUY-00Cd67-Ur for lore@lore.pengutronix.de; Mon, 20 Dec 2021 13:10:11 +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 1mzHUX-0004Q1-O3; Mon, 20 Dec 2021 13:10:09 +0100 Received: from mail-eopbgr80050.outbound.protection.outlook.com ([40.107.8.50] helo=EUR04-VI1-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 1mzHTk-0003re-Kh; Mon, 20 Dec 2021 13:09:21 +0100 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mjOACenpucdnQKCwfkVdnkkgMPx1YItAG34Nww+XHte0RsuHVn97qxYLpS+GFyvI9tttgU8R5L2k5nOprwmZqM/EpYr7dI8GKWnqF259pU0MAJw/IIRLF6waeBHljtfeinRlmw/yGFlmW6m8T4TBgSD80+hkrKaaYqocpUBBRGgWRy9ZZetfKnil+vh4DdfFLtqFa7C/f/Qxuo5lLod5+lH0AdfVbxnKba8FmllRyWGWgHf+h1VI0TlphQCBQY6vRNIg72OYmqIu/XU8uy86UzB5HI4/q/nPzKKC39y7wVODzcvwGWMvTSF+id+2NTgRuwFea6vv1pIXshhF958WBA== 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=hCXpjI4gLD22HqWqdbgETwcnHsSbD0xvUpEW7Qnzurw=; b=OpDDJvXJA+thl7UizmqdY3yad5+h4iELvTzrwg26LX4jeaTbXBWRaHy7DGR2mmZQpbAKOkJWjIY4PDFP8FBrT0t9sT8mjU05BcT1ZC1Zj9VW3QMlRoLGY4xUesFVyGVwLR0WjmXsEWG1KEdZ+6iA4FHBxD9fcuI4vYbvM75xHIw9G5Hw6V5yPJLM2njK5e6IBLyx8ZGh9wofmCXUmvr/CNYLuCXt7XzmoUvk3MEXuXEGrXrlO56kfbkJLR/n0YJ9hdeXOZnjcBVCw/yeTLxyS5bLw8N520NwRPCQ1W6KEVjk1oAGCf4udNJtLX8KPBA3Iko75S6KkMweJmyjBcmUyQ== 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=hCXpjI4gLD22HqWqdbgETwcnHsSbD0xvUpEW7Qnzurw=; b=2+FECU7NItsOvX2fo1mAmTv6zOeoau3WSHMVMf2Sxo6LspFNdaeNshBP6L3cC0mfDXs0BYH/ezjowhV+MFnofL48Am7DxOoOMvqD2XkfiyiKpuXjb8kvxd/AOFgXTUi9OvclrpQwzMAkCJncdtJ+nMDlgczCMQQG0ZPCbB50WzU= 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 DBBPR08MB5224.eurprd08.prod.outlook.com (2603:10a6:10:f1::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4801.15; Mon, 20 Dec 2021 12:09:17 +0000 Received: from DBBPR08MB4523.eurprd08.prod.outlook.com ([fe80::81d1:d448:4016:1956]) by DBBPR08MB4523.eurprd08.prod.outlook.com ([fe80::81d1:d448:4016:1956%4]) with mapi id 15.20.4801.020; Mon, 20 Dec 2021 12:09:17 +0000 From: Michael Riesch To: ptxdist@pengutronix.de Date: Mon, 20 Dec 2021 13:08:57 +0100 Message-Id: <20211220120857.3672237-5-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211220120857.3672237-1-michael.riesch@wolfvision.net> References: <20211220120857.3672237-1-michael.riesch@wolfvision.net> X-ClientProxiedBy: ZR0P278CA0022.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:1c::9) To DBBPR08MB4523.eurprd08.prod.outlook.com (2603:10a6:10:c8::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e258cd30-6197-438e-e992-08d9c3b18c0a X-MS-TrafficTypeDiagnostic: DBBPR08MB5224:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZciOy6XIDMWncpei118PqkJbVSxQmXVrhEGmmecfm4HnOzR36puIHI+JlyPOqHi9fWvH63S9ccJ33i/3Qry+R+qj9M6qOR/Gt+eFBIKLHC2LQQ7iZjbisl2s9UsR0W5D9qX7K3igoHdmHIN0ONUllzPHI2j/2+UAbqh/8p9mAP6a3AT/PD2zXZIGDBbLIlzpUETdtr64IlE+IJUfqnfH8smOsia9ksyphOMQC7BIXmgBzjQ+nglaSpfZ+rpH/d5/jgMvtaXGQ7WdyfNx1ChDWfeIj9/yySiRBhPI3lmZcGAztN9WYZ/0i/K0EeHeGvboOplKnnO5qoffRz4lTIvl/gJ3NCGQ1zLQHuaPbsJ6aS7TcmoWTwbqjop7mfFKhoL+cfiX9Ezbnxq3PWCd5q/He/C/0G6f/IF+QjNaTa7kDaCO4bkisxBRJgXI5dy4lNrW7YTPdbk6xKFL7kXnlVNHqeEdBKlToxllGaNFh0mTs7Bv/I6FSneGigXq67bMhWuViMDHo+/VDr5WlO7Kii3kgSOnfDVzq3spcpS4PxdpfH8TU5oe/hInOKrLM0SKRuhiTBPiiVijDIWT94p1JalFjB7+T7TPGhi024jFr0kN8Qz19JNawj0EGdsc8PsBYQiY4XaGoFxlb5CJxRqG/SBMPQ== 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)(39840400004)(376002)(136003)(346002)(366004)(396003)(8936002)(2616005)(52116002)(44832011)(6512007)(316002)(38100700002)(6666004)(508600001)(107886003)(2906002)(5660300002)(86362001)(6506007)(6486002)(8676002)(6916009)(66556008)(186003)(66476007)(36756003)(4326008)(1076003)(450100002)(66946007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?xQ8zg5IE3DfmWZd5Pxh4C4CG3FYi4HwFEJXDPLdmhTJXvRZ3PFdXWdpUG6l0?= =?us-ascii?Q?rhDnY2oGu3XikQldLcjSRY2soJEX/wDxv0KHu3Ku5HDNwumwcJ0a1RWgyQ5y?= =?us-ascii?Q?Y6uBe/TufcOA92G03Lyg8kKMt3HLr/S9xo1LE8FAXZsRsspsdQQjx03AUaDV?= =?us-ascii?Q?3ljPzscSUbDsh6AW5wQFw9DmH9SvsR20Gbe15zynEAqzccCq6w3FPl8sv15B?= =?us-ascii?Q?CMro9r4dbbDLdwTffaeOCTFuAOOVxJBhQtAZHo2SwEPjvKC1y0SWWsNdOz5n?= =?us-ascii?Q?I4yi9OVdDosus+7vHf8mof3i0Aeod1ul4gcjed+6FMNVdkV1P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C05qR8Zad6LVugeihkYSOVpLiLFSzdTU3XG1?= =?us-ascii?Q?IA/0++oS1ndS++8+UQMLJmuGUp23M9KleGp/PHH7/eRnBNQoM1BMnpu4+h13?= =?us-ascii?Q?aFqLHB+5A9livFjRTCmAblTas1ynS2gYJwpPiQJPDedAJmmPRwougUBR5Pzi?= =?us-ascii?Q?xtqQf6ke3aH6wsIL74tgjNOzNcZwQvnlh0KnN3Zx9FUOJrUcYlyci06EPB5S?= =?us-ascii?Q?VMGvnYzVGhy03Tah7sPf+/D4PPQao3tbaihfZn9+NLSgGwPBkx6SjIZoTVM/?= =?us-ascii?Q?rmmDG9Vhdh/qCCfLiSYp7BlMLx9ZMaI8ijDkvnC7R4YTF9ibrwMXRSZbWcxn?= =?us-ascii?Q?FI9mQ72p2ihM77YmMV2NhdnUH9iOwBmL5f5FAVv48aEVan0D1Ah+I3Ym6iYk?= =?us-ascii?Q?z8+1Kljs9CLNQWH/OipIrzbExpr5alvDZ6cq8zEeVt+dd2VHa2dhwA/oBNAN?= =?us-ascii?Q?K5HOSRdsSa0WBU9qE1USu/oaCncGZ5peGTZHKNem5NMqZkO6vA+P03A74nJ4?= =?us-ascii?Q?FXoEBJXrDg=3D=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: e258cd30-6197-438e-e992-08d9c3b18c0a X-MS-Exchange-CrossTenant-AuthSource: DBBPR08MB4523.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Dec 2021 12:09:17.7567 (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: 02or29Sf/819KV+xjIZ22bCOQx0nWG0AGW8W2eP0aPLLEfUseaD35w5I8+97UrVuaipmnNgCIv47n2zv4oesEow9vInobUckap/3unSuDwc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB5224 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.3 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH v4 4/4] barebox: add integration of 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: m.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 In some cases barebox requires firmware blobs, which may be provided in binary form by the vendor or compiled in a preceding step. Add the possibility to specify files (in separate rule files) which are injected in the barebox source directory during preparation. Signed-off-by: Michael Riesch --- platforms/barebox.in | 8 ++++++++ platforms/barebox.rockchip.in | 10 ++++++++++ rules/barebox.make | 4 ++++ rules/barebox.rockchip.make | 16 ++++++++++++++++ 4 files changed, 38 insertions(+) create mode 100644 platforms/barebox.rockchip.in create mode 100644 rules/barebox.rockchip.make diff --git a/platforms/barebox.in b/platforms/barebox.in index d35d16501..8a81be40f 100644 --- a/platforms/barebox.in +++ b/platforms/barebox.in @@ -55,6 +55,14 @@ config BAREBOX_CONFIG This entry specifies the .config file used to compile barebox. +menuconfig BAREBOX_FIRMWARE + bool + prompt "integrate firmware blobs " + +if BAREBOX_FIRMWARE +source "generated/barebox_firmware.in" +endif + config BAREBOX_EXTRA_ENV prompt "extend the builtin barebox environment" bool diff --git a/platforms/barebox.rockchip.in b/platforms/barebox.rockchip.in new file mode 100644 index 000000000..238798ce1 --- /dev/null +++ b/platforms/barebox.rockchip.in @@ -0,0 +1,10 @@ +## SECTION=barebox_firmware + +config BAREBOX_NEEDS_FIRMWARE_ROCKCHIP + prompt "barebox needs firmware-rockchip" + bool + depends on ARCH_ARM64 + select FIRMWARE_ROCKCHIP if BAREBOX_NEEDS_FIRMWARE_ROCKCHIP + help + Select this if barebox needs the non-free Rockchip firmware + blobs. diff --git a/rules/barebox.make b/rules/barebox.make index bea9f3adc..cc70a6ff5 100644 --- a/rules/barebox.make +++ b/rules/barebox.make @@ -94,6 +94,10 @@ ifdef PTXCONF_BAREBOX_EXTRA_ENV @rm -rf $(BAREBOX_BUILD_DIR)/defaultenv/barebox_default_env endif +ifdef PTXCONF_BAREBOX_FIRMWARE + @$(call world/inject, BAREBOX) +endif + @$(call touch) # ---------------------------------------------------------------------------- diff --git a/rules/barebox.rockchip.make b/rules/barebox.rockchip.make new file mode 100644 index 000000000..33795bee4 --- /dev/null +++ b/rules/barebox.rockchip.make @@ -0,0 +1,16 @@ +# -*-makefile-*- +# +# Copyright (C) 2021 by Michael Riesch +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +ifdef PTXCONF_BAREBOX_NEEDS_FIRMWARE_ROCKCHIP + +BAREBOX_INJECT_PATH += ${PTXDIST_SYSROOT_TARGET}/usr/lib/firmware +BAREBOX_INJECT_FILES += rk3568_ddr_1560MHz_v1.08.bin:arch/arm/boards/rockchip-rk3568-evb/sdram-init.bin +BAREBOX_INJECT_FILES += rk3568_bl31_v1.24.elf:firmware/rk3568-bl31.bin +BAREBOX_INJECT_FILES += rk3568_bl32_v1.05.bin:firmware/rk3568-op-tee.bin + +endif -- 2.30.2 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de