aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--classes/metatizen.bbclass17
-rw-r--r--conf/layer.conf4
2 files changed, 20 insertions, 1 deletions
diff --git a/classes/metatizen.bbclass b/classes/metatizen.bbclass
new file mode 100644
index 00000000000..83d95ee6e9b
--- /dev/null
+++ b/classes/metatizen.bbclass
@@ -0,0 +1,17 @@
+python () {
+ if bb.data.inherits_class('rootfs_rpm', d):
+ rootfsdepends = d.getVarFlag("do_rootfs", "depends", True)
+ rootfsdepends = rootfsdepends.replace("rpmresolve-native:do_populate_sysroot", "")
+ d.setVarFlag("do_rootfs", "depends", rootfsdepends)
+ if bb.data.inherits_class('image-live', d):
+ bootimgdepends = d.getVarFlag("do_bootimg", "depends", True)
+ bootimgdepends = bootimgdepends.replace(d.expand("${INITRD_IMAGE}:do_rootfs"), "")
+ d.setVarFlag("do_bootimg", "depends", bootimgdepends)
+}
+
+RPM_EXTRA_PKGDATA = "1"
+
+def package_rpm_extra_pkgdata(splitname, spec_file, d):
+ if localdata.getVar('MANIFESTFILES', True):
+ spec_file.append('%%manifest %s' % localdata.getVar('MANIFESTFILES', True))
+
diff --git a/conf/layer.conf b/conf/layer.conf
index 390dbb56f99..6b73e0d092f 100644
--- a/conf/layer.conf
+++ b/conf/layer.conf
@@ -51,4 +51,6 @@ PREFERRED_VERSION_libav = "9.13"
PREFERRED_VERSION_linux-yocto = "3.14.4+git%"
-WESTONSTARTUP ??= "weston-common" \ No newline at end of file
+WESTONSTARTUP ??= "weston-common"
+
+INHERIT += "metatizen"