]> code.ossystems Code Review - meta-freescale.git/commitdiff
linux-imx-headers: fix imx headers missing in sdk
authorAndrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
Fri, 22 May 2020 20:22:53 +0000 (20:22 +0000)
committerOtavio Salvador <otavio@ossystems.com.br>
Mon, 25 May 2020 12:42:11 +0000 (09:42 -0300)
i.MX-specific headers are missing in SDK once generated via image
do_populate_sdk task.

This was caused by dropped ALLOW_EMPTY package-controlling variable
which is required for this recipe in order to indicate that package can
have RDEPENDS.

Additional RDEPENDS are also required by packages using new mechanisms
to include linux-imx-headers, this allows headers to be propagated to
the SDK when dependent package is included.

Introduce ALLOW_EMPTY in recipe and RDEPENDS in use-imx-headers bbclass
to have imx headers to be populated in the SDK.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
classes/use-imx-headers.bbclass
recipes-kernel/linux/linux-imx-headers_5.4.3.bb

index d2214b6d128f89e15123d59c89c1333852906a10..fcec68c8b3e0432b1ba01e7b27419786ae10ef85 100644 (file)
 # Copyright 2018 (C) O.S. Systems Software LTDA.
 
 DEPENDS_append_imx = " linux-imx-headers"
+
+# Set runtime dependency of -dev for package inheriting this class to
+# linux-imx-headers-dev package. This is required in order to propagate
+# headers into the SDK
+RDEPENDS_${PN}-dev += "linux-imx-headers-dev"
+
 PACKAGE_ARCH_imx ?= "${MACHINE_SOCARCH}"
 
 STAGING_INCDIR_IMX = "${STAGING_INCDIR}/imx"
index 8d52233db0f5f7e8a661dc48ac220afdeb1a57fe..4257c41a7f08b3121c0ba4b28a54c1d71b6317e1 100644 (file)
@@ -59,6 +59,14 @@ do_install() {
     done
 }
 
+# Allow to build empty main package, this is required in order for -dev package
+# to be propagated into the SDK
+#
+# Without this setting the RDEPENDS in other recipes fails to find this
+# package, therefore causing the -dev package also to be skipped effectively not
+# populating it into SDK
+ALLOW_EMPTY_${PN} = "1"
+
 INHIBIT_DEFAULT_DEPS = "1"
 DEPENDS += "unifdef-native bison-native rsync-native"