summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-05-22 10:03:59 +0000
committerRichard Purdie <richard@openedhand.com>2008-05-22 10:03:59 +0000
commit39eb232793686099027d7b5577e541ac12339042 (patch)
tree5254028d9b5dd5be1c4f9497456af4d857ef1113 /meta
parent691f2eb5764d72801cecd8ab999782777d556b61 (diff)
downloadopenembedded-core-39eb232793686099027d7b5577e541ac12339042.tar.gz
openembedded-core-39eb232793686099027d7b5577e541ac12339042.tar.bz2
openembedded-core-39eb232793686099027d7b5577e541ac12339042.tar.xz
openembedded-core-39eb232793686099027d7b5577e541ac12339042.zip
libgsmd: Sync with OE.dev
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4539 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta')
-rw-r--r--meta/packages/gsm/files/0001-Introduce-ports.patch (renamed from meta/packages/libgsmd/files/0001-Introduce-ports.patch)0
-rw-r--r--meta/packages/gsm/files/0002-Flush-all-pending-commands-before-restarting-the-mod.patch (renamed from meta/packages/libgsmd/files/0002-Flush-all-pending-commands-before-restarting-the-mod.patch)0
-rw-r--r--meta/packages/gsm/files/0003-Correctly-segment-incoming-usock-data-into-packets.patch (renamed from meta/packages/libgsmd/files/0003-Correctly-segment-incoming-usock-data-into-packets.patch)0
-rw-r--r--meta/packages/gsm/files/0004-Handle-read-and-write-return-values.patch (renamed from meta/packages/libgsmd/files/0004-Handle-read-and-write-return-values.patch)0
-rw-r--r--meta/packages/gsm/files/0005-Add-ask-ds-option-forSMS.patch (renamed from meta/packages/libgsmd/files/0005-Add-ask-ds-option-forSMS.patch)0
-rw-r--r--meta/packages/gsm/files/024_sms-text-in-bracket.patch (renamed from meta/packages/libgsmd/files/024_sms-text-in-bracket.patch)0
-rw-r--r--meta/packages/gsm/files/025_sms-status-report.patch (renamed from meta/packages/libgsmd/files/025_sms-status-report.patch)0
-rw-r--r--meta/packages/gsm/files/027_phonebook-find-and-read-range-support.patch (renamed from meta/packages/libgsmd/files/027_phonebook-find-and-read-range-support.patch)0
-rw-r--r--meta/packages/gsm/files/028_shell-phonebook-find-and-read-range-support.patch (renamed from meta/packages/libgsmd/files/028_shell-phonebook-find-and-read-range-support.patch)0
-rw-r--r--meta/packages/gsm/files/default (renamed from meta/packages/libgsmd/files/default)20
-rw-r--r--meta/packages/gsm/files/gsmd (renamed from meta/packages/libgsmd/files/gsmd)2
-rw-r--r--meta/packages/gsm/files/install-ts-headers.patch (renamed from meta/packages/libgsmd/files/install-ts-headers.patch)0
-rw-r--r--meta/packages/gsm/files/lgsm_send_fix_return_value.patch (renamed from meta/packages/libgsmd/files/lgsm_send_fix_return_value.patch)0
-rw-r--r--meta/packages/gsm/gsmd.inc (renamed from meta/packages/libgsmd/gsmd.inc)43
-rw-r--r--meta/packages/gsm/libgsmd_svn.bb (renamed from meta/packages/libgsmd/libgsmd_svn.bb)0
-rw-r--r--meta/packages/libgsmd/files/om-gta01/gsmd49
16 files changed, 40 insertions, 74 deletions
diff --git a/meta/packages/libgsmd/files/0001-Introduce-ports.patch b/meta/packages/gsm/files/0001-Introduce-ports.patch
index b3ba3cb95..b3ba3cb95 100644
--- a/meta/packages/libgsmd/files/0001-Introduce-ports.patch
+++ b/meta/packages/gsm/files/0001-Introduce-ports.patch
diff --git a/meta/packages/libgsmd/files/0002-Flush-all-pending-commands-before-restarting-the-mod.patch b/meta/packages/gsm/files/0002-Flush-all-pending-commands-before-restarting-the-mod.patch
index 368359638..368359638 100644
--- a/meta/packages/libgsmd/files/0002-Flush-all-pending-commands-before-restarting-the-mod.patch
+++ b/meta/packages/gsm/files/0002-Flush-all-pending-commands-before-restarting-the-mod.patch
diff --git a/meta/packages/libgsmd/files/0003-Correctly-segment-incoming-usock-data-into-packets.patch b/meta/packages/gsm/files/0003-Correctly-segment-incoming-usock-data-into-packets.patch
index 984acc936..984acc936 100644
--- a/meta/packages/libgsmd/files/0003-Correctly-segment-incoming-usock-data-into-packets.patch
+++ b/meta/packages/gsm/files/0003-Correctly-segment-incoming-usock-data-into-packets.patch
diff --git a/meta/packages/libgsmd/files/0004-Handle-read-and-write-return-values.patch b/meta/packages/gsm/files/0004-Handle-read-and-write-return-values.patch
index f5e7a7902..f5e7a7902 100644
--- a/meta/packages/libgsmd/files/0004-Handle-read-and-write-return-values.patch
+++ b/meta/packages/gsm/files/0004-Handle-read-and-write-return-values.patch
diff --git a/meta/packages/libgsmd/files/0005-Add-ask-ds-option-forSMS.patch b/meta/packages/gsm/files/0005-Add-ask-ds-option-forSMS.patch
index e9f49bd7d..e9f49bd7d 100644
--- a/meta/packages/libgsmd/files/0005-Add-ask-ds-option-forSMS.patch
+++ b/meta/packages/gsm/files/0005-Add-ask-ds-option-forSMS.patch
diff --git a/meta/packages/libgsmd/files/024_sms-text-in-bracket.patch b/meta/packages/gsm/files/024_sms-text-in-bracket.patch
index 32a1ca33f..32a1ca33f 100644
--- a/meta/packages/libgsmd/files/024_sms-text-in-bracket.patch
+++ b/meta/packages/gsm/files/024_sms-text-in-bracket.patch
diff --git a/meta/packages/libgsmd/files/025_sms-status-report.patch b/meta/packages/gsm/files/025_sms-status-report.patch
index 560e72e38..560e72e38 100644
--- a/meta/packages/libgsmd/files/025_sms-status-report.patch
+++ b/meta/packages/gsm/files/025_sms-status-report.patch
diff --git a/meta/packages/libgsmd/files/027_phonebook-find-and-read-range-support.patch b/meta/packages/gsm/files/027_phonebook-find-and-read-range-support.patch
index ea0f12daa..ea0f12daa 100644
--- a/meta/packages/libgsmd/files/027_phonebook-find-and-read-range-support.patch
+++ b/meta/packages/gsm/files/027_phonebook-find-and-read-range-support.patch
diff --git a/meta/packages/libgsmd/files/028_shell-phonebook-find-and-read-range-support.patch b/meta/packages/gsm/files/028_shell-phonebook-find-and-read-range-support.patch
index db07a5df3..db07a5df3 100644
--- a/meta/packages/libgsmd/files/028_shell-phonebook-find-and-read-range-support.patch
+++ b/meta/packages/gsm/files/028_shell-phonebook-find-and-read-range-support.patch
diff --git a/meta/packages/libgsmd/files/default b/meta/packages/gsm/files/default
index 761100f70..cf36460fa 100644
--- a/meta/packages/libgsmd/files/default
+++ b/meta/packages/gsm/files/default
@@ -2,30 +2,36 @@
. /etc/init.d/functions
-case `cpuinfo_id` in
- "GTA01"|"GTA02")
+case `machine_id` in
+ "gta01"|"gta02")
GSMD_OPTS="-s 115200 -F"
+ if [ -d '/sys/bus/platform/devices/gta01-pm-gsm.0' ] ; then
GSM_POW="/sys/bus/platform/devices/gta01-pm-gsm.0/power_on"
GSM_RES="/sys/bus/platform/devices/gta01-pm-gsm.0/reset"
+ else
+ GSM_POW="/sys/bus/platform/devices/neo1973-pm-gsm.0/power_on"
+ GSM_RES="/sys/bus/platform/devices/neo1973-pm-gsm.0/reset"
+ fi
GSM_DEV="/dev/ttySAC0"
+ GSM_DL="/sys/devices/platform/neo1973-pm-gsm.0/download"
;;
- "HTC Apache"|"HTC Blueangel"|"HTC Universal")
+ "htc_apache"|"htc_blueangel"|"htc_universal")
GSMD_OPTS="-s 115200 -F"
GSM_DEV="/dev/ttyS0"
;;
- "HTC Himalaya")
+ "htc_himalaya")
GSMD_OPTS="-s 115200 -F"
GSM_DEV="/dev/ttyS2"
;;
- "HTC Magician")
+ "htc_magician")
GSMD_OPTS="-s 115200 -F"
GSM_DEV="/dev/ttyS1"
;;
- "Palm Treo 650")
+ "palm_treo_650")
GSMD_OPTS="-s 460800 -F -w 1"
GSM_DEV="/dev/ttyS0"
;;
- "Motorola Ezx Platform")
+ "motorola_ezx_platform")
GSMD_OPTS="-s 115200 -F -v ti"
GSM_DEV="/dev/mux0"
;;
diff --git a/meta/packages/libgsmd/files/gsmd b/meta/packages/gsm/files/gsmd
index 9257b901a..dc10e6309 100644
--- a/meta/packages/libgsmd/files/gsmd
+++ b/meta/packages/gsm/files/gsmd
@@ -19,7 +19,7 @@ case "$1" in
[ -n "$GSM_RES" ] && ( echo "0" >$GSM_RES; sleep 2 )
echo -n "Starting GSM daemon: "
- start-stop-daemon -S -x /usr/sbin/gsmd -- gsmd -p $GSM_DEV $GSMD_OPTS >/tmp/gsm.log 2>&1 &
+ start-stop-daemon -S -x /usr/sbin/gsmd -- gsmd -p $GSM_DEV $GSMD_OPTS -d -l syslog
if [ $? = 0 ]; then
echo "gsmd."
diff --git a/meta/packages/libgsmd/files/install-ts-headers.patch b/meta/packages/gsm/files/install-ts-headers.patch
index 88e3b6dd1..88e3b6dd1 100644
--- a/meta/packages/libgsmd/files/install-ts-headers.patch
+++ b/meta/packages/gsm/files/install-ts-headers.patch
diff --git a/meta/packages/libgsmd/files/lgsm_send_fix_return_value.patch b/meta/packages/gsm/files/lgsm_send_fix_return_value.patch
index 00ba3a454..00ba3a454 100644
--- a/meta/packages/libgsmd/files/lgsm_send_fix_return_value.patch
+++ b/meta/packages/gsm/files/lgsm_send_fix_return_value.patch
diff --git a/meta/packages/libgsmd/gsmd.inc b/meta/packages/gsm/gsmd.inc
index 4fe36b961..4ce23d51f 100644
--- a/meta/packages/libgsmd/gsmd.inc
+++ b/meta/packages/gsm/gsmd.inc
@@ -5,7 +5,7 @@ SECTION = "libs/gsm"
PROVIDES += "gsmd"
RPROVIDES_${PN} = "libgsmd0 libgsmd gsmd gsmd-devel"
PV = "0.1+svnr${SRCREV}"
-PR = "r37"
+PR = "r44"
SRC_URI = "svn://svn.openmoko.org/trunk/src/target;module=gsm;proto=http \
file://gsmd \
@@ -31,23 +31,29 @@ do_install_append() {
install ${WORKDIR}/default ${D}/${sysconfdir}/default/gsmd
}
-PACKAGES =+ "${PN}-tools \
- ${BASEPN}-plugins \
- ${BASEPN}-plugin-machine-generic \
- ${BASEPN}-plugin-machine-tihtc \
- ${BASEPN}-plugin-vendor-bcm \
- ${BASEPN}-plugin-vendor-qc \
- ${BASEPN}-plugin-vendor-ti \
- ${BASEPN}-plugin-vendor-tihtc \
- "
+PACKAGES =+ "\
+ ${PN}-tools \
+ ${BASEPN}-plugins \
+ ${BASEPN}-plugin-machine-generic \
+ ${BASEPN}-plugin-machine-tihtc \
+ ${BASEPN}-plugin-machine-gta01 \
+ ${BASEPN}-plugin-vendor-bcm \
+ ${BASEPN}-plugin-vendor-qc \
+ ${BASEPN}-plugin-vendor-ti \
+ ${BASEPN}-plugin-vendor-tihtc \
+"
-RDEPENDS_${BASEPN}-plugins = "${BASEPN}-plugin-machine-generic \
- ${BASEPN}-plugin-machine-tihtc \
- ${BASEPN}-plugin-vendor-bcm \
- ${BASEPN}-plugin-vendor-qc \
- ${BASEPN}-plugin-vendor-ti \
- ${BASEPN}-plugin-vendor-tihtc \
- "
+ALLOW_EMPTY_${BASEPN}-plugin-machine-gta01 = "1"
+
+RDEPENDS_${BASEPN}-plugins = "\
+ ${BASEPN}-plugin-machine-generic \
+ ${BASEPN}-plugin-machine-tihtc \
+ ${BASEPN}-plugin-machine-gta01 \
+ ${BASEPN}-plugin-vendor-bcm \
+ ${BASEPN}-plugin-vendor-qc \
+ ${BASEPN}-plugin-vendor-ti \
+ ${BASEPN}-plugin-vendor-tihtc \
+"
RDEPENDS_${PN} += "update-rc.d initscripts"
RRECOMMENDS_${PN} += "${BASEPN}-plugins"
@@ -57,6 +63,7 @@ FILES_${PN}-tools = "${bindir}/*"
FILES_${BASEPN}-plugins = ""
FILES_${BASEPN}-plugin-machine-generic = "${libdir}/gsmd/libgsmd-machine_generic.so*"
FILES_${BASEPN}-plugin-machine-tihtc = "${libdir}/gsmd/libgsmd-machine_tihtc.so*"
+FILES_${BASEPN}-plugin-machine-gta01 = "${libdir}/gsmd/libgsmd-machine_gta01.so*"
FILES_${BASEPN}-plugin-vendor-qc = "${libdir}/gsmd/libgsmd-vendor_qc.so*"
FILES_${BASEPN}-plugin-vendor-bcm = "${libdir}/gsmd/libgsmd-vendor_bcm.so*"
FILES_${BASEPN}-plugin-vendor-ti = "${libdir}/gsmd/libgsmd-vendor_ti.so*"
@@ -71,6 +78,7 @@ RCONFLICTS_${BASEPN} = "${CONFLICTNAME}"
RCONFLICTS_${BASEPN}-plugins = "${CONFLICTNAME}-plugins"
RCONFLICTS_${BASEPN}-plugin-machine-generic = "${CONFLICTNAME}-plugin-machine-generic"
RCONFLICTS_${BASEPN}-plugin-machine-tihtc = "${CONFLICTNAME}-plugin-machine-tihtc"
+RCONFLICTS_${BASEPN}-plugin-machine-gta01 = "${CONFLICTNAME}-plugin-machine-gta01"
RCONFLICTS_${BASEPN}-plugin-vendor-qc = "${CONFLICTNAME}-plugin-vendor-qc"
RCONFLICTS_${BASEPN}-plugin-vendor-bcm = "${CONFLICTNAME}-plugin-vendor-bcm"
RCONFLICTS_${BASEPN}-plugin-vendor-ti = "${CONFLICTNAME}-plugin-vendor-ti"
@@ -81,6 +89,7 @@ RPROVIDES_${BASEPN} = "${CONFLICTNAME}"
RPROVIDES_${BASEPN}-plugins = "${CONFLICTNAME}-plugins"
RPROVIDES_${BASEPN}-plugin-machine-generic = "${CONFLICTNAME}-plugin-machine-generic"
RPROVIDES_${BASEPN}-plugin-machine-tihtc = "${CONFLICTNAME}-plugin-machine-tihtc"
+RPROVIDES_${BASEPN}-plugin-machine-gta01 = "${CONFLICTNAME}-plugin-machine-gta01"
RPROVIDES_${BASEPN}-plugin-vendor-qc = "${CONFLICTNAME}-plugin-vendor-qc"
RPROVIDES_${BASEPN}-plugin-vendor-bcm = "${CONFLICTNAME}-plugin-vendor-bcm"
RPROVIDES_${BASEPN}-plugin-vendor-ti = "${CONFLICTNAME}-plugin-vendor-ti"
diff --git a/meta/packages/libgsmd/libgsmd_svn.bb b/meta/packages/gsm/libgsmd_svn.bb
index 9d3ca19c0..9d3ca19c0 100644
--- a/meta/packages/libgsmd/libgsmd_svn.bb
+++ b/meta/packages/gsm/libgsmd_svn.bb
diff --git a/meta/packages/libgsmd/files/om-gta01/gsmd b/meta/packages/libgsmd/files/om-gta01/gsmd
deleted file mode 100644
index d8323e202..000000000
--- a/meta/packages/libgsmd/files/om-gta01/gsmd
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/bin/sh
-#
-# gsmd This shell script starts and stops gsmd.
-#
-# chkconfig: 345 90 40
-# description: Gsmd manages access to a serial- or USB-connected GSM
-# processname: gsmd
-
-PATH=/bin:/usr/bin:/sbin:/usr/sbin
-
-[ -f /etc/default/rcS ] && . /etc/default/rcS
-[ -f /etc/default/gsmd ] && . /etc/default/gsmd
-
-case "$1" in
- start)
- stty -F "$GSM_DEV" -crtscts
- [ -n "$GSM_POW" ] && ( echo "0" >$GSM_POW; sleep 1 )
- stty -F "$GSM_DEV" -echo
- [ -n "$GSM_POW" ] && ( echo "1" >$GSM_POW; sleep 1 )
- [ -n "$GSM_RES" ] && ( echo "1" >$GSM_RES; sleep 1 )
- [ -n "$GSM_RES" ] && ( echo "0" >$GSM_RES; sleep 2 )
-
- echo -n "Starting GSM daemon: "
- start-stop-daemon -S -x /usr/sbin/gsmd -- gsmd -p $GSM_DEV $GSMD_OPTS >/tmp/gsm.log 2>&1 &
-
- if [ $? = 0 ]; then
- echo "gsmd."
- else
- echo "(failed.)"
- fi
- ;;
- stop)
- echo -n "Stopping GSM daemon: "
- start-stop-daemon -K -x /usr/sbin/gsmd
- stty -F "$GSM_DEV" -crtscts
- [ -n "$GSM_POW" ] && echo "0" >$GSM_POW
- echo "gsmd."
- ;;
- restart|force-reload)
- $0 stop
- $0 start
- ;;
- *)
- echo "Usage: /etc/init.d/gsmd {start|stop|restart|force-reload}"
- exit 1
- ;;
-esac
-
-exit 0