[meta-freescale] [PATCH v5 2/4] recipes: Limit BSP specific recipes on relevant SOCs

Khem Raj raj.khem at gmail.com
Fri Sep 28 13:18:49 PDT 2018


This helps in using meta-freescale with other BSP layers in same
projects, which is common usecase

Signed-off-by: Khem Raj <raj.khem at gmail.com>
Cc: Andreas Müller <schnitzeltony at gmail.com>
Cc: Zhenhua Luo <zhenhua.luo at nxp.com>
Cc: Otavio Salvador <otavio at ossystems.com.br>
---
v2: nativesdk-mxsldr is needed in SDK packagegroups
v3: Fine tune the overrides for qorq and mainline bsp specific recipes
v4: Set COMPATIBLE_HOST to (imx)
v5: Use COMAPTIBLE_MACHINE instead of COMPATIBLE_HOST, add more recipes

 dynamic-layers/openembedded-layer/recipes-dpaa/fmc/fmc_git.bb   | 1 +
 recipes-bsp/firmware-imx/firmware-imx_7.6.bb                    | 2 ++
 recipes-bsp/imx-uuc/imx-uuc_git.bb                              | 2 ++
 recipes-bsp/u-boot/u-boot-fslc-common_2018.09.inc               | 2 ++
 recipes-bsp/uefi/uefi_git.bb                                    | 1 +
 recipes-dpaa/fmlib/fmlib_git.bb                                 | 1 +
 recipes-graphics/drm/libdrm-armada_git.bb                       | 2 ++
 recipes-graphics/xorg-driver/xf86-video-armada_git.bb           | 2 ++
 recipes-kernel/dtc/dtc-145_git.bb                               | 1 +
 .../kernel-modules/kernel-module-imx-gpu-viv_6.2.4.p1.2+fslc.bb | 1 +
 .../kernel-modules/kernel-module-imx-gpu-viv_6.2.4.p1.6.bb      | 1 +
 recipes-security/optee/optee-client-qoriq.bb                    | 2 ++
 12 files changed, 18 insertions(+)

diff --git a/dynamic-layers/openembedded-layer/recipes-dpaa/fmc/fmc_git.bb b/dynamic-layers/openembedded-layer/recipes-dpaa/fmc/fmc_git.bb
index 76ece625..d839b6fc 100644
--- a/dynamic-layers/openembedded-layer/recipes-dpaa/fmc/fmc_git.bb
+++ b/dynamic-layers/openembedded-layer/recipes-dpaa/fmc/fmc_git.bb
@@ -45,3 +45,4 @@ PARALLEL_MAKE = ""
 
 PACKAGE_ARCH = "${MACHINE_SOCARCH}"
 
+COMPATIBLE_MACHINE = "(qoriq)"
diff --git a/recipes-bsp/firmware-imx/firmware-imx_7.6.bb b/recipes-bsp/firmware-imx/firmware-imx_7.6.bb
index 6c5f73ce..4f7b3890 100644
--- a/recipes-bsp/firmware-imx/firmware-imx_7.6.bb
+++ b/recipes-bsp/firmware-imx/firmware-imx_7.6.bb
@@ -100,3 +100,5 @@ PACKAGES =+ "${PN}-epdc ${PN}-brcm"
 
 FILES_${PN}-epdc = "${base_libdir}/firmware/imx/epdc/"
 FILES_${PN}-brcm = "${base_libdir}/firmware/bcm/*/*.bin ${base_libdir}/firmware/bcm/*/*.cal ${sysconfdir}/firmware/"
+
+COMPATIBLE_MACHINE = "(imx)"
diff --git a/recipes-bsp/imx-uuc/imx-uuc_git.bb b/recipes-bsp/imx-uuc/imx-uuc_git.bb
index 381c214a..a3a8387b 100644
--- a/recipes-bsp/imx-uuc/imx-uuc_git.bb
+++ b/recipes-bsp/imx-uuc/imx-uuc_git.bb
@@ -16,3 +16,5 @@ SRCREV = "323efa5e4c799c40503ac92a8104c33b090e6731"
 S = "${WORKDIR}/git"
 
 FILES_${PN} += "/linuxrc /fat"
+
+COMPATIBLE_MACHINE = "(imx)"
diff --git a/recipes-bsp/u-boot/u-boot-fslc-common_2018.09.inc b/recipes-bsp/u-boot/u-boot-fslc-common_2018.09.inc
index aaefd67f..18be28a3 100644
--- a/recipes-bsp/u-boot/u-boot-fslc-common_2018.09.inc
+++ b/recipes-bsp/u-boot/u-boot-fslc-common_2018.09.inc
@@ -14,3 +14,5 @@ SRCBRANCH = "2018.09+fslc"
 PV = "v2018.09+git${SRCPV}"
 
 S = "${WORKDIR}/git"
+
+COMPATIBLE_MACHINE = "(imx)"
diff --git a/recipes-bsp/uefi/uefi_git.bb b/recipes-bsp/uefi/uefi_git.bb
index f157d03d..baf430d8 100644
--- a/recipes-bsp/uefi/uefi_git.bb
+++ b/recipes-bsp/uefi/uefi_git.bb
@@ -28,3 +28,4 @@ FILES_${PN}-image += "/uefi/*"
 
 PACKAGE_ARCH = "${MACHINE_SOCARCH}"
 
+COMPATIBLE_MACHINE = "(qoriq)"
diff --git a/recipes-dpaa/fmlib/fmlib_git.bb b/recipes-dpaa/fmlib/fmlib_git.bb
index bbe1e535..1f31f631 100644
--- a/recipes-dpaa/fmlib/fmlib_git.bb
+++ b/recipes-dpaa/fmlib/fmlib_git.bb
@@ -28,3 +28,4 @@ ALLOW_EMPTY_${PN} = "1"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
+COMPATIBLE_MACHINE ?= "(qoriq)"
diff --git a/recipes-graphics/drm/libdrm-armada_git.bb b/recipes-graphics/drm/libdrm-armada_git.bb
index 937c68d7..0a14e371 100644
--- a/recipes-graphics/drm/libdrm-armada_git.bb
+++ b/recipes-graphics/drm/libdrm-armada_git.bb
@@ -13,3 +13,5 @@ SRC_URI = "git://git.armlinux.org.uk/~rmk/libdrm-armada.git"
 inherit autotools pkgconfig
 
 S = "${WORKDIR}/git"
+
+COMPATIBLE_MACHINE ?= "(imx)"
diff --git a/recipes-graphics/xorg-driver/xf86-video-armada_git.bb b/recipes-graphics/xorg-driver/xf86-video-armada_git.bb
index 30e3ae47..30372eff 100644
--- a/recipes-graphics/xorg-driver/xf86-video-armada_git.bb
+++ b/recipes-graphics/xorg-driver/xf86-video-armada_git.bb
@@ -44,3 +44,5 @@ EXTRA_OECONF = "--disable-etnaviv \
                 --disable-vivante \
                 --with-etnaviv-source=${WORKDIR}/etna_viv \
                 "
+
+COMPATIBLE_MACHINE = "(imx)"
diff --git a/recipes-kernel/dtc/dtc-145_git.bb b/recipes-kernel/dtc/dtc-145_git.bb
index 2776cc5e..bdd83990 100644
--- a/recipes-kernel/dtc/dtc-145_git.bb
+++ b/recipes-kernel/dtc/dtc-145_git.bb
@@ -16,3 +16,4 @@ do_install () {
     install -d ${D}/${bindir}
     install -m 755 dtc ${D}/${bindir}/dtc-145
 }
+COMPATIBLE_MACHINE = "(imx)"
diff --git a/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_6.2.4.p1.2+fslc.bb b/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_6.2.4.p1.2+fslc.bb
index 19f2dc7f..f9307fb4 100644
--- a/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_6.2.4.p1.2+fslc.bb
+++ b/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_6.2.4.p1.2+fslc.bb
@@ -17,3 +17,4 @@ S = "${WORKDIR}/git"
 inherit module
 
 KERNEL_MODULE_AUTOLOAD = "galcore"
+COMPATIBLE_MACHINE = "(imx)"
diff --git a/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_6.2.4.p1.6.bb b/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_6.2.4.p1.6.bb
index 0170695b..32279493 100644
--- a/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_6.2.4.p1.6.bb
+++ b/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_6.2.4.p1.6.bb
@@ -24,3 +24,4 @@ inherit module
 EXTRA_OEMAKE += "CONFIG_MXC_GPU_VIV=m"
 
 KERNEL_MODULE_AUTOLOAD = "galcore"
+COMPATIBLE_MACHINE = "(imx)"
diff --git a/recipes-security/optee/optee-client-qoriq.bb b/recipes-security/optee/optee-client-qoriq.bb
index 0a76743b..a5042703 100644
--- a/recipes-security/optee/optee-client-qoriq.bb
+++ b/recipes-security/optee/optee-client-qoriq.bb
@@ -27,3 +27,5 @@ do_install() {
 
     cp -a ${S}/out/export/include ${D}/usr/
 }
+
+COMPATIBLE_MACHINE = "(qoriq)"
-- 
2.19.0



More information about the meta-freescale mailing list