Skip to contentSkip to conversation

imx-vpu: remove kernel dependency

PATCH New Baruch Siach 3 participants 5 messages Sep 2, 2015 – Oct 2, 2015 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 imx-vpu: remove kernel dependency

The imx-vpu package builds just fine without any special kernel header.

---
 package/freescale-imx/imx-vpu/Config.in  | 5 -----
 package/freescale-imx/imx-vpu/imx-vpu.mk | 5 +----
 2 files changed, 1 insertion(+), 9 deletions(-)
package/freescale-imx/imx-vpu/Config.in +0 -5
index 8a9541607bcf..220385cec83d 100644
@@ -1,6 +1,5 @@
 config BR2_PACKAGE_IMX_VPU
 	bool "imx-vpu"
-	depends on BR2_LINUX_KERNEL
 	depends on BR2_arm # Only relevant for i.MX
 	select BR2_PACKAGE_FIRMWARE_IMX
 	help
@@ -11,7 +10,3 @@ config BR2_PACKAGE_IMX_VPU
 
 	  This library is provided by Freescale as-is and doesn't have
 	  an upstream.
-
-comment "imx-vpu needs an imx-specific Linux kernel to be built"
-	depends on BR2_arm
-	depends on !BR2_LINUX_KERNEL
package/freescale-imx/imx-vpu/imx-vpu.mk +1 -4
index 4c4a0311144f..599dce85c945 100644
@@ -10,14 +10,11 @@ IMX_VPU_SOURCE = imx-vpu-$(IMX_VPU_VERSION).bin
 
 IMX_VPU_INSTALL_STAGING = YES
 
-# imx-vpu needs access to imx-specific kernel headers
-IMX_VPU_DEPENDENCIES += linux
 IMX_VPU_MAKE_ENV = \
 	$(TARGET_MAKE_ENV) \
 	$(TARGET_CONFIGURE_OPTS) \
 	CROSS_COMPILE="$(CCACHE) $(TARGET_CROSS)" \
-	PLATFORM=$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM) \
-	INCLUDE="-idirafter $(LINUX_DIR)/include"
+	PLATFORM=$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM)
 
 IMX_VPU_LICENSE = Freescale Semiconductor Software License Agreement
 IMX_VPU_LICENSE_FILES = EULA vpu/EULA.txt
Signature · 1 line
2.5.0
#1 lore raw

PATCH 2/2 imx-vpu: bump to verson 5.4.31

Also, update license file location, and add a hash file.

---
 package/freescale-imx/imx-vpu/imx-vpu.hash | 2 ++
 package/freescale-imx/imx-vpu/imx-vpu.mk   | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)
 create mode 100644 package/freescale-imx/imx-vpu/imx-vpu.hash
package/freescale-imx/imx-vpu/imx-vpu.hash new file +2 -0
new file mode 100644
index 000000000000..3fdd092e1699
@@ -0,0 +1,2 @@
+# Locally computed
+sha256 a266ab317fbd866541eae506d68983bcd361f49d1162a66bb34cb8088ceec88c imx-vpu-5.4.31.bin
package/freescale-imx/imx-vpu/imx-vpu.mk +2 -2
index 599dce85c945..360685755441 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-IMX_VPU_VERSION = 5.4.27
+IMX_VPU_VERSION = 5.4.31
 IMX_VPU_SITE = $(FREESCALE_IMX_SITE)
 IMX_VPU_SOURCE = imx-vpu-$(IMX_VPU_VERSION).bin
 
@@ -17,7 +17,7 @@ IMX_VPU_MAKE_ENV = \
 	PLATFORM=$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM)
 
 IMX_VPU_LICENSE = Freescale Semiconductor Software License Agreement
-IMX_VPU_LICENSE_FILES = EULA vpu/EULA.txt
+IMX_VPU_LICENSE_FILES = EULA COPYING
 IMX_VPU_REDISTRIBUTE = NO
 
 define IMX_VPU_EXTRACT_CMDS
Signature · 1 line
2.5.0
#3 lore raw

PATCH 1/2 imx-vpu: remove kernel dependency

In reply to Baruch Siach

Hi Baruch,

Quoted 1 line · Baruch Siach

The imx-vpu package builds just fine without any special kernel header.

Indeed it seems that it builds fine without it. Yocto recipe still depends on the kernel but I see no point in keeping it.

Thanks,
Gary

#4 lore raw

PATCH 1/2 imx-vpu: remove kernel dependency

In reply to Baruch Siach

Dear Baruch Siach,

Quoted 8 lines · Baruch Siach

The imx-vpu package builds just fine without any special kernel header.

---
 package/freescale-imx/imx-vpu/Config.in  | 5 -----
 package/freescale-imx/imx-vpu/imx-vpu.mk | 5 +----
 2 files changed, 1 insertion(+), 9 deletions(-)

Both patches applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com