[meta-oe] mm-common: package the files from ${PN} in ${PN}-dev and use allarch

Message ID 20220523094414.503671-1-Martin.Jansa@gmail.com
State Under Review
Headers show
Series [meta-oe] mm-common: package the files from ${PN} in ${PN}-dev and use allarch | expand

Commit Message

Martin Jansa May 23, 2022, 9:44 a.m. UTC
* based on this bbappend from 2012:
  https://github.com/openwebos/meta-webos/commit/f4745112438a5ba1913708b6b6ac30234ec8076e
  time to finally get rid of it

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 .../recipes-core/mm-common/mm-common_1.0.4.bb    | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

Patch

diff --git a/meta-oe/recipes-core/mm-common/mm-common_1.0.4.bb b/meta-oe/recipes-core/mm-common/mm-common_1.0.4.bb
index 33969ff7a2..1ffdcfd045 100644
--- a/meta-oe/recipes-core/mm-common/mm-common_1.0.4.bb
+++ b/meta-oe/recipes-core/mm-common/mm-common_1.0.4.bb
@@ -6,7 +6,23 @@  GNOMEBASEBUILDCLASS = "meson"
 
 inherit gnomebase
 
+# All the recipe does is stage python and shell script, some autotools files; nothing is compiled.
+inherit allarch
+
 SRC_URI[archive.sha256sum] = "e954c09b4309a7ef93e13b69260acdc5738c907477eb381b78bb1e414ee6dbd8"
 SRC_URI += "file://0001-meson.build-do-not-ask-for-python-installation-versi.patch"
 
 BBCLASSEXTEND = "native"
+
+# These files aren't very usefull on target image, package them all in nnPN-dev
+FILES:${PN} = ""
+
+FILES:${PN}-dev += " \
+    ${datadir}/${BPN}/build \
+    ${datadir}/${BPN}/doctags \
+    ${datadir}/${BPN}/doctool \
+    ${bindir}/mm-common-get \
+    ${bindir}/mm-common-prepare \
+"
+# ${PN} package is empty, remove the default dependency on it
+RDEPENDS:${PN}-dev = ""