From patchwork Wed Jul 25 15:01:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 949275 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=boundarydevices.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=boundarydevices-com.20150623.gappssmtp.com header.i=@boundarydevices-com.20150623.gappssmtp.com header.b="I3mEbJm6"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41bJNq4snjz9s1x for ; Thu, 26 Jul 2018 01:02:19 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 05E4F316EC; Wed, 25 Jul 2018 15:02:18 +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 rf6Wyy-Xw+8J; Wed, 25 Jul 2018 15:02:09 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id AB2443170B; Wed, 25 Jul 2018 15:02:07 +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 458361C0057 for ; Wed, 25 Jul 2018 15:02:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 42E13929D8 for ; Wed, 25 Jul 2018 15:02:04 +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 sRSnQbBclH1q for ; Wed, 25 Jul 2018 15:02:02 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by whitealder.osuosl.org (Postfix) with ESMTPS id 3EAFB929D3 for ; Wed, 25 Jul 2018 15:02:02 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id v14-v6so7759779wro.5 for ; Wed, 25 Jul 2018 08:02:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boundarydevices-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=dxs5vX1dWd5mI6k2WrujHW79flJ4OmEH55v6DOXdHyk=; b=I3mEbJm6+ChZeEW3CegY1oOqrfhsRZe+Mox9HEcevCAVkrshQX5637/pVK3Vw2z4cF 9CLpJREIcbB7mf8gwHrZ038pw7VSv3TZxDtcme9OV0RNKFG9t/YpmPLrgmRw6BRCMFnP a6okMzDC7ZbpaDDqkNoF1WhMrTWoDNboXIxDRLCf6zqruVfPSw28qWSYmBpQY2nTY1b5 RqvRD21KJqWDvp6ouJWbPPwzM5TszhnHD53oDTPlLDrGSW4nJu1MU6YEvK0bK5yxsCaM m7QJyLqm0zNJAo31GknurFkA0iaC2IXLjSjCcWd73JPiz7PnvaBGHdvHjhoFJzNBENYq aozQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=dxs5vX1dWd5mI6k2WrujHW79flJ4OmEH55v6DOXdHyk=; b=m82P4O1kD+OuIqeNYM2KRSpmq2Dsc6w/QY8RbfoiuxpUNKu7b/j477R9DWlz12W8Fo CeJyxFuxh+IsRKhWIOO4A0T/Os6/RuoqXSGaz+c9ujOuskjeMGMhoziXOMDJDbYDCdZP py+QKVVKigLd3rcztR5jDZ9FVtUWGBkZRJe/sXMM7hLB3sFIjkncHsIwzt7Zemv+udx2 Dl/J3ee6K0ueg4GfGrTsIniCRAf0HmycBHhMdSxRJSCSUtXnXivFpZDMs6CNwV4IVlLo udxhw2bNdk1PnAcetKhWOR/oWLXQ2FYbWe3T50B4i7UVb1mfUaoLkJpoa1vZQhFTGIty EogA== X-Gm-Message-State: AOUpUlFW9IR8If3/o2IF6nmjtLm7N5Pc4rqROYcoTKxhkr3x1m+QMBpl ZBI4FhALM5covgzOtY0h6e4elxTFH78= X-Google-Smtp-Source: AAOMgpetKanKfiCpL5LPC+f3ui+wfHwSFESdZbn/79wnug2AEBmiVR1Sn8coEsvmL7NdXowtV7SECg== X-Received: by 2002:adf:ec04:: with SMTP id x4-v6mr13908092wrn.245.1532530920468; Wed, 25 Jul 2018 08:02:00 -0700 (PDT) Received: from g751.home (2a01cb040a78e30028cbd66b90cf39f4.ipv6.abo.wanadoo.fr. [2a01:cb04:a78:e300:28cb:d66b:90cf:39f4]) by smtp.googlemail.com with ESMTPSA id q188-v6sm7173425wmd.36.2018.07.25.08.01.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Jul 2018 08:01:59 -0700 (PDT) From: Gary Bisson To: buildroot@buildroot.org Date: Wed, 25 Jul 2018 17:01:43 +0200 Message-Id: <20180725150149.30774-3-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180725150149.30774-1-gary.bisson@boundarydevices.com> References: <20180725150149.30774-1-gary.bisson@boundarydevices.com> Subject: [Buildroot] [PATCH 2/8] imx-vpu: rename package to imx-vpu-cnm X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: thomas.petazzoni@bootlin.com MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" So far the i.MX processors have been using a Chips&Media CODA VPU. But the latest generation of processors (starting with i.MX8MQ) uses VPU cores from Hantro which is provided as imx-vpu-hantro package. NXP chose in Yocto to keep the imx-vpu naming for Chips&Media package and created a virtual "imxvpu" package that can either be provided by imx-vpu or imx-vpu-hantro. Since this naming can be confusing (IMO), renaming the imx-vpu package to imx-vpu-cnm and then create a virtual imx-vpu one should be clearer. Signed-off-by: Gary Bisson --- package/freescale-imx/Config.in | 2 +- package/freescale-imx/imx-codec/imx-codec.mk | 2 +- .../{imx-vpu => imx-vpu-cnm}/Config.in | 12 +++--- .../imx-vpu-cnm.hash} | 0 .../freescale-imx/imx-vpu-cnm/imx-vpu-cnm.mk | 39 +++++++++++++++++++ package/freescale-imx/imx-vpu/imx-vpu.mk | 39 ------------------- package/freescale-imx/imx-vpuwrap/Config.in | 2 +- .../freescale-imx/imx-vpuwrap/imx-vpuwrap.mk | 2 +- package/libimxvpuapi/Config.in | 2 +- package/libimxvpuapi/libimxvpuapi.mk | 2 +- 10 files changed, 51 insertions(+), 51 deletions(-) rename package/freescale-imx/{imx-vpu => imx-vpu-cnm}/Config.in (54%) rename package/freescale-imx/{imx-vpu/imx-vpu.hash => imx-vpu-cnm/imx-vpu-cnm.hash} (100%) create mode 100644 package/freescale-imx/imx-vpu-cnm/imx-vpu-cnm.mk delete mode 100644 package/freescale-imx/imx-vpu/imx-vpu.mk diff --git a/package/freescale-imx/Config.in b/package/freescale-imx/Config.in index 30e71b825f..5e0c7ff291 100644 --- a/package/freescale-imx/Config.in +++ b/package/freescale-imx/Config.in @@ -79,7 +79,7 @@ source "package/freescale-imx/imx-lib/Config.in" source "package/freescale-imx/imx-m4fwloader/Config.in" source "package/freescale-imx/imx-parser/Config.in" source "package/freescale-imx/imx-uuc/Config.in" -source "package/freescale-imx/imx-vpu/Config.in" +source "package/freescale-imx/imx-vpu-cnm/Config.in" source "package/freescale-imx/imx-vpuwrap/Config.in" source "package/freescale-imx/firmware-imx/Config.in" if (BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX51 || BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX53) diff --git a/package/freescale-imx/imx-codec/imx-codec.mk b/package/freescale-imx/imx-codec/imx-codec.mk index 784c1fa4a9..7b8a5bd4d5 100644 --- a/package/freescale-imx/imx-codec/imx-codec.mk +++ b/package/freescale-imx/imx-codec/imx-codec.mk @@ -21,7 +21,7 @@ ifeq ($(BR2_ARM_EABIHF),y) IMX_CODEC_CONF_OPTS += --enable-fhw endif -ifeq ($(BR2_PACKAGE_IMX_VPU),y) +ifeq ($(BR2_PACKAGE_IMX_VPU_CNM),y) IMX_CODEC_CONF_OPTS += --enable-vpu endif diff --git a/package/freescale-imx/imx-vpu/Config.in b/package/freescale-imx/imx-vpu-cnm/Config.in similarity index 54% rename from package/freescale-imx/imx-vpu/Config.in rename to package/freescale-imx/imx-vpu-cnm/Config.in index 779717f5ed..1d8b1cb397 100644 --- a/package/freescale-imx/imx-vpu/Config.in +++ b/package/freescale-imx/imx-vpu-cnm/Config.in @@ -1,17 +1,17 @@ -comment "imx-vpu needs an i.MX platform with VPU support" +comment "imx-vpu-cnm needs an i.MX platform with VPU support" depends on BR2_arm depends on !BR2_PACKAGE_FREESCALE_IMX_HAS_VPU -config BR2_PACKAGE_IMX_VPU - bool "imx-vpu" +config BR2_PACKAGE_IMX_VPU_CNM + bool "imx-vpu-cnm" depends on BR2_arm # Only relevant for i.MX depends on BR2_PACKAGE_FREESCALE_IMX_HAS_VPU select BR2_PACKAGE_FIRMWARE_IMX help Library of userspace helpers specific for the Freescale i.MX - platform. It wraps the kernel interfaces for the i.MX platform - Video Processing Unit (VPU) driver. It requires a kernel that - includes the i.MX specific headers to be built. + platform integrating a Chips&Media CODA Video Processing Unit + (VPU). It requires a kernel that includes the i.MX specific + headers to be built. This library is provided by Freescale as-is and doesn't have an upstream. diff --git a/package/freescale-imx/imx-vpu/imx-vpu.hash b/package/freescale-imx/imx-vpu-cnm/imx-vpu-cnm.hash similarity index 100% rename from package/freescale-imx/imx-vpu/imx-vpu.hash rename to package/freescale-imx/imx-vpu-cnm/imx-vpu-cnm.hash diff --git a/package/freescale-imx/imx-vpu-cnm/imx-vpu-cnm.mk b/package/freescale-imx/imx-vpu-cnm/imx-vpu-cnm.mk new file mode 100644 index 0000000000..a6cca08e9c --- /dev/null +++ b/package/freescale-imx/imx-vpu-cnm/imx-vpu-cnm.mk @@ -0,0 +1,39 @@ +################################################################################ +# +# imx-vpu-cnm +# +################################################################################ + +IMX_VPU_CNM_VERSION = 5.4.37 +IMX_VPU_CNM_SITE = $(FREESCALE_IMX_SITE) +IMX_VPU_CNM_SOURCE = imx-vpu-$(IMX_VPU_CNM_VERSION).bin + +IMX_VPU_CNM_INSTALL_STAGING = YES + +IMX_VPU_CNM_MAKE_ENV = \ + $(TARGET_MAKE_ENV) \ + $(TARGET_CONFIGURE_OPTS) \ + CROSS_COMPILE="$(TARGET_CROSS)" \ + PLATFORM=$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM) + +IMX_VPU_CNM_LICENSE = NXP Semiconductor Software License Agreement +IMX_VPU_CNM_LICENSE_FILES = EULA COPYING +IMX_VPU_CNM_REDISTRIBUTE = NO + +define IMX_VPU_CNM_EXTRACT_CMDS + $(call FREESCALE_IMX_EXTRACT_HELPER,$(IMX_VPU_CNM_DL_DIR)/$(IMX_VPU_CNM_SOURCE)) +endef + +define IMX_VPU_CNM_BUILD_CMDS + $(IMX_VPU_CNM_MAKE_ENV) $(MAKE1) -C $(@D) +endef + +define IMX_VPU_CNM_INSTALL_STAGING_CMDS + $(IMX_VPU_CNM_MAKE_ENV) $(MAKE1) -C $(@D) DEST_DIR=$(STAGING_DIR) install +endef + +define IMX_VPU_CNM_INSTALL_TARGET_CMDS + $(IMX_VPU_CNM_MAKE_ENV) $(MAKE1) -C $(@D) DEST_DIR=$(TARGET_DIR) install +endef + +$(eval $(generic-package)) diff --git a/package/freescale-imx/imx-vpu/imx-vpu.mk b/package/freescale-imx/imx-vpu/imx-vpu.mk deleted file mode 100644 index 2bcfe53eba..0000000000 --- a/package/freescale-imx/imx-vpu/imx-vpu.mk +++ /dev/null @@ -1,39 +0,0 @@ -################################################################################ -# -# imx-vpu -# -################################################################################ - -IMX_VPU_VERSION = 5.4.37 -IMX_VPU_SITE = $(FREESCALE_IMX_SITE) -IMX_VPU_SOURCE = imx-vpu-$(IMX_VPU_VERSION).bin - -IMX_VPU_INSTALL_STAGING = YES - -IMX_VPU_MAKE_ENV = \ - $(TARGET_MAKE_ENV) \ - $(TARGET_CONFIGURE_OPTS) \ - CROSS_COMPILE="$(TARGET_CROSS)" \ - PLATFORM=$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM) - -IMX_VPU_LICENSE = NXP Semiconductor Software License Agreement -IMX_VPU_LICENSE_FILES = EULA COPYING -IMX_VPU_REDISTRIBUTE = NO - -define IMX_VPU_EXTRACT_CMDS - $(call FREESCALE_IMX_EXTRACT_HELPER,$(IMX_VPU_DL_DIR)/$(IMX_VPU_SOURCE)) -endef - -define IMX_VPU_BUILD_CMDS - $(IMX_VPU_MAKE_ENV) $(MAKE1) -C $(@D) -endef - -define IMX_VPU_INSTALL_STAGING_CMDS - $(IMX_VPU_MAKE_ENV) $(MAKE1) -C $(@D) DEST_DIR=$(STAGING_DIR) install -endef - -define IMX_VPU_INSTALL_TARGET_CMDS - $(IMX_VPU_MAKE_ENV) $(MAKE1) -C $(@D) DEST_DIR=$(TARGET_DIR) install -endef - -$(eval $(generic-package)) diff --git a/package/freescale-imx/imx-vpuwrap/Config.in b/package/freescale-imx/imx-vpuwrap/Config.in index bdfa147867..85eb16004d 100644 --- a/package/freescale-imx/imx-vpuwrap/Config.in +++ b/package/freescale-imx/imx-vpuwrap/Config.in @@ -11,7 +11,7 @@ config BR2_PACKAGE_IMX_VPUWRAP depends on BR2_LINUX_KERNEL depends on BR2_arm # Only relevant for i.MX depends on BR2_PACKAGE_FREESCALE_IMX_HAS_VPU - select BR2_PACKAGE_IMX_VPU + select BR2_PACKAGE_IMX_VPU_CNM help Wrapper library for the vpu library, giving it a different API. diff --git a/package/freescale-imx/imx-vpuwrap/imx-vpuwrap.mk b/package/freescale-imx/imx-vpuwrap/imx-vpuwrap.mk index edba87279f..0b60868e9a 100644 --- a/package/freescale-imx/imx-vpuwrap/imx-vpuwrap.mk +++ b/package/freescale-imx/imx-vpuwrap/imx-vpuwrap.mk @@ -7,7 +7,7 @@ IMX_VPUWRAP_VERSION = 1.0.68 IMX_VPUWRAP_SITE = $(FREESCALE_IMX_SITE) IMX_VPUWRAP_SOURCE = imx-vpuwrap-$(IMX_VPUWRAP_VERSION).bin -IMX_VPUWRAP_DEPENDENCIES = imx-vpu +IMX_VPUWRAP_DEPENDENCIES = imx-vpu-cnm IMX_VPUWRAP_INSTALL_STAGING = YES IMX_VPUWRAP_LICENSE = NXP Semiconductor Software License Agreement diff --git a/package/libimxvpuapi/Config.in b/package/libimxvpuapi/Config.in index 8b8b839ce8..3d25b3b751 100644 --- a/package/libimxvpuapi/Config.in +++ b/package/libimxvpuapi/Config.in @@ -6,7 +6,7 @@ config BR2_PACKAGE_LIBIMXVPUAPI bool "libimxvpuapi" depends on BR2_arm # Only relevant for i.MX depends on BR2_PACKAGE_FREESCALE_IMX_HAS_VPU - select BR2_PACKAGE_IMX_VPU + select BR2_PACKAGE_IMX_VPU_CNM help This library provides an API for using the iMX6 VPU video engine. It is an alternative to Freescale's VPU diff --git a/package/libimxvpuapi/libimxvpuapi.mk b/package/libimxvpuapi/libimxvpuapi.mk index bcabbf3877..27189ff044 100644 --- a/package/libimxvpuapi/libimxvpuapi.mk +++ b/package/libimxvpuapi/libimxvpuapi.mk @@ -8,7 +8,7 @@ LIBIMXVPUAPI_VERSION = 0.10.3 LIBIMXVPUAPI_SITE = $(call github,Freescale,libimxvpuapi,$(LIBIMXVPUAPI_VERSION)) LIBIMXVPUAPI_LICENSE = LGPL-2.1+ LIBIMXVPUAPI_LICENSE_FILES = LICENSE -LIBIMXVPUAPI_DEPENDENCIES = host-pkgconf host-python imx-vpu +LIBIMXVPUAPI_DEPENDENCIES = host-pkgconf host-python imx-vpu-cnm LIBIMXVPUAPI_INSTALL_STAGING = YES $(eval $(waf-package))