From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Sat, 29 Jan 2022 08:04:48 +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 1nDhmy-00GuAq-G3 for lore@lore.pengutronix.de; Sat, 29 Jan 2022 08:04:48 +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 1nDhmx-0007BY-1V; Sat, 29 Jan 2022 08:04:47 +0100 Received: from mail-vi1eur05on2083.outbound.protection.outlook.com ([40.107.21.83] helo=EUR05-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 1nDhm0-0006fh-N9; Sat, 29 Jan 2022 08:03:49 +0100 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AULTn98CXpkwaAjQFnTn+v3nJz7uWIvo2f+A7mPLAafH6ufPdC6xw7uvDfBVDAvg3xLtHq3aGJ73p/WIn8VnLgi7PTYeLspFaj/b1e0dOKRalxJyahblOYJl1n38oE4663absIrR/16pu8d4Yuo1/58+GOZ6K9ddBcM2wwnusfzBuNgAEW8bwVgJmxHSgGU/+ObXIrzcLDt+SwESJh52UUHDKsm/Poy2tLwUJdsOj/9bsoYB9YZSPWN3Ko0Q3W8aAm8qX+pnqhghSxqL9utxzMg4xz7nxM1Xw4w9blU02G2MSw8TcF/51uCR/Qy+6ApWs71fhxT82wbcmBahCJHiIQ== 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=aStMUA4loOQ2TOlk9VJW6JXmPkq9Oh2KnChZOEnF4B0=; b=Ei4lDaBs62EkYrsttserHH/ZwyjdeF+IwXG++seIX20M0vDa6rXumczs8MQHDBtnEEqsyOijfn3Vm4Se8RBNuPgoYvu+hoShFKCw0zd35RZ0d/dv/PFzXKjcNKH789goVms8OCRP8R4ZoJ3lI2g5H/QPgOTbO5wDCOeJD5N1Dq6Rrbo7epKz+UXC9IxdbhQQCDS0CjaeVOcHAdTGFEg31ZrNWnhmz6LNZIOFqUn2zx5cMARvO6FtvZzrd2GQDof/QZlGOVE2ov1G2tv6mCMxh9xIbbQjlT/dH93Wa7QxhnuAV1jyZx5EpaS+gTZfDKue56S13m8AfV2IVOh04gAHEg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; 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=aStMUA4loOQ2TOlk9VJW6JXmPkq9Oh2KnChZOEnF4B0=; b=CoJF1LXKUJmndrBre0OBsWx032IF+S/IsW8MwynClnaNsYJFuA88b+2Y0W969hHRF9VpcXgb3DaH6qUq+wt6BK9QU2jimMToiCfI0Ft7xaNQAPs0siQu3gX3zCxAC+WgodNXFbQ10j5swQK2HzOg00Hl8DSK5K3k6mXUIxm2v7c= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from HE1PR0802MB2426.eurprd08.prod.outlook.com (2603:10a6:3:e1::23) by VI1PR08MB3837.eurprd08.prod.outlook.com (2603:10a6:803:ba::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4930.17; Sat, 29 Jan 2022 07:03:46 +0000 Received: from HE1PR0802MB2426.eurprd08.prod.outlook.com ([fe80::e14f:197:5001:4c56]) by HE1PR0802MB2426.eurprd08.prod.outlook.com ([fe80::e14f:197:5001:4c56%3]) with mapi id 15.20.4930.020; Sat, 29 Jan 2022 07:03:45 +0000 From: Michael Riesch To: ptxdist@pengutronix.de Date: Sat, 29 Jan 2022 08:03:29 +0100 Message-Id: <20220129070330.2601433-5-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220129070330.2601433-1-michael.riesch@wolfvision.net> References: <20220129070330.2601433-1-michael.riesch@wolfvision.net> X-ClientProxiedBy: ZR0P278CA0192.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:44::16) To HE1PR0802MB2426.eurprd08.prod.outlook.com (2603:10a6:3:e1::23) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0e49b417-6fbd-4407-e676-08d9e2f57de6 X-MS-TrafficTypeDiagnostic: VI1PR08MB3837:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4QlhetMK0IcidYGFZXyTOLqZ1D2WRuAx4JtUtIv/MWhV6hCNkm+DKTydVKV27GmDYLzCw8mNjyewrFI4XHdLGmg8/U9YDixoEXVBAwxFPWZVn8OFxBItBT7JVmXqeIXzkM6rbeHDaPgRnmukBDUrjTBYDAq+kT37E3hrUClXKNQuzWua36ab5H1YTBPBil/Na+/32rQ1dgKlrJzbjUDEkn4QE7knlu9XQ8f5NO5oN2QXiILXb8W3MyI8lhyq2u6os5gidgIfumY8TO26GNLYJYFpqEWEZ2dUTlPvw2HpIeTnOUta7q04+H7GbeGLhieVqZrHy+7sqWpyI0aNx051S9H+aK60X30CeAkj2VIJqLg8fUui5G6GghEyA1ck5oDYIzZ5/8Ugt6CSKNaJCytW1drIoafJZWEZsKhR3F9/Tn42t8EuTcIph7FHHvo7tG5d/wjIl+3l8cIcFtFkgj1mweGKfkdmjzpm5t5i4VeHDZgOMm0a7wWE6s6qJ+6uDJ2MHI9gvlol7BdGpKTdxwDR1L3Od/JnWfo5Hi97tH8C3KLA8qZjuXTo1xS2PWESahQHFzkHslGA11V2T8GJ7i4OBeXJzZ7wIIcXY1Na4mc9M6AOegSSglyyZfKVEd7T1niKnFGGO2H+MY1PE9Rz3Y3ALg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR0802MB2426.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(36756003)(186003)(2616005)(6506007)(107886003)(52116002)(6512007)(6666004)(508600001)(2906002)(316002)(6916009)(1076003)(44832011)(8936002)(8676002)(4326008)(66556008)(66476007)(66946007)(86362001)(6486002)(5660300002)(450100002)(38100700002)(20210929001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?x1TsqN+eiPF4BnAZw6fm8Poz0EzrerVTzLZ85p4iygqoy91kSt14Rs1V7TsF?= =?us-ascii?Q?5eU5r6HQ+iUjTRPfHOfTdg9GOectGUAEvwnF4xu/XY1CbtbNK/1lrMWLgN/V?= =?us-ascii?Q?otT5NFWQ2EA9yiQPYnk2Pp/oggocD5HT5VljguxxMy1L0EghvEdX8nGqNfFy?= =?us-ascii?Q?xne6SVYHvMUTbNPZOFp5MCYUj+2EIXGLLsNTDXWNZsyxKCTMdWLabckaW4Lz?= =?us-ascii?Q?IsK0k+r9YM9NQr6xiutp7z3xnmbQHrMVidFh1C4pE0smYV2GI5STOEsPWZMT?= =?us-ascii?Q?WjnaHfIXOpy1HdBctKyWctp3JgZolFyx2rUO0zxOFGEGhjmJdjXgY3T3C+4v?= =?us-ascii?Q?cwVl6FdlC0MK/zg4LdWmE7xGja5xT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9J0?= =?us-ascii?Q?5jvdXqzx+QH3zkn7ga3Rk0JMEVqDnP1kkkJE63IuoDC+LcB4p67Ytc9gc2QK?= =?us-ascii?Q?FtXEqp9rKarVGsIOgZ6bkDLfwtuDgxrkStgVA9r98eSNZknb+z80kawTObFL?= =?us-ascii?Q?xFXS1RiaZv6CbejPFWiqaGkxUIHQ8yx6X0LoE0ZIQUnZm9z+A9q1+O4sjx+B?= =?us-ascii?Q?polWdZEJfdHCS0y1VTJ9OdoxDIWzASMYavar1Iy7Yym8Mbea8sMDG6QMnj3o?= =?us-ascii?Q?sP/HlmetSneRtr5qzLY66YoFNqT5h5QItKPZcLo+l7qmGW0ERPOklW4nKKUI?= =?us-ascii?Q?fRPQTIhdMyv70blqGTkjfbPkgA6BVe5K62jWuhHbGcj+9Bzruud2MKLYBQ+o?= =?us-ascii?Q?x+hZOLSeVyTxqn2Hmm4QQOoWGQnx5QSR6ck48ZWcMrwkP+TL7SG0AwbaKLMC?= =?us-ascii?Q?qRusA7HZy/7cgInXOf7KmpGVkxwCs2yd6BJqovmuTZbrnBBBdTdrRV8HLwEq?= =?us-ascii?Q?31xM4PZYUbCpJ2jpSOHVyuQ9naS+r6M=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 0e49b417-6fbd-4407-e676-08d9e2f57de6 X-MS-Exchange-CrossTenant-AuthSource: HE1PR0802MB2426.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jan 2022 07:03:45.8191 (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: ymOcDRBFj45lnrbPKw5a6ZsmCkvxCYOHCeDlRHQ14gk5WHJLrNJm68XSPa8sN+tIsb3cYzdsDDA2RU4/fW4ZddYTNVt76YhaXbiSPYUaPFE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3837 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,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH v6 4/5] 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. The virtual symbol BAREBOX_DEPENDENCIES is introduced in this patch to allow for the addition of dependencies on e.g., firmware packages. Signed-off-by: Michael Riesch --- Notes: v6: - added "barebox.firmware.in" as empty placeholder - introduced BAREBOX_DEPENDENCIES symbol in Kconfig platforms/barebox.firmware.in | 7 +++++++ platforms/barebox.in | 13 +++++++++++++ rules/barebox.make | 6 ++++++ 3 files changed, 26 insertions(+) create mode 100644 platforms/barebox.firmware.in diff --git a/platforms/barebox.firmware.in b/platforms/barebox.firmware.in new file mode 100644 index 000000000..c7275e6d3 --- /dev/null +++ b/platforms/barebox.firmware.in @@ -0,0 +1,7 @@ +## SECTION=barebox_firmware + +# +# This file does only exist to create a defined entry in the "barebox_firmware" +# section, so that the toplevel Kconfig can include generated/barebox_firmware.in +# even if no package is in that category. +# diff --git a/platforms/barebox.in b/platforms/barebox.in index d35d16501..245b272a3 100644 --- a/platforms/barebox.in +++ b/platforms/barebox.in @@ -8,7 +8,12 @@ config BAREBOX_ARCH_STRING default "ppc" if ARCH_PPC default "x86" if ARCH_X86 +config BAREBOX_DEPENDENCIES + tristate + select VIRTUAL + menuconfig BAREBOX + select BAREBOX_DEPENDENCIES select BOOTLOADER select HOST_LIBUSB if BAREBOX_NEEDS_HOST_LIBUSB select HOST_OPENSSL if BAREBOX_NEEDS_HOST_OPENSSL @@ -55,6 +60,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/rules/barebox.make b/rules/barebox.make index bea9f3adc..1c8463e63 100644 --- a/rules/barebox.make +++ b/rules/barebox.make @@ -34,6 +34,8 @@ BAREBOX_CONFIG := $(call ptx/in-platformconfigdir, \ # Prepare # ---------------------------------------------------------------------------- +BAREBOX_INJECT_PATH := ${PTXDIST_SYSROOT_TARGET}/usr/lib/firmware + # use host pkg-config for host tools BAREBOX_PATH := PATH=$(HOST_PATH) @@ -94,6 +96,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) # ---------------------------------------------------------------------------- -- 2.30.2 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de