classes: prepare some classes for native
Enable native recipes to inherit the following classes:
skeleton-python
skeleton-sdbus
skeleton-gdbus
dbus-dir
obmc-phosphor-dbus-service
Change-Id: I1d79ffc38792dd48016f09119fc8ace46a304a4b
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/meta-phosphor/classes/obmc-phosphor-dbus-service.bbclass b/meta-phosphor/classes/obmc-phosphor-dbus-service.bbclass
index 68a42ce..4066c6c 100644
--- a/meta-phosphor/classes/obmc-phosphor-dbus-service.bbclass
+++ b/meta-phosphor/classes/obmc-phosphor-dbus-service.bbclass
@@ -30,7 +30,7 @@
inherit dbus-dir
inherit obmc-phosphor-utils
-RDEPENDS_${PN} += "dbus-perms"
+RDEPENDS_${PN}_append_class-target = " dbus-perms"
DBUS_PACKAGES ?= "${PN}"
_INSTALL_DBUS_CONFIGS=""
diff --git a/meta-phosphor/classes/skeleton-gdbus.bbclass b/meta-phosphor/classes/skeleton-gdbus.bbclass
index 58df398..75bfc83 100644
--- a/meta-phosphor/classes/skeleton-gdbus.bbclass
+++ b/meta-phosphor/classes/skeleton-gdbus.bbclass
@@ -1,7 +1,11 @@
inherit skeleton
-DEPENDS += "glib-2.0 obmc-libobmc-intf"
+DEPENDS_append_class-target = " glib-2.0 obmc-libobmc-intf"
-do_install_append() {
+do_compile_class-native() {
+ :
+}
+
+do_install_append_class-target() {
oe_runmake install DESTDIR=${D}
}
diff --git a/meta-phosphor/classes/skeleton-python.bbclass b/meta-phosphor/classes/skeleton-python.bbclass
index 5464e2d..83fef54 100644
--- a/meta-phosphor/classes/skeleton-python.bbclass
+++ b/meta-phosphor/classes/skeleton-python.bbclass
@@ -1,5 +1,14 @@
-inherit skeleton
-inherit allarch
inherit setuptools
-DEPENDS += "python"
+do_compile_class-native() {
+ :
+}
+
+do_install_class-native() {
+ :
+}
+
+DEPENDS_append_class-target = " python"
+
+inherit skeleton
+inherit allarch
diff --git a/meta-phosphor/classes/skeleton-sdbus.bbclass b/meta-phosphor/classes/skeleton-sdbus.bbclass
index 627ce76..d6a1eab 100644
--- a/meta-phosphor/classes/skeleton-sdbus.bbclass
+++ b/meta-phosphor/classes/skeleton-sdbus.bbclass
@@ -1,7 +1,11 @@
inherit skeleton
-DEPENDS += "systemd"
+DEPENDS_append_class-target = " systemd"
-do_install_append() {
+do_compile_class-native() {
+ :
+}
+
+do_install_append_class-target() {
oe_runmake install DESTDIR=${D}
}