diff options
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/gsmd | 49 |
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 b3ba3cb957..b3ba3cb957 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 3683596389..3683596389 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 984acc9369..984acc9369 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 f5e7a7902d..f5e7a7902d 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 e9f49bd7d2..e9f49bd7d2 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 32a1ca33ff..32a1ca33ff 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 560e72e380..560e72e380 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 ea0f12daac..ea0f12daac 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 db07a5df35..db07a5df35 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 761100f702..cf36460fac 100644 --- a/meta/packages/libgsmd/files/default +++ b/meta/packages/gsm/files/default | |||
@@ -2,30 +2,36 @@ | |||
2 | 2 | ||
3 | . /etc/init.d/functions | 3 | . /etc/init.d/functions |
4 | 4 | ||
5 | case `cpuinfo_id` in | 5 | case `machine_id` in |
6 | "GTA01"|"GTA02") | 6 | "gta01"|"gta02") |
7 | GSMD_OPTS="-s 115200 -F" | 7 | GSMD_OPTS="-s 115200 -F" |
8 | if [ -d '/sys/bus/platform/devices/gta01-pm-gsm.0' ] ; then | ||
8 | GSM_POW="/sys/bus/platform/devices/gta01-pm-gsm.0/power_on" | 9 | GSM_POW="/sys/bus/platform/devices/gta01-pm-gsm.0/power_on" |
9 | GSM_RES="/sys/bus/platform/devices/gta01-pm-gsm.0/reset" | 10 | GSM_RES="/sys/bus/platform/devices/gta01-pm-gsm.0/reset" |
11 | else | ||
12 | GSM_POW="/sys/bus/platform/devices/neo1973-pm-gsm.0/power_on" | ||
13 | GSM_RES="/sys/bus/platform/devices/neo1973-pm-gsm.0/reset" | ||
14 | fi | ||
10 | GSM_DEV="/dev/ttySAC0" | 15 | GSM_DEV="/dev/ttySAC0" |
16 | GSM_DL="/sys/devices/platform/neo1973-pm-gsm.0/download" | ||
11 | ;; | 17 | ;; |
12 | "HTC Apache"|"HTC Blueangel"|"HTC Universal") | 18 | "htc_apache"|"htc_blueangel"|"htc_universal") |
13 | GSMD_OPTS="-s 115200 -F" | 19 | GSMD_OPTS="-s 115200 -F" |
14 | GSM_DEV="/dev/ttyS0" | 20 | GSM_DEV="/dev/ttyS0" |
15 | ;; | 21 | ;; |
16 | "HTC Himalaya") | 22 | "htc_himalaya") |
17 | GSMD_OPTS="-s 115200 -F" | 23 | GSMD_OPTS="-s 115200 -F" |
18 | GSM_DEV="/dev/ttyS2" | 24 | GSM_DEV="/dev/ttyS2" |
19 | ;; | 25 | ;; |
20 | "HTC Magician") | 26 | "htc_magician") |
21 | GSMD_OPTS="-s 115200 -F" | 27 | GSMD_OPTS="-s 115200 -F" |
22 | GSM_DEV="/dev/ttyS1" | 28 | GSM_DEV="/dev/ttyS1" |
23 | ;; | 29 | ;; |
24 | "Palm Treo 650") | 30 | "palm_treo_650") |
25 | GSMD_OPTS="-s 460800 -F -w 1" | 31 | GSMD_OPTS="-s 460800 -F -w 1" |
26 | GSM_DEV="/dev/ttyS0" | 32 | GSM_DEV="/dev/ttyS0" |
27 | ;; | 33 | ;; |
28 | "Motorola Ezx Platform") | 34 | "motorola_ezx_platform") |
29 | GSMD_OPTS="-s 115200 -F -v ti" | 35 | GSMD_OPTS="-s 115200 -F -v ti" |
30 | GSM_DEV="/dev/mux0" | 36 | GSM_DEV="/dev/mux0" |
31 | ;; | 37 | ;; |
diff --git a/meta/packages/libgsmd/files/gsmd b/meta/packages/gsm/files/gsmd index 9257b901ad..dc10e63098 100644 --- a/meta/packages/libgsmd/files/gsmd +++ b/meta/packages/gsm/files/gsmd | |||
@@ -19,7 +19,7 @@ case "$1" in | |||
19 | [ -n "$GSM_RES" ] && ( echo "0" >$GSM_RES; sleep 2 ) | 19 | [ -n "$GSM_RES" ] && ( echo "0" >$GSM_RES; sleep 2 ) |
20 | 20 | ||
21 | echo -n "Starting GSM daemon: " | 21 | echo -n "Starting GSM daemon: " |
22 | start-stop-daemon -S -x /usr/sbin/gsmd -- gsmd -p $GSM_DEV $GSMD_OPTS >/tmp/gsm.log 2>&1 & | 22 | start-stop-daemon -S -x /usr/sbin/gsmd -- gsmd -p $GSM_DEV $GSMD_OPTS -d -l syslog |
23 | 23 | ||
24 | if [ $? = 0 ]; then | 24 | if [ $? = 0 ]; then |
25 | echo "gsmd." | 25 | echo "gsmd." |
diff --git a/meta/packages/libgsmd/files/install-ts-headers.patch b/meta/packages/gsm/files/install-ts-headers.patch index 88e3b6dd1f..88e3b6dd1f 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 00ba3a4549..00ba3a4549 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 4fe36b9616..4ce23d51f5 100644 --- a/meta/packages/libgsmd/gsmd.inc +++ b/meta/packages/gsm/gsmd.inc | |||
@@ -5,7 +5,7 @@ SECTION = "libs/gsm" | |||
5 | PROVIDES += "gsmd" | 5 | PROVIDES += "gsmd" |
6 | RPROVIDES_${PN} = "libgsmd0 libgsmd gsmd gsmd-devel" | 6 | RPROVIDES_${PN} = "libgsmd0 libgsmd gsmd gsmd-devel" |
7 | PV = "0.1+svnr${SRCREV}" | 7 | PV = "0.1+svnr${SRCREV}" |
8 | PR = "r37" | 8 | PR = "r44" |
9 | 9 | ||
10 | SRC_URI = "svn://svn.openmoko.org/trunk/src/target;module=gsm;proto=http \ | 10 | SRC_URI = "svn://svn.openmoko.org/trunk/src/target;module=gsm;proto=http \ |
11 | file://gsmd \ | 11 | file://gsmd \ |
@@ -31,23 +31,29 @@ do_install_append() { | |||
31 | install ${WORKDIR}/default ${D}/${sysconfdir}/default/gsmd | 31 | install ${WORKDIR}/default ${D}/${sysconfdir}/default/gsmd |
32 | } | 32 | } |
33 | 33 | ||
34 | PACKAGES =+ "${PN}-tools \ | 34 | PACKAGES =+ "\ |
35 | ${BASEPN}-plugins \ | 35 | ${PN}-tools \ |
36 | ${BASEPN}-plugin-machine-generic \ | 36 | ${BASEPN}-plugins \ |
37 | ${BASEPN}-plugin-machine-tihtc \ | 37 | ${BASEPN}-plugin-machine-generic \ |
38 | ${BASEPN}-plugin-vendor-bcm \ | 38 | ${BASEPN}-plugin-machine-tihtc \ |
39 | ${BASEPN}-plugin-vendor-qc \ | 39 | ${BASEPN}-plugin-machine-gta01 \ |
40 | ${BASEPN}-plugin-vendor-ti \ | 40 | ${BASEPN}-plugin-vendor-bcm \ |
41 | ${BASEPN}-plugin-vendor-tihtc \ | 41 | ${BASEPN}-plugin-vendor-qc \ |
42 | " | 42 | ${BASEPN}-plugin-vendor-ti \ |
43 | ${BASEPN}-plugin-vendor-tihtc \ | ||
44 | " | ||
43 | 45 | ||
44 | RDEPENDS_${BASEPN}-plugins = "${BASEPN}-plugin-machine-generic \ | 46 | ALLOW_EMPTY_${BASEPN}-plugin-machine-gta01 = "1" |
45 | ${BASEPN}-plugin-machine-tihtc \ | 47 | |
46 | ${BASEPN}-plugin-vendor-bcm \ | 48 | RDEPENDS_${BASEPN}-plugins = "\ |
47 | ${BASEPN}-plugin-vendor-qc \ | 49 | ${BASEPN}-plugin-machine-generic \ |
48 | ${BASEPN}-plugin-vendor-ti \ | 50 | ${BASEPN}-plugin-machine-tihtc \ |
49 | ${BASEPN}-plugin-vendor-tihtc \ | 51 | ${BASEPN}-plugin-machine-gta01 \ |
50 | " | 52 | ${BASEPN}-plugin-vendor-bcm \ |
53 | ${BASEPN}-plugin-vendor-qc \ | ||
54 | ${BASEPN}-plugin-vendor-ti \ | ||
55 | ${BASEPN}-plugin-vendor-tihtc \ | ||
56 | " | ||
51 | 57 | ||
52 | RDEPENDS_${PN} += "update-rc.d initscripts" | 58 | RDEPENDS_${PN} += "update-rc.d initscripts" |
53 | RRECOMMENDS_${PN} += "${BASEPN}-plugins" | 59 | RRECOMMENDS_${PN} += "${BASEPN}-plugins" |
@@ -57,6 +63,7 @@ FILES_${PN}-tools = "${bindir}/*" | |||
57 | FILES_${BASEPN}-plugins = "" | 63 | FILES_${BASEPN}-plugins = "" |
58 | FILES_${BASEPN}-plugin-machine-generic = "${libdir}/gsmd/libgsmd-machine_generic.so*" | 64 | FILES_${BASEPN}-plugin-machine-generic = "${libdir}/gsmd/libgsmd-machine_generic.so*" |
59 | FILES_${BASEPN}-plugin-machine-tihtc = "${libdir}/gsmd/libgsmd-machine_tihtc.so*" | 65 | FILES_${BASEPN}-plugin-machine-tihtc = "${libdir}/gsmd/libgsmd-machine_tihtc.so*" |
66 | FILES_${BASEPN}-plugin-machine-gta01 = "${libdir}/gsmd/libgsmd-machine_gta01.so*" | ||
60 | FILES_${BASEPN}-plugin-vendor-qc = "${libdir}/gsmd/libgsmd-vendor_qc.so*" | 67 | FILES_${BASEPN}-plugin-vendor-qc = "${libdir}/gsmd/libgsmd-vendor_qc.so*" |
61 | FILES_${BASEPN}-plugin-vendor-bcm = "${libdir}/gsmd/libgsmd-vendor_bcm.so*" | 68 | FILES_${BASEPN}-plugin-vendor-bcm = "${libdir}/gsmd/libgsmd-vendor_bcm.so*" |
62 | FILES_${BASEPN}-plugin-vendor-ti = "${libdir}/gsmd/libgsmd-vendor_ti.so*" | 69 | FILES_${BASEPN}-plugin-vendor-ti = "${libdir}/gsmd/libgsmd-vendor_ti.so*" |
@@ -71,6 +78,7 @@ RCONFLICTS_${BASEPN} = "${CONFLICTNAME}" | |||
71 | RCONFLICTS_${BASEPN}-plugins = "${CONFLICTNAME}-plugins" | 78 | RCONFLICTS_${BASEPN}-plugins = "${CONFLICTNAME}-plugins" |
72 | RCONFLICTS_${BASEPN}-plugin-machine-generic = "${CONFLICTNAME}-plugin-machine-generic" | 79 | RCONFLICTS_${BASEPN}-plugin-machine-generic = "${CONFLICTNAME}-plugin-machine-generic" |
73 | RCONFLICTS_${BASEPN}-plugin-machine-tihtc = "${CONFLICTNAME}-plugin-machine-tihtc" | 80 | RCONFLICTS_${BASEPN}-plugin-machine-tihtc = "${CONFLICTNAME}-plugin-machine-tihtc" |
81 | RCONFLICTS_${BASEPN}-plugin-machine-gta01 = "${CONFLICTNAME}-plugin-machine-gta01" | ||
74 | RCONFLICTS_${BASEPN}-plugin-vendor-qc = "${CONFLICTNAME}-plugin-vendor-qc" | 82 | RCONFLICTS_${BASEPN}-plugin-vendor-qc = "${CONFLICTNAME}-plugin-vendor-qc" |
75 | RCONFLICTS_${BASEPN}-plugin-vendor-bcm = "${CONFLICTNAME}-plugin-vendor-bcm" | 83 | RCONFLICTS_${BASEPN}-plugin-vendor-bcm = "${CONFLICTNAME}-plugin-vendor-bcm" |
76 | RCONFLICTS_${BASEPN}-plugin-vendor-ti = "${CONFLICTNAME}-plugin-vendor-ti" | 84 | RCONFLICTS_${BASEPN}-plugin-vendor-ti = "${CONFLICTNAME}-plugin-vendor-ti" |
@@ -81,6 +89,7 @@ RPROVIDES_${BASEPN} = "${CONFLICTNAME}" | |||
81 | RPROVIDES_${BASEPN}-plugins = "${CONFLICTNAME}-plugins" | 89 | RPROVIDES_${BASEPN}-plugins = "${CONFLICTNAME}-plugins" |
82 | RPROVIDES_${BASEPN}-plugin-machine-generic = "${CONFLICTNAME}-plugin-machine-generic" | 90 | RPROVIDES_${BASEPN}-plugin-machine-generic = "${CONFLICTNAME}-plugin-machine-generic" |
83 | RPROVIDES_${BASEPN}-plugin-machine-tihtc = "${CONFLICTNAME}-plugin-machine-tihtc" | 91 | RPROVIDES_${BASEPN}-plugin-machine-tihtc = "${CONFLICTNAME}-plugin-machine-tihtc" |
92 | RPROVIDES_${BASEPN}-plugin-machine-gta01 = "${CONFLICTNAME}-plugin-machine-gta01" | ||
84 | RPROVIDES_${BASEPN}-plugin-vendor-qc = "${CONFLICTNAME}-plugin-vendor-qc" | 93 | RPROVIDES_${BASEPN}-plugin-vendor-qc = "${CONFLICTNAME}-plugin-vendor-qc" |
85 | RPROVIDES_${BASEPN}-plugin-vendor-bcm = "${CONFLICTNAME}-plugin-vendor-bcm" | 94 | RPROVIDES_${BASEPN}-plugin-vendor-bcm = "${CONFLICTNAME}-plugin-vendor-bcm" |
86 | RPROVIDES_${BASEPN}-plugin-vendor-ti = "${CONFLICTNAME}-plugin-vendor-ti" | 95 | 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 9d3ca19c04..9d3ca19c04 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 d8323e202c..0000000000 --- a/meta/packages/libgsmd/files/om-gta01/gsmd +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | # gsmd This shell script starts and stops gsmd. | ||
4 | # | ||
5 | # chkconfig: 345 90 40 | ||
6 | # description: Gsmd manages access to a serial- or USB-connected GSM | ||
7 | # processname: gsmd | ||
8 | |||
9 | PATH=/bin:/usr/bin:/sbin:/usr/sbin | ||
10 | |||
11 | [ -f /etc/default/rcS ] && . /etc/default/rcS | ||
12 | [ -f /etc/default/gsmd ] && . /etc/default/gsmd | ||
13 | |||
14 | case "$1" in | ||
15 | start) | ||
16 | stty -F "$GSM_DEV" -crtscts | ||
17 | [ -n "$GSM_POW" ] && ( echo "0" >$GSM_POW; sleep 1 ) | ||
18 | stty -F "$GSM_DEV" -echo | ||
19 | [ -n "$GSM_POW" ] && ( echo "1" >$GSM_POW; sleep 1 ) | ||
20 | [ -n "$GSM_RES" ] && ( echo "1" >$GSM_RES; sleep 1 ) | ||
21 | [ -n "$GSM_RES" ] && ( echo "0" >$GSM_RES; sleep 2 ) | ||
22 | |||
23 | echo -n "Starting GSM daemon: " | ||
24 | start-stop-daemon -S -x /usr/sbin/gsmd -- gsmd -p $GSM_DEV $GSMD_OPTS >/tmp/gsm.log 2>&1 & | ||
25 | |||
26 | if [ $? = 0 ]; then | ||
27 | echo "gsmd." | ||
28 | else | ||
29 | echo "(failed.)" | ||
30 | fi | ||
31 | ;; | ||
32 | stop) | ||
33 | echo -n "Stopping GSM daemon: " | ||
34 | start-stop-daemon -K -x /usr/sbin/gsmd | ||
35 | stty -F "$GSM_DEV" -crtscts | ||
36 | [ -n "$GSM_POW" ] && echo "0" >$GSM_POW | ||
37 | echo "gsmd." | ||
38 | ;; | ||
39 | restart|force-reload) | ||
40 | $0 stop | ||
41 | $0 start | ||
42 | ;; | ||
43 | *) | ||
44 | echo "Usage: /etc/init.d/gsmd {start|stop|restart|force-reload}" | ||
45 | exit 1 | ||
46 | ;; | ||
47 | esac | ||
48 | |||
49 | exit 0 | ||