[oe-commits] Martin Jansa : frameworkd: install ogsmd configs for machines with enabled ogsmd ( not using fsogsmd yet)

git version control git at git.openembedded.org
Mon Jan 17 16:14:59 UTC 2011


Module: openembedded.git
Branch: master
Commit: 18b42a44fcb59933f278e46eaca11ea156152895
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=18b42a44fcb59933f278e46eaca11ea156152895

Author: Martin Jansa <Martin.Jansa at gmail.com>
Date:   Mon Jan 17 14:34:00 2011 +0100

frameworkd: install ogsmd configs for machines with enabled ogsmd (not using fsogsmd yet)

Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 recipes/freesmartphone/frameworkd_git.bb |   23 ++++++++++++++++++++++-
 1 files changed, 22 insertions(+), 1 deletions(-)

diff --git a/recipes/freesmartphone/frameworkd_git.bb b/recipes/freesmartphone/frameworkd_git.bb
index 03c2ec6..c5c7b41 100644
--- a/recipes/freesmartphone/frameworkd_git.bb
+++ b/recipes/freesmartphone/frameworkd_git.bb
@@ -6,7 +6,7 @@ DEPENDS = "python-cython-native python-pyrex-native"
 LICENSE = "GPL"
 SRCREV = "64d40c68c656b7926dfd7eb91101f1f9547a948b"
 PV = "0.9.5.9+gitr${SRCPV}"
-PR = "r9"
+PR = "r10"
 PE = "1"
 
 inherit distutils update-rc.d python-dir
@@ -26,6 +26,25 @@ do_configure_append() {
 }
 
 do_install_append() {
+  frameworkd_install_machine_specific_configs
+}
+
+# machines with enabled ogsmd
+do_install_append_a780() {
+  frameworkd_install_ogsmd_configs
+}
+do_install_append_eten-m800() {
+  frameworkd_install_ogsmd_configs
+}
+
+frameworkd_install_ogsmd_configs() {
+        # Install machine specific files
+        install -d ${D}${sysconfdir}/freesmartphone/ogsmd
+        install -m 0644 ${S}/etc/freesmartphone/ogsmd/cell.db ${D}${sysconfdir}/freesmartphone/ogsmd
+        install -m 0644 ${S}/etc/freesmartphone/ogsmd/la.db ${D}${sysconfdir}/freesmartphone/ogsmd
+        install -m 0644 ${S}/etc/freesmartphone/ogsmd/networks.tab ${D}${sysconfdir}/freesmartphone/ogsmd
+}
+frameworkd_install_machine_specific_configs() {
         # Fix permissions
         chmod 755 ${D}${sysconfdir}/init.d/frameworkd
         # Check for machine specific conf.
@@ -107,3 +126,5 @@ CONFFILES_${PN}-config = "\
 PACKAGE_ARCH_${PN} = "${BASE_PACKAGE_ARCH}"
 FILES_${PN} += "${sysconfdir}/dbus-1 ${sysconfdir}/freesmartphone ${sysconfdir}/init.d ${datadir}"
 FILES_${PN}-dbg += "${PYTHON_SITEPACKAGES_DIR}/framework/subsystems/*/.debug"
+
+#EXPORT_FUNCTIONS install_machine_specific_configs install_ogsmd_configs





More information about the Openembedded-commits mailing list