From patchwork Mon Jun 29 08:25:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Stephane Viau (OSS)" X-Patchwork-Id: 1318785 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=oss.nxp.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-NXP1-onmicrosoft-com header.b=HS/Lfx6a; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49wLyR3lkFz9sQt for ; Mon, 29 Jun 2020 18:59:11 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 0DDE987577; Mon, 29 Jun 2020 08:59:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IVuKvZ5xRNtT; Mon, 29 Jun 2020 08:59:08 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 14C8F87592; Mon, 29 Jun 2020 08:59:08 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 15D981BF20D for ; Mon, 29 Jun 2020 08:59:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 1139A87DA2 for ; Mon, 29 Jun 2020 08:59:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9UxwYOFbgWML for ; Mon, 29 Jun 2020 08:59:06 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2071.outbound.protection.outlook.com [40.107.21.71]) by whitealder.osuosl.org (Postfix) with ESMTPS id C3558868D8 for ; Mon, 29 Jun 2020 08:59:05 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nrEL+noN883T5uptcRRV52Lxt9nDIWT/wLJg8Wcdw4LfOSXl18hvGiGWrotLVnPLlkrTCx6Ywf1VLKOFHbm5D2DRBB0MWgMhUFW/O2hPx2p8GJYDEB+qqCI5XquiffkmMRxp5NuzRM8+dMG0xxFaYVzvdyYykqjHRGHNDFfRDsw+LkdzUYjNDpmG1xp71BCFsBiJWPBlIhmJJUPy0C0gBYkPy6Pn9Q8vJJUGokxQl+vEyZulIKKGUjLHMcRmeSoiEbcGTnVZ2pv6YsXWeII/mz4M+m8vU2gOGqRNNZt5PrXb6eeEgqu/4P2SFSBHFOiIrqrtfJ8V0NbCTFy4C9gsAg== 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-SenderADCheck; bh=bzZ5VTdFHQNCI57zGnNuIRAxAhxRyAD/UhWo0s15gjs=; b=QUIU/PAuXpHnFeiXVljJeKNdJqWWnsJHMXyJeDnLfE8+AS0fwR5VXq+I5CoKvqaKC4OgAqYFNtY13XOtNTbl+C6Rf2oCwXHZ7txOEid/XSWxfrKwwKiizqcc/ki87tbXE5LTivDDxDYOAvNfd7SDQi7EFijzcPyYiiQoHlyyiwIqg2ymt1/CRodHk7vg0slzq6NOakaqfw1TA3/TmUlQ1rbYjI6VEINVQG6tPEYyVDJsWzXz67x82D5ukGLVgYUIMNQ5VU+HcpCCyza452jxEKxYkZICAYqAUche2GE5ZBEwel49HivI/ix0l+kq16mVa1OtjT3LPr3Lq0WL9ZZ4gA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bzZ5VTdFHQNCI57zGnNuIRAxAhxRyAD/UhWo0s15gjs=; b=HS/Lfx6aS52zwNulbLQpsZqOFSBuOfETk2nDl7FdnyrfhbqB1AM/2t+Fs9mIWv+SDHt41JAMC219RDTpyafFWJ4QpIZ8pQoHm54J7ek8MoA6ZVl4oZVkINiB/GP5mBp0bjW5OFl2DzU0IwvcPGncAE9lBCndPgXUWWJTEwElvI0= Authentication-Results: buildroot.org; dkim=none (message not signed) header.d=none;buildroot.org; dmarc=none action=none header.from=oss.nxp.com; Received: from AM0PR04MB4786.eurprd04.prod.outlook.com (2603:10a6:208:cf::25) by AM0PR04MB6163.eurprd04.prod.outlook.com (2603:10a6:208:13f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.21; Mon, 29 Jun 2020 08:25:54 +0000 Received: from AM0PR04MB4786.eurprd04.prod.outlook.com ([fe80::a900:801:e20:3812]) by AM0PR04MB4786.eurprd04.prod.outlook.com ([fe80::a900:801:e20:3812%4]) with mapi id 15.20.3131.026; Mon, 29 Jun 2020 08:25:54 +0000 From: Stephane Viau To: buildroot@buildroot.org Date: Mon, 29 Jun 2020 10:25:45 +0200 Message-Id: <1593419148-26821-2-git-send-email-stephane.viau@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1593419148-26821-1-git-send-email-stephane.viau@oss.nxp.com> References: <1593419148-26821-1-git-send-email-stephane.viau@oss.nxp.com> X-ClientProxiedBy: AM0PR10CA0030.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:17c::40) To AM0PR04MB4786.eurprd04.prod.outlook.com (2603:10a6:208:cf::25) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (2a01:e0a:43f:82f0:e5ce:dba0:335b:3910) by AM0PR10CA0030.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:17c::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3131.21 via Frontend Transport; Mon, 29 Jun 2020 08:25:53 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [2a01:e0a:43f:82f0:e5ce:dba0:335b:3910] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 9e623abd-7cca-4552-4cc6-08d81c060a0e X-MS-TrafficTypeDiagnostic: AM0PR04MB6163: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-Forefront-PRVS: 044968D9E1 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: O1dS2RfjSJ8hdesvRG4Rgncu1kae+GJWGN9xab6Z7voTR7N9js6307BC3CkIfXmB+epoTcNKvR4C4wuWG1WfnvrhF19QAXzXjQ+A2y8XGQPXHGa5BlHg3DDRAxKOuU4y+gCrwSrArS+T8UK9+bsxgp74VhtnQQFJK2yXx7CodJELU54mZI7ne3NAJmVMxohaDYMtJVCAs3uY1hpFkKi4pih9jAxT8xa8pAsiHXUmP+xU7LyJlQSC4eyP2qZhic7eo2G4IIZ7+SbCX1jCtvEVpb8AgApj84XcFsUXK/dlwzzS09EKlf+O+vua8AdCzze6UX5X8fnFm5UrvGKX2Y4BjrLMvXcdAdN/NExH92S9botiZpw7/InUmd4DhPoJD/WVuP1Drx4z+jrbbsDBC9txAQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR04MB4786.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(39860400002)(346002)(376002)(366004)(136003)(396003)(52116002)(8936002)(6666004)(6512007)(6506007)(66476007)(66946007)(8676002)(4326008)(316002)(16526019)(54906003)(83380400001)(186003)(66556008)(69590400007)(86362001)(478600001)(2616005)(2906002)(44832011)(6916009)(5660300002)(6486002)(21314003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: HV0j/CY3n6fF4eS8EAn9uwGMLVov+wAghKDwMxqSFWHtXt/2xwSiaGAXr60ZUqbcUgGcdcjg3scvVFq+Mx/eDrYb9RBTCWsO9qw9RPOGlm0NSaznRXxOQRMWd27Kp2lqSa9kKT3a1Yfrc0+qXKixRClVjsg2ww61TQZHWo7/VTiJHnl6a/FvaMSo+httyLgOKaWnByohfA1xMRdY2/mdG62+8dt9rqXH3BphXF+ZYdczZfBW1i3JDsRKSHZ0VqVkNcRLrYkMsPP6PQhtmjYnaBnkrT8UXLKBOUIrOIvPqtg/9MchIk8vpFK/jK1s/qmNL8gWmAvRwyKS17cqLMSZbg8R0AfXqN/4vc4LU95+pYtrCjHHgUBwTs6wZkpjF/g2ZsD7kHQZx7pGFeqD93l03Mbed6nU+DzgqJhjx2nI6LEod+ikwmQswZuKw2uzuHLvp8zVMHc7TX6ZJr0ABVlevudOdROOhe5nf9eytIlVIX4cDXGn2OEYLW3wN7OI3vl1u1JKQHMGY1wbSzOKrzF+Mb++z/sz7hH1KfxqRhvwx9Y= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9e623abd-7cca-4552-4cc6-08d81c060a0e X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB4786.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jun 2020 08:25:54.0114 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: CIPyoeRtq/G867JxYpUfQObfFrOMsqYhJeldkkVcJk99q4nQQQ4zS6UlwCKou8RwNYLslNHAe9JmA4QYZGJ+2w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6163 Subject: [Buildroot] [PATCH v2 1/4] package/freescale-imx: Move DDR FW choice down to firmware-imx package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Gary Bisson , Stephane Viau , Fabio Estevam , Refik Tuzakli , Thomas Petazzoni , "Yann E . MORIN" Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The DDR FW along with all other FW code that need to be used in bootloader or installed on target are related to the firmware-imx package. This patch does this job as well as fixing the conjugation of NEED*s* in the symbol name. Also take advantage of this patch to make the DDR FW dependant on BR2_PACKAGE_FIRMWARE_IMX. Note that BR2_PACKAGE_FIRMWARE_IMX_xxx is the preferred naming convention for the upcoming couple of patches. Suggested-by: Thomas Petazzoni Signed-off-by: Stephane Viau --- configs/freescale_imx8mnevk_defconfig | 2 +- package/freescale-imx/Config.in | 6 ------ package/freescale-imx/firmware-imx/Config.in | 15 +++++++++++---- package/freescale-imx/firmware-imx/firmware-imx.mk | 6 +++--- 4 files changed, 15 insertions(+), 14 deletions(-) diff --git a/configs/freescale_imx8mnevk_defconfig b/configs/freescale_imx8mnevk_defconfig index a859d1c..6d91e3a 100644 --- a/configs/freescale_imx8mnevk_defconfig +++ b/configs/freescale_imx8mnevk_defconfig @@ -15,7 +15,7 @@ BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y BR2_PACKAGE_FREESCALE_IMX=y BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN=y BR2_PACKAGE_FIRMWARE_IMX=y -BR2_PACKAGE_FIRMWARE_DDRFW_DDR4=y +BR2_PACKAGE_FIRMWARE_IMX_DDR4=y BR2_TARGET_ROOTFS_EXT2=y BR2_TARGET_ROOTFS_EXT2_4=y BR2_TARGET_ROOTFS_EXT2_SIZE="120M" diff --git a/package/freescale-imx/Config.in b/package/freescale-imx/Config.in index 0be37ce..b0c7de8 100644 --- a/package/freescale-imx/Config.in +++ b/package/freescale-imx/Config.in @@ -45,15 +45,12 @@ config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8 config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M bool "imx8m" - select BR2_PACKAGE_FREESCALE_IMX_NEED_DDR_FW config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM bool "imx8mm" - select BR2_PACKAGE_FREESCALE_IMX_NEED_DDR_FW config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN bool "imx8mn" - select BR2_PACKAGE_FREESCALE_IMX_NEED_DDR_FW config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X bool "imx8x" @@ -99,9 +96,6 @@ config BR2_PACKAGE_FREESCALE_IMX_HAS_VIV_GPU BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN || \ BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X -config BR2_PACKAGE_FREESCALE_IMX_NEED_DDR_FW - bool - source "package/freescale-imx/imx-alsa-plugins/Config.in" source "package/freescale-imx/imx-codec/Config.in" source "package/freescale-imx/imx-kobs/Config.in" diff --git a/package/freescale-imx/firmware-imx/Config.in b/package/freescale-imx/firmware-imx/Config.in index 4962992..d6310e6 100644 --- a/package/freescale-imx/firmware-imx/Config.in +++ b/package/freescale-imx/firmware-imx/Config.in @@ -9,22 +9,29 @@ config BR2_PACKAGE_FIRMWARE_IMX This library is provided by Freescale as-is and doesn't have an upstream. -if BR2_PACKAGE_FREESCALE_IMX_NEED_DDR_FW +config BR2_PACKAGE_FIRMWARE_IMX_NEEDS_DDR_FW + bool + depends on BR2_PACKAGE_FIRMWARE_IMX + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN + +if BR2_PACKAGE_FIRMWARE_IMX_NEEDS_DDR_FW choice bool "DDR training binaries" - default BR2_PACKAGE_FIRMWARE_DDRFW_LPDDR4 + default BR2_PACKAGE_FIRMWARE_IMX_LPDDR4 help Choose the DDR training binaries to be used depending on the kind of memory that is available on the target board (DDR4, LPDDR4, etc...). -config BR2_PACKAGE_FIRMWARE_DDRFW_LPDDR4 +config BR2_PACKAGE_FIRMWARE_IMX_LPDDR4 bool "lpddr4" help Use LPDDR4 binaries (i.e.: lpddr4_pmu_train_*.bin) -config BR2_PACKAGE_FIRMWARE_DDRFW_DDR4 +config BR2_PACKAGE_FIRMWARE_IMX_DDR4 bool "DDR4" help Use DDR4 binaries (i.e.: ddr4_*_201810.bin). diff --git a/package/freescale-imx/firmware-imx/firmware-imx.mk b/package/freescale-imx/firmware-imx/firmware-imx.mk index 6beacc0..55ca6fc 100644 --- a/package/freescale-imx/firmware-imx/firmware-imx.mk +++ b/package/freescale-imx/firmware-imx/firmware-imx.mk @@ -18,10 +18,10 @@ define FIRMWARE_IMX_EXTRACT_CMDS $(call FREESCALE_IMX_EXTRACT_HELPER,$(FIRMWARE_IMX_DL_DIR)/$(FIRMWARE_IMX_SOURCE)) endef -ifeq ($(BR2_PACKAGE_FREESCALE_IMX_NEED_DDR_FW),y) +ifeq ($(BR2_PACKAGE_FIRMWARE_IMX_NEEDS_DDR_FW),y) FIRMWARE_IMX_INSTALL_IMAGES = YES -ifeq ($(BR2_PACKAGE_FIRMWARE_DDRFW_LPDDR4),y) +ifeq ($(BR2_PACKAGE_FIRMWARE_IMX_LPDDR4),y) FIRMWARE_IMX_DDRFW_DIR = $(@D)/firmware/ddr/synopsys define FIRMWARE_IMX_PREPARE_LPDDR4_FW $(TARGET_OBJCOPY) -I binary -O binary --pad-to 0x8000 --gap-fill=0x0 \ @@ -46,7 +46,7 @@ define FIRMWARE_IMX_PREPARE_DDR_FW $(BINARIES_DIR)/lpddr4_pmu_train_fw.bin ln -sf $(BINARIES_DIR)/lpddr4_pmu_train_fw.bin $(BINARIES_DIR)/ddr_fw.bin endef -else ifeq ($(BR2_PACKAGE_FIRMWARE_DDRFW_DDR4),y) +else ifeq ($(BR2_PACKAGE_FIRMWARE_IMX_DDR4),y) FIRMWARE_IMX_DDRFW_DIR = $(@D)/firmware/ddr/synopsys define FIRMWARE_IMX_PREPARE_DDR4_FW $(TARGET_OBJCOPY) -I binary -O binary --pad-to 0x8000 --gap-fill=0x0 \ From patchwork Mon Jun 29 08:25:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Stephane Viau (OSS)" X-Patchwork-Id: 1318784 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=oss.nxp.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-NXP1-onmicrosoft-com header.b=SgvXDOk8; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49wLxz0S7vz9sQt for ; Mon, 29 Jun 2020 18:58:47 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 3A9CD88800; Mon, 29 Jun 2020 08:58:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9GTAzKLhPaU8; Mon, 29 Jun 2020 08:58:44 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 249E888801; Mon, 29 Jun 2020 08:58:44 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 3ED771BF2C0 for ; Mon, 29 Jun 2020 08:58:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 3B64520794 for ; Mon, 29 Jun 2020 08:58:43 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Hin8sL1WyI7w for ; Mon, 29 Jun 2020 08:58:42 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60067.outbound.protection.outlook.com [40.107.6.67]) by silver.osuosl.org (Postfix) with ESMTPS id 21ED8203D5 for ; Mon, 29 Jun 2020 08:58:42 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i6CzvbkbO1CMO5hUBmPKhJIk91I97uOtARnvt5eiLC0v+Cq/xXqRevpZa+RWh62yDGLANLz17g71uGs/BaOpR/AZlzAUglYUUv35+qEk06Ki4fstYx1a2XZzoh9BXa8bTVl7hxzgkc7lmgK8s5EMYtUR9D6X9dt4hMR00JUW4sUUyBAVvi9EHA25vzjvfpRzg639GGkz+zUUfpFd8YaHXqF+t0xmqwgBqhHaJOpzz/0tNcYR+qtPFvsRkQGvf5SOZZdWC5VY+/f+IUZDHMUUkmfzCZazeJ5K0jK19J0q1459y6iNHdWQT8s0Pdco+WeCvI3Ra2HMmcAACW3wpkRlXA== 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-SenderADCheck; bh=AgOzHNeRXZHuwQZlhrA0/PcPeUiyeyPX5rUlqHQncxE=; b=Yk3TM9gMf72oVK4zgR1WetFJx6M3xEHmNdmMGLE5R/gPbsuvhXTdNmX0r1LMusV5o/bxHd94cKc8Ub76XdlG6kq4c8HPLAoeRNFqDChQYaLDA6AL+0g7SI05Y3zLxw9Im0NnTfNI+dGzVMPKiTAwsyjtba5NIwq62fbooGHOoLPpSct4JydomJnu4H70bgS7+9q/ICgfL3SwZ8En+qrHB1hlQqHwmR1qslGzOcBwqs0yXCxTcujqGgsQeuMHeFrCw+aGrWkHObsaKpUoFURdgnU7Ld/bhQtxHiNSk+ywYi2VWpUG+QNCvq8AatFwOpq3VM2pYdNqX4wTjjeDblv3yw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AgOzHNeRXZHuwQZlhrA0/PcPeUiyeyPX5rUlqHQncxE=; b=SgvXDOk861SFKKSFbo8vfM3Dm5X2IPQO4I3WvFpBzWODw1V+a8UiHIi8tJdK+lsbAwueZdobPE9TG9x16+SP0ujNVpk5Z5mMw+6q+srAmFyIGiZznemhwxgJbEdLRxzX4kDJ7zMlDQbt0NpWxJLChnAhsv6qlRTn49ig+MR+6do= Authentication-Results: buildroot.org; dkim=none (message not signed) header.d=none;buildroot.org; dmarc=none action=none header.from=oss.nxp.com; Received: from AM0PR04MB4786.eurprd04.prod.outlook.com (2603:10a6:208:cf::25) by AM0PR04MB6163.eurprd04.prod.outlook.com (2603:10a6:208:13f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.21; Mon, 29 Jun 2020 08:25:55 +0000 Received: from AM0PR04MB4786.eurprd04.prod.outlook.com ([fe80::a900:801:e20:3812]) by AM0PR04MB4786.eurprd04.prod.outlook.com ([fe80::a900:801:e20:3812%4]) with mapi id 15.20.3131.026; Mon, 29 Jun 2020 08:25:55 +0000 From: Stephane Viau To: buildroot@buildroot.org Date: Mon, 29 Jun 2020 10:25:46 +0200 Message-Id: <1593419148-26821-3-git-send-email-stephane.viau@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1593419148-26821-1-git-send-email-stephane.viau@oss.nxp.com> References: <1593419148-26821-1-git-send-email-stephane.viau@oss.nxp.com> X-ClientProxiedBy: AM0PR10CA0030.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:17c::40) To AM0PR04MB4786.eurprd04.prod.outlook.com (2603:10a6:208:cf::25) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (2a01:e0a:43f:82f0:e5ce:dba0:335b:3910) by AM0PR10CA0030.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:17c::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3131.21 via Frontend Transport; Mon, 29 Jun 2020 08:25:54 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [2a01:e0a:43f:82f0:e5ce:dba0:335b:3910] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 39a18292-c070-4e18-04c7-08d81c060ab1 X-MS-TrafficTypeDiagnostic: AM0PR04MB6163: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-Forefront-PRVS: 044968D9E1 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CslFFk9Cayw/1IZcCSOVw2qRNhoRtk520rjJudMDDo8kRzsFSsoGjnRofz7l6AQp8ZDY8Jq8Ld4gOXPrX/K7tz/TrqhbhFjeyi2E1y4c94NZxXL2bbRegtoX1zeSuSQxwiVYsEeRkpPfEGBUiNpwQ993LTYL8mS6mowMX9UoNTLbqIDPca2wOAySHC2J5cRBHDSZq5/DbBZC6TvqZ4CxW+i9QtigJ9YOMj9AYoFK0e4jwB9J2L7xxpmpdXiellLoC4WYaIo9AnffAOYz6ugZ4N741tBGKyNrq+WregZ0DkbiF3m6yXY5Dhqq7VVV9EM1su6F3rgDUTTt1I76UvyYDuiBYDbB09uhGK4UuOqA/j/ALtnEjoxIB3Oh0EoQM3gS6e5KfQWQN9yytTSLO+s+lgS1h7d4smxBly8QrduY2ZYkR0bborr1LRqA5YkqWnqyUnh25KcT+ZyZvvQKydMhtG6PAUwxTb1dBvHwYrZtpO7uT4DQAeqnUlnbsRzPkqzO X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR04MB4786.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(39860400002)(346002)(376002)(366004)(136003)(396003)(52116002)(8936002)(6666004)(6512007)(6506007)(66476007)(66946007)(8676002)(4326008)(316002)(16526019)(54906003)(83380400001)(186003)(66556008)(69590400007)(86362001)(478600001)(2616005)(2906002)(44832011)(6916009)(966005)(5660300002)(6486002)(15866825006); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: /0IcEXKwJcbk6RZwGo+q3V3oz0lJOIsik8+UOwV/1qwyQvrqFasyraeqcP78r0CPuSWdQt4EhUVvhor/knQJdTq+lp54mkN4KQLO98pxGf/l2Rf43Yp/QX0axsWq0waHy1zFyfGoq2ku6pONz+YR2tsRbSIDxWrEE+6cxdoddpiaEAojrA6tNIfI4N6IKWYC5+DqqkZYkaNucwAOgy9P9XCaHKepyRTYody/CPN6va5s/sjrdLdW09xpAUWuTEcPB/IkaNUf08DRyylHKsBphqnosOxDzNJ3alyr0LN5GDcZSz8vBNHHGZEqttCYhxmWjYp0W+erK14LK6ajMDLn5SBLpxQ88tks8zAkER5I3tKGD46soU3TFKpCWvZbxvEE/kUNxi5ZaUI0S82oeVqlvRg+6a/rCWaMPhwjdZjAj/EjcI1QICaRlDsseNi5RU8yYRMFAbiPt5g4dLkbUjn7Bk4C7zDTSgW73X/x9nSwHaNMatlF/3BgbLPeW0E0AwUQbNFuZA+3900dwGhW+/z0VvesCx6xvMUuFQKvSaNDeFI= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 39a18292-c070-4e18-04c7-08d81c060ab1 X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB4786.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jun 2020 08:25:54.9868 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Q9WePc9mYPMCjY2h07dYA/4QLB7SagKLfVNr3U6j/4C+tU2e2GF/+cqyrJ6zDK6h1JkAOj/oAc3FhTUF9Idmbw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6163 Subject: [Buildroot] [PATCH v2 2/4] package/freescale-imx/firmware-imx: Add option for all i.MX FW needs X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Gary Bisson , Stephane Viau , Fabio Estevam , Refik Tuzakli , Thomas Petazzoni , "Yann E . MORIN" Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Some SoC need a HDMI FW for their bootloader, some other require EPDC, SDMA and/or VPU. Instead of trying to "guess" what firmware images need to be installed in firmware-imx.mk, let the Config framework do the job and allow each SoC to pick what firmware they need. Note that this patch should also help introducing an eventual DP FW, as Gary mentioned in a separate thread [1]. [1] http://lists.busybox.net/pipermail/buildroot/2020-May/283181.html Suggested-by: Yann E. MORIN Suggested-by: Thomas Petazzoni Signed-off-by: Stephane Viau --- v2: - Do not embed VPU FW for i.MX 6S/6UL/7 (Fabio) - Name VPU FW after IP name (Fabio) - Rename symbols using the "_NEED_" in their name (Thomas) Signed-off-by: Stephane Viau --- package/freescale-imx/firmware-imx/Config.in | 43 +++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/package/freescale-imx/firmware-imx/Config.in b/package/freescale-imx/firmware-imx/Config.in index d6310e6..2ac5dfa 100644 --- a/package/freescale-imx/firmware-imx/Config.in +++ b/package/freescale-imx/firmware-imx/Config.in @@ -4,11 +4,52 @@ config BR2_PACKAGE_FIRMWARE_IMX help Firmware blobs for the Freescale i.MX SoCs. - It contains blobs for SDMA and VPU. + It contains blobs for SDMA, VPU, etc... This library is provided by Freescale as-is and doesn't have an upstream. +config BR2_PACKAGE_FIRMWARE_IMX_SDMA + bool + depends on BR2_PACKAGE_FIRMWARE_IMX + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX25_3STACK + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX27ADS + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX37_3STACK + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX50 + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX51 + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX53 + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX6Q + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX6S + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX6UL + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX7 + +config BR2_PACKAGE_FIRMWARE_IMX_VPU_CODA + bool + depends on BR2_PACKAGE_FIRMWARE_IMX + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX27ADS + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX37_3STACK + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX50 + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX51 + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX53 + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX6Q + +config BR2_PACKAGE_FIRMWARE_IMX_VPU_MALONE + bool + depends on BR2_PACKAGE_FIRMWARE_IMX + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8 + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X + +config BR2_PACKAGE_FIRMWARE_IMX_HDMI + bool + depends on BR2_PACKAGE_FIRMWARE_IMX + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M + +config BR2_PACKAGE_FIRMWARE_IMX_EPDC + bool + depends on BR2_PACKAGE_FIRMWARE_IMX + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX6Q + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX6S + config BR2_PACKAGE_FIRMWARE_IMX_NEEDS_DDR_FW bool depends on BR2_PACKAGE_FIRMWARE_IMX From patchwork Mon Jun 29 08:25:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Stephane Viau (OSS)" X-Patchwork-Id: 1318786 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=oss.nxp.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-NXP1-onmicrosoft-com header.b=Zt4TlTqg; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49wM0D0xM8z9sQt for ; Mon, 29 Jun 2020 19:00:44 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 1272189332; Mon, 29 Jun 2020 09:00:42 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tIdmSEQX3-BS; Mon, 29 Jun 2020 09:00:41 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 4D0D889372; Mon, 29 Jun 2020 09:00:41 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 546E21BF2F6 for ; Mon, 29 Jun 2020 09:00:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 4E499221F8 for ; Mon, 29 Jun 2020 09:00:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ef9hfKtWkHtF for ; Mon, 29 Jun 2020 09:00:38 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60055.outbound.protection.outlook.com [40.107.6.55]) by silver.osuosl.org (Postfix) with ESMTPS id 7EFEB20794 for ; Mon, 29 Jun 2020 09:00:38 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jlIFXKXK8jlu/IhCqDFH5lsy89XppSo17q+c0qn9aUgAoNstRxA0tP7Zdk4ClbcZ6qCTzJt8AX85V76a4ydI9mgaQ2vGIdKDv39vAxOZGZRwiY3eGSBOhsyBUl1+Qm+brij4Gv6GO4qZAe+35iTeBLQVmtbPmjeXNAt+IoFFQS4IRg7kUyUaQlrdl58prQuRC9bVDpLMIKBbx/5ZIVSiP4wCttPisAWJn6TZqDIuWKP59HRSFhC73MZSBdudovlPOAI29HzvmjRFDqustsKooJvjBQBXy0eJBhJUpytjWd42MVGK/Cnl1xxFZ9dG/se1WJnLdeQmyhKMwCbtlF8Imw== 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-SenderADCheck; bh=fggXQJrLAkKRMQXAEqghdgdLiL07ECI7FEKz+BJDU8c=; b=jcJufCGpf2G4bVA/GwIyShtKu4jBdnkoGKHFycqqJMfZq+VVxAZjjw+O1+vClQm2+ftA5h/RN+ybEu/N0IbbsntmKmD5SY31pq3gIQJHOlztofE209qiLnZCYsgllExm6AnsUlbk4VDfbYbVv+SxN7v/mG+pSAdQSlVBiiO0utvuzJiMBVd2UadY4xE+yQ7xegbd+YRS+/qE9SK6JREO8vGAvaHziIRKUvxsls2EqC0yu6B/py81vEzf/KcKF782t+USpSDJDFmu/pQEOdYgtERJlpBorgdFE68XOlCeJS9Sg0OLP+Bgak/oSVgpw3S3mXE4yEBmK/oblP+kzWf68Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fggXQJrLAkKRMQXAEqghdgdLiL07ECI7FEKz+BJDU8c=; b=Zt4TlTqgorFLWCdUszClTuP4+gPOLIiRUr7/pcRNMiQi4cgTtpScdqwtMff38vt8tZrcKdTHcD1liM1AddqkS8wgQT5s16JNX97NTJRTNzrc/xULMtZtWNCzmjVrZ0vclLxZsUEmc4eeRpYd+cdn6WDfdmHJu5E2erojLpjv7xA= Authentication-Results: buildroot.org; dkim=none (message not signed) header.d=none;buildroot.org; dmarc=none action=none header.from=oss.nxp.com; Received: from AM0PR04MB4786.eurprd04.prod.outlook.com (2603:10a6:208:cf::25) by AM0PR04MB6163.eurprd04.prod.outlook.com (2603:10a6:208:13f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.21; Mon, 29 Jun 2020 08:25:56 +0000 Received: from AM0PR04MB4786.eurprd04.prod.outlook.com ([fe80::a900:801:e20:3812]) by AM0PR04MB4786.eurprd04.prod.outlook.com ([fe80::a900:801:e20:3812%4]) with mapi id 15.20.3131.026; Mon, 29 Jun 2020 08:25:56 +0000 From: Stephane Viau To: buildroot@buildroot.org Date: Mon, 29 Jun 2020 10:25:47 +0200 Message-Id: <1593419148-26821-4-git-send-email-stephane.viau@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1593419148-26821-1-git-send-email-stephane.viau@oss.nxp.com> References: <1593419148-26821-1-git-send-email-stephane.viau@oss.nxp.com> X-ClientProxiedBy: AM0PR10CA0030.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:17c::40) To AM0PR04MB4786.eurprd04.prod.outlook.com (2603:10a6:208:cf::25) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (2a01:e0a:43f:82f0:e5ce:dba0:335b:3910) by AM0PR10CA0030.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:17c::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3131.21 via Frontend Transport; Mon, 29 Jun 2020 08:25:55 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [2a01:e0a:43f:82f0:e5ce:dba0:335b:3910] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 188fee7d-c214-41e8-0b84-08d81c060b4b X-MS-TrafficTypeDiagnostic: AM0PR04MB6163: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5797; X-Forefront-PRVS: 044968D9E1 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QEPvwXdIEtGGU5B2NmyGxFJ/YEwAe59calgotdCUcndxpelalQLoqye1UVtcODb51RqEnRx2jlx3rWYKjGqnRJ7aCsgFT6RZ2G+nI9RTEiPWbm9Y2o5r3L+/coHmCpz3CHk9sqQoes65TwrAgXuivvGFpryrXCJ4pWM+jbddgqJtiH5gYXawMCBFs96mgc4Q82EpeD3sfFJKtYww/hW+xIpxU1tMb0vQOzpokvhKyMZDo5IVcwWNDVljkcPxNT129Iri/aQjWiH2k1eeLSzKi/Wri7GBJ3EUDNXNbakDx/TtVrPoz2U/cQPau6A4fpddzYWi7bR8bY9LkcFjc5j6UTM4rCCOUR6l4+tpUrnlmbD8vmBpjM+PIXzj5iPr5vVeEMVMMpVmHhC3JWQfbFDmtcMsiBVK29OD+rCV/hKDOtWSwF3R01uzqbiSvRdOtm2f X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR04MB4786.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(39860400002)(346002)(376002)(366004)(136003)(396003)(52116002)(8936002)(6666004)(6512007)(6506007)(66476007)(66946007)(8676002)(4326008)(316002)(16526019)(54906003)(83380400001)(186003)(66556008)(69590400007)(86362001)(478600001)(2616005)(2906002)(44832011)(6916009)(5660300002)(6486002)(21314003)(15866825006); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: Xa/vzntnOxKyFO26HdYNbVHjezE4a8gmnEtGSPiw3kxKi01SowzFf7WEqa1KynscLJrXHuj4YqfpySn/UAV1wgRfO4gf+IvCGsGePGxx7kksXNXffmCbT/fxgMxPegu1VFVti9RWMzRXKX/JU3goy17lMV2IRjTmkctvzozY2f0NzO8cPxs2TWHGbNEtMOHKqhmk1tYQmfHG+usH4T27zcan9ls2z+v0aN33+J/H9NcAPTwwXlZm4rXeNLAGftLewicDSr8VkY8bFaoEXH6F3fxRVL1w074EP79b+jNQnImK0rQtiKTHscw/Wd56M8wMLfwJPikhhzCK8ZOlPgqUQeU8kZIRhLpFx4kAt1oQepM3FSLAzye1pfP84HhUM4uhAAAVeG3HWVob23yHgw7NsgSjoqKDkDkm+hvrfqiv1dGQEB6nN1V8koeDVhQAajILLeGH42fTtz0t6dW+mxC5vj/NP2zphTBAKBY9pu4qSKUkoZetC8WR3fEBxRy3S4ubFnCXUPQXiIm0oW7+KiomyS7Z6HiyFlvTLcAXSWo3ekE= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 188fee7d-c214-41e8-0b84-08d81c060b4b X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB4786.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jun 2020 08:25:56.0412 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: aLt0LRMPFJ8ZAVe8cFSpDD7gswk2QcQRQAgQza4JHIY18+PKF9osky/ACYjsBzWgJmaPYjc/v5i2FHr2tpygZg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6163 Subject: [Buildroot] [PATCH v2 3/4] package/freescale-imx/firmware-imx: Clean up the image/target semantic X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Gary Bisson , Stephane Viau , Fabio Estevam , Refik Tuzakli , Thomas Petazzoni , "Yann E . MORIN" Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The newly introduced BR2_PACKAGE_FIRMWARE_IMX_xxx symbols shall be used in lieue of the SoC type when installing images or binaries on target. These new symbols let us define FIRMWARE_IMX_INSTALL_IMAGES_CMDS and FIRMWARE_IMX_INSTALL_TARGET_CMDS based on platform needs rather than SoC type. Suggested-by: Yann E. MORIN Signed-off-by: Stephane Viau --- v2: - Name VPU FW after IP name (Fabio) - Rename symbols using the "_NEED_" in their name (Thomas) - Remove unnecessary comments & move INSTALL_IMAGES down (Thomas) Signed-off-by: Stephane Viau --- package/freescale-imx/firmware-imx/firmware-imx.mk | 63 ++++++++++++++++------ 1 file changed, 46 insertions(+), 17 deletions(-) diff --git a/package/freescale-imx/firmware-imx/firmware-imx.mk b/package/freescale-imx/firmware-imx/firmware-imx.mk index 55ca6fc..d227eb2 100644 --- a/package/freescale-imx/firmware-imx/firmware-imx.mk +++ b/package/freescale-imx/firmware-imx/firmware-imx.mk @@ -12,8 +12,6 @@ FIRMWARE_IMX_LICENSE = NXP Semiconductor Software License Agreement FIRMWARE_IMX_LICENSE_FILES = EULA COPYING FIRMWARE_IMX_REDISTRIBUTE = NO -FIRMWARE_IMX_BLOBS = sdma vpu - define FIRMWARE_IMX_EXTRACT_CMDS $(call FREESCALE_IMX_EXTRACT_HELPER,$(FIRMWARE_IMX_DL_DIR)/$(FIRMWARE_IMX_SOURCE)) endef @@ -72,35 +70,66 @@ define FIRMWARE_IMX_PREPARE_DDR_FW ln -sf $(BINARIES_DIR)/ddr4_201810_fw.bin $(BINARIES_DIR)/ddr_fw.bin endef endif +endif # IMX_NEEDS_DDR_FW + +ifeq ($(BR2_PACKAGE_FIRMWARE_IMX_HDMI),y) +FIRMWARE_IMX_INSTALL_IMAGES = YES -ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M),y) define FIRMWARE_IMX_PREPARE_HDMI_FW cp $(@D)/firmware/hdmi/cadence/signed_hdmi_imx8m.bin \ $(BINARIES_DIR)/signed_hdmi_imx8m.bin endef endif -define FIRMWARE_IMX_INSTALL_IMAGES_CMDS - $(FIRMWARE_IMX_PREPARE_DDR_FW) - $(FIRMWARE_IMX_PREPARE_HDMI_FW) +ifeq ($(BR2_PACKAGE_FIRMWARE_IMX_EPDC),y) +FIRMWARE_IMX_INSTALL_TARGET = YES + +define FIRMWARE_IMX_INSTALL_TARGET_EPDC_FW + mkdir -p $(TARGET_DIR)/lib/firmware/imx + cp -r $(@D)/firmware/epdc $(TARGET_DIR)/lib/firmware/imx + mv $(TARGET_DIR)/lib/firmware/imx/epdc/epdc_ED060XH2C1.fw.nonrestricted \ + $(TARGET_DIR)/lib/firmware/imx/epdc/epdc_ED060XH2C1.fw endef -else ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X),y) -define FIRMWARE_IMX_INSTALL_TARGET_CMDS +endif + +ifeq ($(BR2_PACKAGE_FIRMWARE_IMX_SDMA),y) +FIRMWARE_IMX_INSTALL_TARGET = YES + +define FIRMWARE_IMX_INSTALL_TARGET_SDMA_FW + mkdir -p $(TARGET_DIR)/lib/firmware/imx + cp -r $(@D)/firmware/vpu $(TARGET_DIR)/lib/firmware +endef +endif + +ifeq ($(BR2_PACKAGE_FIRMWARE_IMX_VPU_CODA),y) +FIRMWARE_IMX_INSTALL_TARGET = YES + +define FIRMWARE_IMX_INSTALL_TARGET_VPU_FW + mkdir -p $(TARGET_DIR)/lib/firmware/imx + cp -r $(@D)/firmware/vpu $(TARGET_DIR)/lib/firmware +endef +endif + +ifeq ($(BR2_PACKAGE_FIRMWARE_IMX_VPU_MALONE),y) +FIRMWARE_IMX_INSTALL_TARGET = YES + +define FIRMWARE_IMX_INSTALL_TARGET_VPU_FW $(INSTALL) -D -m 0644 $(@D)/firmware/vpu/vpu_fw_imx8_dec.bin \ $(TARGET_DIR)/lib/firmware/vpu/vpu_fw_imx8_dec.bin $(INSTALL) -D -m 0644 $(@D)/firmware/vpu/vpu_fw_imx8_enc.bin \ $(TARGET_DIR)/lib/firmware/vpu/vpu_fw_imx8_enc.bin endef -else +endif + +define FIRMWARE_IMX_INSTALL_IMAGES_CMDS + $(FIRMWARE_IMX_PREPARE_DDR_FW) + $(FIRMWARE_IMX_PREPARE_HDMI_FW) +endef + define FIRMWARE_IMX_INSTALL_TARGET_CMDS - mkdir -p $(TARGET_DIR)/lib/firmware/imx - for blobdir in $(FIRMWARE_IMX_BLOBS); do \ - cp -r $(@D)/firmware/$${blobdir} $(TARGET_DIR)/lib/firmware; \ - done - cp -r $(@D)/firmware/epdc $(TARGET_DIR)/lib/firmware/imx - mv $(TARGET_DIR)/lib/firmware/imx/epdc/epdc_ED060XH2C1.fw.nonrestricted \ - $(TARGET_DIR)/lib/firmware/imx/epdc/epdc_ED060XH2C1.fw + $(FIRMWARE_IMX_INSTALL_TARGET_EPDC_FW) + $(FIRMWARE_IMX_INSTALL_TARGET_SDMA_FW) + $(FIRMWARE_IMX_INSTALL_TARGET_VPU_FW) endef -endif $(eval $(generic-package)) From patchwork Mon Jun 29 08:25:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Stephane Viau (OSS)" X-Patchwork-Id: 1318782 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=oss.nxp.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-NXP1-onmicrosoft-com header.b=Rz2uJG3a; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49wLxF42Jnz9sQt for ; Mon, 29 Jun 2020 18:58:09 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id DBBC0887FD; Mon, 29 Jun 2020 08:58:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IsPt-9D2i+60; Mon, 29 Jun 2020 08:58:07 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id E650D88800; Mon, 29 Jun 2020 08:58:06 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 07AE61BF2C0 for ; Mon, 29 Jun 2020 08:58:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 00072203D5 for ; Mon, 29 Jun 2020 08:58:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id l3+eg9MO9WnI for ; Mon, 29 Jun 2020 08:58:04 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60071.outbound.protection.outlook.com [40.107.6.71]) by silver.osuosl.org (Postfix) with ESMTPS id 22988220DA for ; Mon, 29 Jun 2020 08:58:04 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XMSc5oH3ITWjNSD3aLwow7Wfq+F4Wj2ClPU2vjc0ldmhBk4ma7HQwXoDeDLwcVC+mkuqjX8uqB7AHgJimtkvvekWOa46rFpyA2uC7f4oF+vH6xhwAIHae4bI4jP3u+/i9axG4q3Zi2qKx8SinaNWZ8C0LW/Tt6/vOAhhkkcVkuCmVjcxk3WLmt2mnUJEc2iUmg9HHc7J8HYIJorMs25kfE1ZMf811hDtYY3ihzcPe2yc/hEXtReukGLuSpsdo53KDdDvCClgtm4NkV4FBZMzct+j+BZSG2dEAqp1AjmKfXlgUPz5dFZ02ZiXKfGWvz+mOWlEKyEsrM1MSfAPmdTPkw== 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-SenderADCheck; bh=LdD68gbPW+i9UY+Dc6C5dij8+aAJxBLAzg4K/vsPFF0=; b=CfaHaDRt+IidOue9eOvMK4o8wzzLW7JTAIE1XkuUpOde/P1jUAY22aNT12gVzaLSvmaIgDS6BhdMX/8g1veKx6KYMPmHEYiTeIuvmNGIhvPU0vf8w0GewVrTzzIlvD2+UCsbLOaawz7J2ms5JCIu0RDbxhbpKLXEB8lpTQZDVxOLEhh8ROotBQ9zOdjtewtyJijnpx747K6oWnZQqSwVBahxJMOGthM/Yn2pbXhw7Mr/X5KZiPTDTr95uCneWjiBppUiIgNZwZjE/WyBRjSAvg+Z+XBb4Lo3npeG43IHQVN5UZtzLe3WYmxqExDf9OtCKr6M8Sct+GY8Bnqro5B1Kw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LdD68gbPW+i9UY+Dc6C5dij8+aAJxBLAzg4K/vsPFF0=; b=Rz2uJG3ayEnNcpHg6SgnI8x8rb2D8WgcUem+woyHBxBaYBizbgUm6dYfdyBnDs9VqWjYLwFSizeNTWHIz8qv/MnXT7Bl3xNcJpzpP9verY1risJL3awiJdda6EuZdZO81geADN2671/6dCmtVW9aupYqm5VEuAXdOusxyGoWfqs= Authentication-Results: buildroot.org; dkim=none (message not signed) header.d=none;buildroot.org; dmarc=none action=none header.from=oss.nxp.com; Received: from AM0PR04MB4786.eurprd04.prod.outlook.com (2603:10a6:208:cf::25) by AM0PR04MB6163.eurprd04.prod.outlook.com (2603:10a6:208:13f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.21; Mon, 29 Jun 2020 08:25:57 +0000 Received: from AM0PR04MB4786.eurprd04.prod.outlook.com ([fe80::a900:801:e20:3812]) by AM0PR04MB4786.eurprd04.prod.outlook.com ([fe80::a900:801:e20:3812%4]) with mapi id 15.20.3131.026; Mon, 29 Jun 2020 08:25:57 +0000 From: Stephane Viau To: buildroot@buildroot.org Date: Mon, 29 Jun 2020 10:25:48 +0200 Message-Id: <1593419148-26821-5-git-send-email-stephane.viau@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1593419148-26821-1-git-send-email-stephane.viau@oss.nxp.com> References: <1593419148-26821-1-git-send-email-stephane.viau@oss.nxp.com> X-ClientProxiedBy: AM0PR10CA0030.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:17c::40) To AM0PR04MB4786.eurprd04.prod.outlook.com (2603:10a6:208:cf::25) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (2a01:e0a:43f:82f0:e5ce:dba0:335b:3910) by AM0PR10CA0030.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:17c::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3131.21 via Frontend Transport; Mon, 29 Jun 2020 08:25:56 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [2a01:e0a:43f:82f0:e5ce:dba0:335b:3910] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 2510ebc0-ee56-47c5-79f3-08d81c060beb X-MS-TrafficTypeDiagnostic: AM0PR04MB6163: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-Forefront-PRVS: 044968D9E1 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NdLsuzizDLma+pNi4WoXpyvVQJoIUkKxh6QMiR4SgKIzh0C8epylTyPKfJrBNRdsj74Vt1NXPS1NE8LBLf+I9XUd5Q9SkobwqiJVhURPT84A6lUwM3Qd+OUlc96c7cAAlLv6Ov6VGlntt1j+NmQxs8sfWQ0xkaSCYdOrGD+aHHpnW6ZGnROoKsJv3EIMMLJ/bvADovJjHxJ4fQr4BLSdA53tNaFW1fBz7C0UetJifg2q6UF1N9m6TGcFdEEoPt01QbHwPWvdnKv7UEyofsp1Fqd4V9apFrldRJxQDMxyIzXJUbc1o9CaXP7UzlR6wLBLxmuVb+haRBApWpQa8jcKYp7W0Lhz9NlzV5X90lXUCM4vAKxn5h5qtwx+8Bv7CmAJBYYfY8RgU4I6G+XJiQ2a/w== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR04MB4786.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(39860400002)(346002)(376002)(366004)(136003)(396003)(52116002)(8936002)(6666004)(6512007)(66574015)(6506007)(66476007)(66946007)(8676002)(4326008)(316002)(16526019)(54906003)(83380400001)(186003)(66556008)(86362001)(478600001)(2616005)(2906002)(44832011)(6916009)(966005)(5660300002)(6486002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: URIOC7x4ZojIyAIc8BI17TV7nPFRVaNngAD6djBZnZt3Wnzq8GAZSsRJ8oVqTHA9V1MrFt2jtZ7sKajFs9BrEhYFOmR6hjbucmU6R5ZqvF06yGqfLikp+ZsODRw5MdlFgNDghQiMIhx/S9K5SVoDnN0fdmUn/Tw+Pe+Uw+t8xoHyTgCcFbZzzSL8VwGS/Rox2BiE+0FmluhwqjLa9uIuvsm2tztbot0ppnK95Fxl4fozybsLTf7hbSiodaA0z6+WPgkPPVwrn156i9Oa/CQpb4jcNxRGS6nyzRlpHMxDWW33YP70KciKMrgTeSC4Q4gvv/r29ogKC0fAJ/eSl9q/XSDlFo9QtvhWBnkB77icF45/BkAkO37mpTSvIaciNnsjaJ6BMf3IBw6n+SzeoOqS+EGjV3TaG6d13PQ4xZl6pacWQmfsBe9r6LCck0NTyN5qZxQx/6KXYPu/I8jDnEWtSrG1ZQQlQcXrqvIQXYDO2stz4wthcOaQ4BZdQH91qIPRMh6C7Ehl0u/OlzbKDpIKjwfsWlwDRSq2YALNFdJIY9I= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2510ebc0-ee56-47c5-79f3-08d81c060beb X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB4786.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jun 2020 08:25:57.1366 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: m8Ko4w8cXEZNYIsb3qCLNJafjdk6ttF1hPngHhSRH11H3h747CHHua/UBoVLroacdr/eGHOs2mhSY+7fBr64cQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6163 Subject: [Buildroot] [PATCH v2 4/4] package/freescale-imx/firmware-imx: Fix sdma/vpu firmware install path X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Gary Bisson , Stephane Viau , Fabio Estevam , Refik Tuzakli , Thomas Petazzoni , "Yann E . MORIN" Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" In a patch set that did not get in for other reasons, Sebastien proposed to fix the install path directory of the sdma and vpu firmware code [1]: "Mainline and NXP kernels expect the sdma firmware to be in /lib/firmware/imx/sdma so fix the install path [...]" By looking at the code, I believe this is correct even though I have no means to test it. [1] http://lists.busybox.net/pipermail/buildroot/2020-June/284875.html Suggested-by: Sébastien Szymanski Signed-off-by: Stephane Viau --- package/freescale-imx/firmware-imx/firmware-imx.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/freescale-imx/firmware-imx/firmware-imx.mk b/package/freescale-imx/firmware-imx/firmware-imx.mk index d227eb2..ac22d2c 100644 --- a/package/freescale-imx/firmware-imx/firmware-imx.mk +++ b/package/freescale-imx/firmware-imx/firmware-imx.mk @@ -97,7 +97,7 @@ FIRMWARE_IMX_INSTALL_TARGET = YES define FIRMWARE_IMX_INSTALL_TARGET_SDMA_FW mkdir -p $(TARGET_DIR)/lib/firmware/imx - cp -r $(@D)/firmware/vpu $(TARGET_DIR)/lib/firmware + cp -r $(@D)/firmware/vpu $(TARGET_DIR)/lib/firmware/imx endef endif @@ -106,7 +106,7 @@ FIRMWARE_IMX_INSTALL_TARGET = YES define FIRMWARE_IMX_INSTALL_TARGET_VPU_FW mkdir -p $(TARGET_DIR)/lib/firmware/imx - cp -r $(@D)/firmware/vpu $(TARGET_DIR)/lib/firmware + cp -r $(@D)/firmware/vpu $(TARGET_DIR)/lib/firmware/imx endef endif