From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 24 Jan 2022 13:10:59 +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 1nByBX-00BsyC-Qq for lore@lore.pengutronix.de; Mon, 24 Jan 2022 13:10:59 +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 1nByBW-00086P-7x; Mon, 24 Jan 2022 13:10:58 +0100 Received: from mail-eopbgr140052.outbound.protection.outlook.com ([40.107.14.52] helo=EUR01-VE1-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 1nByAe-0007Jz-0p; Mon, 24 Jan 2022 13:10:04 +0100 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JhKGlJFW9NETdIyCfMyposhMLEyS6rRGJGNnqQFuAWRF5lE0wjlIWK38gkce3N+mzCzPj/VB7AqLSKw/dHDCzBhGxFQp4JymL+509M+qv4EqC58AyfVi5ueA56wu8vHyCo8Gb083/gKtihMPMnOCyjwfPD940cfUW5KetUr+td2/DNPw2Y2D6E75bY6HEVCr3g85WNqhasl+1GpSarBvbzoljANiG3Gu7A6nRAQfYAdUKg5NFBzW/9CmG+fpVh1yFjwLnFXbD3+h/7plz+Dqlj5f4AYXGAevyxmjtjXSNf+XykWeDUZb3hTMuDngJic4NFFfTtsLvQ68andITHY4YA== 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=G6n9/G9sU/sZa1FTxe0n02roDAYyHEZbZPERwGTqF0g=; b=gt1vBndsjbz60P+XxQpKPQX/8iNU+XMkZxPuuussrSMoHIphxoZrV/K5pCQi4/WOZ7nMq8XeF2HvizTxQhekis1fUyxKviG0Tez9lGXuT5AovrGI/ILz8L5oY+mSKya1/tO9IbV5Vq5kv5sb18vhfrF4fnooF+JUax/QsvLL4yJzvEx+xK30yP0/FBxCyb2Swd4oOH1WPL/iOylUXRHpJ76EJtRlJZwbY2tvOsOxmXPtO43Y/lErtV960RcQfM/HykmMb3T0Nye5jR0pzsvbPD+dMBZzO3yyM5S/w+Bjn42Zopfpi/Ecfah/t2idJtQD+X87F9TacEk/my++mPnkLA== 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=G6n9/G9sU/sZa1FTxe0n02roDAYyHEZbZPERwGTqF0g=; b=U0gdvf4cYLARMxZ1h1pyhlmHFDx0vmnflEya6dUDOF5bx/KXh7xMI1zYYnjFUMrjAQuNmLuIuk56Gt6nbzHOGnO9MgiysBUOVgYi8VcgetKsdYlTfYSFpj3Zz3QxTYDIJ6ej7uugNZ0vJ5P799WgbMIjJ+0G58xgy7x3gaHAfp0= 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 AS8PR08MB6962.eurprd08.prod.outlook.com (2603:10a6:20b:347::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.10; Mon, 24 Jan 2022 12:10:02 +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.4909.017; Mon, 24 Jan 2022 12:10:02 +0000 From: Michael Riesch To: ptxdist@pengutronix.de Date: Mon, 24 Jan 2022 13:09:41 +0100 Message-Id: <20220124120942.557161-5-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220124120942.557161-1-michael.riesch@wolfvision.net> References: <20220124120942.557161-1-michael.riesch@wolfvision.net> X-ClientProxiedBy: ZR0P278CA0177.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:45::11) 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: a3a0a10a-e733-4db5-ab73-08d9df327343 X-MS-TrafficTypeDiagnostic: AS8PR08MB6962:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JYssr/YxH4qAgqyt8Zx6+Q1gmUwEI9gpoDAtva8AVeobxrs3LLBSB6D5cAohxTVVbkxhLXLmZ6mXTlRc5F5A08vb9n5Hvw67RBhgf5rbiAYBjDUgNDWicic5Pw1YxfUziw+G1RGS0N+/1maG/DI0au7jKcjTUTsNc2JmloHj3iFcq19ZeWyy8R8HIr8vq6IYsUCsqAQV2FpeC/FVwuupZSuuS0Zd2FAWfDF/FjNPfdQPbZaFAq+POG4bKI0ScoSJKXBZJVI/hQotz23fPoiEmu/wio8ksR6jwfDOZXeI5PTqbzXSAscQ9XWShu6oMt8wvl64It3fBym++STiDs2MKQ75NVY2567/fiI5aI017cQNfF8e7Wx1q7imdDDPQ/gY+Iyh1OsPCaIgaT3vFd6P0azOvLMfJv/2OdnGsWmPeAeC/h9oIXZ4LBInO0OSz5PQ70dW8JSNJaPBAov/tKLeP0cex8WPvSuNy+Amk/7tHw1sfIykQrKdW1jbHxqRJ9MSRmWG1kwfjG36xxbcXP+Gj8q7f+jEQBtcZdQHJrZ6KG4n2Cj8rP3YRC/5m2uHa6mf808bjYbZnVQMISyOQBlpQ5EXjD8EiK4/fHsK6sEveqiCYOpxqrwVRkVR1Ab8Db0sK0U6/HGUSJmlkaNgnWZTmg== 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:(4636009)(366004)(44832011)(66476007)(8936002)(316002)(6666004)(6916009)(5660300002)(6506007)(8676002)(66556008)(107886003)(2906002)(1076003)(36756003)(4326008)(52116002)(508600001)(66946007)(2616005)(6486002)(6512007)(38100700002)(86362001)(186003)(450100002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?d0cdWtq0qu0xWGRT5fQ66XIPx2w7QMiWyf0tPXctLvQWp98zn4Uxf7nJtc2s?= =?us-ascii?Q?YKF81IsLEaJJ47oDUpD/hvskNg/uWaAeS8E/bei02625EUSLiAzMzSXPns2n?= =?us-ascii?Q?GfxvTFVyQ0IfX+oKEfT7tCp4Kp9wvqKq+8dzgHjitFaH4BuBQndLvP5jqEMp?= =?us-ascii?Q?ZkTq5ZSda3s8g1ogro/0pZsKmMMvLk9tMXmgK2fabGR+lmQf7lYbuywLl3VL?= =?us-ascii?Q?JVEDxwK3murAu9xFxfOWN/kF+EyoFUjEBlO0FA9jHRKkUSUkyouXdYOzdulq?= =?us-ascii?Q?UvQ7Tbdk3O/I7ulDWhl2h3AdVZId3dGTHn4BVjWKDkKD9F26sFtM6FQ4CkLo?= =?us-ascii?Q?S0K74PLrTVr6Pwp4assHSZv0R0YeFMsoHmBKw1KhhZFqnlkBrJw4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yJKGjBsoId9Tv1GXeqrWdEbVbxA0tMd4nfO5I9oD1?= =?us-ascii?Q?VecFjI3SKtHUPLWFdPQpNTj0GmTJ4ayg+ybAg71vL+gkwyAQugjDyGJATJ5n?= =?us-ascii?Q?14kPORsq88xEq758fowFYBgUH5t3b1YkOTVHG9M4zXFTINZdGatjBuPNVnFq?= =?us-ascii?Q?hmGbkQdYm/4y7SRAgMDdu99EjmWSs+AefCCV5pKcyHEaaCzxTFsUJXshykCH?= =?us-ascii?Q?VVwA8ThhKVcgfbzH3l7hk7P3uqk5S5ui0ZuAldor0gkxORE60kRAInRFAVte?= =?us-ascii?Q?NVmSCppNPbsN1Tijtn7oeV/fWB154Vee/rbPU0EKuS3okvLc/NCMNNknZWid?= =?us-ascii?Q?2WRgK5Wdx0IuTZXb6dViraSYoWVfrOCUWdeOpz4W939VFv8AkcpHLI7sbCp2?= =?us-ascii?Q?O13kxqCRaQivefClxPAeTcdNI3W30kLRnA8iW+5pEeEBDZ+UDE5rkzl/0hIi?= =?us-ascii?Q?TMs/ERKEyQ=3D=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: a3a0a10a-e733-4db5-ab73-08d9df327343 X-MS-Exchange-CrossTenant-AuthSource: HE1PR0802MB2426.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jan 2022 12:10:02.5938 (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: wEMkzSc1M6SC9p2LXxBWx3DAFQ8c3a0sKcOnnuyyLglNZVSZJbGgzfB5w6ZTIp97uGF2516N2NzpOqVKhvgspOBi1zKNJwHfF9DcxE0Ha0w= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6962 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.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 v5 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. Signed-off-by: Michael Riesch --- platforms/barebox.in | 8 ++++++++ platforms/barebox.rockchip.in | 1 + rules/barebox.make | 6 ++++++ 3 files changed, 15 insertions(+) create mode 100644 platforms/barebox.rockchip.in 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..8ecdb0762 --- /dev/null +++ b/platforms/barebox.rockchip.in @@ -0,0 +1 @@ +## SECTION=barebox_firmware 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