From bc937ade566528cc097c9321694c0f5f5ef8cbf6 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Thu, 25 Oct 2018 22:44:12 -0300 Subject: classes/use-imx-headers: Easy linux-imx-headers use This allow to easy reuse of binary packages among similar SoCs. The usual use for this is to share SoC specific packages among different boards independently of the kernel version it is using, as far it is ABI compatible with the official version it will just work. Following recipes has been reworked to make use of the class: - imx-lib - imx-test - imx-vpu-hantro - imx-vpu - imx-alsa-plugins - gstreamer1.0-plugins-base - gstreamer1.0-plugins-imx - imx-gst1.0-plugin Signed-off-by: Otavio Salvador Signed-off-by: Tom Hochstein --- classes/use-imx-headers.bbclass | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 classes/use-imx-headers.bbclass (limited to 'classes/use-imx-headers.bbclass') diff --git a/classes/use-imx-headers.bbclass b/classes/use-imx-headers.bbclass new file mode 100644 index 00000000..9dcd864d --- /dev/null +++ b/classes/use-imx-headers.bbclass @@ -0,0 +1,19 @@ +# Easy use of linux-imx-headers by packages +# +# This allow to easy reuse of binary packages among similar SoCs. The +# usual use for this is to share SoC specific packages among different +# boards independently of the kernel version it is using, as far it is +# ABI compatible with the official version it will just work. +# +# All recipes using this class ought to depend on linux-imx-headers +# and by default to use MACHINE_SOCARCH. +# +# Please use the STAGING_INCDIR_IMX variable to refer to the installed +# headers. +# +# Copyright 2018 (C) O.S. Systems Software LTDA. + +DEPENDS_append_imx = " linux-imx-headers" +PACKAGE_ARCH_imx ?= "${MACHINE_SOCARCH}" + +STAGING_INCDIR_IMX = "${STAGING_INCDIR}/imx" -- cgit v1.2.3-54-g00ecf