Skip to contentSkip to conversation

Updates for the palmpre machine

PATCH New Simon Busch 1 participant 6 messages Aug 31, 2010

lore
Share & tools
lore
#0 lore raw

Heyho,

the following patches improves the support for the palmpre machine. They updates the recipes for the msmcomm daemon to the latest version and fix the dependencies on libfsotransport and fsogsmd. If nobody has any complaints about these patches I will commit them in the next days.

regards,
morphis

#1 lore raw

PATCH 1/5 msmcomm: split msmcommd recipe into three parts as upstream layout has changed

We have now three parts for the msmcomm daemon:
* libmsmcomm: the actual protocol implementation of the msmcomm protocol
* msmcommd: the daemon which manages the link layer + takes command from the clients and submits them to the modem
* msmcommd-specs: provides the dbus API definition for the msmcomm daemon which lets the client talk to the daemon

---
 recipes/freesmartphone/libmsmcomm_git.bb     |    9 +++++++
 recipes/freesmartphone/msmcomm.inc           |   11 +++++++++
 recipes/freesmartphone/msmcommd-specs_git.bb |   17 ++++++++++++++
 recipes/freesmartphone/msmcommd_git.bb       |   31 +++++++++++++------------
 4 files changed, 53 insertions(+), 15 deletions(-)
 create mode 100644 recipes/freesmartphone/libmsmcomm_git.bb
 create mode 100644 recipes/freesmartphone/msmcomm.inc
 create mode 100644 recipes/freesmartphone/msmcommd-specs_git.bb
recipes/freesmartphone/libmsmcomm_git.bb new file +9 -0
new file mode 100644
index 0000000..5df9e41
@@ -0,0 +1,9 @@
+require msmcomm.inc
+
+PR = "${INC_PR}.0"
+PV = "0.5.0+gitr${SRCPV}"
+PE = "1"
+
+S = "${WORKDIR}/git/libmsmcomm"
+
+inherit autotools
recipes/freesmartphone/msmcomm.inc new file +11 -0
new file mode 100644
index 0000000..bf01a12
@@ -0,0 +1,11 @@
+DESCRIPTION = "Low level protocol implementation for binary protocol spoken by some Qualcomm modems"
+HOMEPAGE = "http://www.freesmartphone.org"
+AUTHOR = "Simon Busch <[email protected]>"
+SECTION = "console/network"
+LICENSE = "GPL"
+INC_PR = "r4"
+PV = "Please override!"
+
+SRC_REV = "d631d009c791085faf0ebaac4601da905bc5c0ed"
+SRC_URI = "${FREESMARTPHONE_GIT}/msmcomm.git;protocol=git;branch=master"
+
recipes/freesmartphone/msmcommd-specs_git.bb new file +17 -0
new file mode 100644
index 0000000..f756312
@@ -0,0 +1,17 @@
+require msmcomm.inc
+
+PR = "${INC_PR}.0"
+PV = "0.5.0+gitr${SRCPV}"
+PE = "1"
+
+DEPENDS = " \
+ vala-native \
+ glib-2.0 \
+ dbus \
+ dbus-glib \
+"
+
+S = "${WORKDIR}/git/msmcommd-specs"
+
+inherit autotools vala
+
recipes/freesmartphone/msmcommd_git.bb +16 -15
index bd74dc0..d123501 100644
@@ -1,20 +1,21 @@
-DESCRIPTION = "Low level protocol implementation for binary protocol spoken by some Qualcomm modems"
-HOMEPAGE = "http://www.freesmartphone.org"
-AUTHOR = "Simon Busch <[email protected]>"
-SECTION = "console/network"
-LICENSE = "GPL"
-DEPENDS = "libgee libfsotransport gtk+"
-SRCREV = "91ea329fd3be68d031c61a587c6c0036b94cf2cd"
-PV = "0.1.0+gitr${SRCPV}"
-PR = "r2"
+require msmcomm.inc
+
+PR = "${INC_PR}.0"
+PV = "0.5.0+gitr${SRCPV}"
 PE = "1"
 
-SRC_URI = "${FREESMARTPHONE_GIT}/msmcomm.git;protocol=git;branch=master"
-S = "${WORKDIR}/git"
+DEPENDS = " \
+ vala-native \
+ glib-2.0 \
+ dbus \
+ dbus-glib \
+ libfso-glib \
+ libgee \
+ libmsmcomm \
+ msmcommd-specs \
+"
 
-inherit autotools vala
+S = "${WORKDIR}/git/msmcommd"
 
-PACKAGES =+ "${PN}-lib ${PN}-term"
-FILES_${PN}-lib = "${libdir}/lib*.so.*"
-FILES_${PN}-term = "${sbindir}/msmvterm"
+inherit autotools vala
 
Signature · 1 line
1.7.0.4
#2 lore raw

PATCH 2/5 palmpre-system-deps-native: add initial recipe

In reply to Simon Busch

The palmpre-system-deps provides some essential header + vapi files for programs written for the palm pre machine. For example it includes a vapi file for the hsuart.h kernel header file which provides different ioctl's parameters for managing the hsuart of the palm pre device.

---
 recipes/palmpre/palmpre-system-deps-native_git.bb |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
 create mode 100644 recipes/palmpre/palmpre-system-deps-native_git.bb
recipes/palmpre/palmpre-system-deps-native_git.bb new file +12 -0
new file mode 100644
index 0000000..1f907c9
@@ -0,0 +1,12 @@
+DESCRIPTION = "Important header and vapi files for some programs running on the palmpre machine"
+HOMEPAGE = "http://www.freesmartphone.org"
+AUTHOR = "Simon Busch <[email protected]>
+SECTION = "console/utils"
+LICENSE = "GPL"
+PR = "r0"
+
+SRCREV = "93a640dafa8ebebdb1a03f051cb1b566629b227c"
+SRC_URI = "${FREESMARTPHONE_GIT}/utilities.git;protocol=git;branch=master"
+S = "${WORKDIR}/git/palmpre/palmpre-system-deps"
+
+inherit autotools native pkgconfig
Signature · 1 line
1.7.0.4
#3 lore raw

PATCH 3/5 fso-autorev: add msmcommd-specs and libmsmcomm

In reply to Simon Busch
---
 conf/distro/include/fso-autorev.inc |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
conf/distro/include/fso-autorev.inc +2 -0
index 33b9c90..2c618ec 100644
@@ -26,6 +26,8 @@ SRCREV_pn-libmsmcomm = "${AUTOREV}"
 SRCREV_pn-libpersistence = "${AUTOREV}"
 SRCREV_pn-misc-vapi = "${AUTOREV}"
 SRCREV_pn-msmcommd = "${AUTOREV}"
+SRCREV_pn-msmcommd-specs = "${AUTOREV}"
+SRCREV_pn-libmsmcomm = "${AUTOREV}"
 SRCREV_pn-vala-dbus-binding-tool-native = "${AUTOREV}"
 SRCREV_pn-vala-dbus-binding-tool = "${AUTOREV}"
 SRCREV_pn-vala = "${AUTOREV}"
Signature · 1 line
1.7.0.4
#4 lore raw

PATCH 4/5 libfsotransport: add dependency on palmpre-systems-deps-native for palmpre machine

In reply to Simon Busch

libfsotransport provides a special hsuart transport which only works and is used on the palmpre machine. For this the palmpre-systems-deps are needed to provide ioctl support for the hsuart.

---
 recipes/freesmartphone/libfsotransport_git.bb |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
recipes/freesmartphone/libfsotransport_git.bb +3 -0
index 7e7e6d6..882fc12 100644
@@ -4,3 +4,6 @@ SRCREV = "${FSO_CORNUCOPIA_SRCREV}"
 PV = "0.9.6+gitr${SRCPV}"
 PE = "1"
 PR = "${INC_PR}.0"
+
+EXTRA_OECONF_palmpre = "--with-machine=palmpre"
+DEPENDS_palmpre = "palmpre-system-deps-native"
Signature · 1 line
1.7.0.4
#5 lore raw

PATCH 5/5 fsogsmd: fix dependencies for the palmpre machine

In reply to Simon Busch

fsogsmd now depends on msmcommd-specs as this provides the DBus API definition how to speak with the msmcomm daemon. At runtime it needs the msmcomm daemon to talk over the DBus API to the modem.

---
 recipes/freesmartphone/fsogsmd_git.bb |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)
recipes/freesmartphone/fsogsmd_git.bb +8 -3
index b172611..0c54901 100644
@@ -1,16 +1,21 @@
 require cornucopia.inc
 inherit fso-plugin
 SRCREV = "${FSO_CORNUCOPIA_SRCREV}"
-PR = "${INC_PR}.3"
+PR = "${INC_PR}.4"
 PV = "0.5.0+gitr${SRCPV}"
 PE = "1"
 
 DEPENDS += "libfsoresource libgsm0710mux ppp"
-# DEPENDS += "msmcommd"
 
 EXTRA_OECONF_append = "\
   --enable-libgsm0710mux \
-#  --enable-modem-qualcomm-palm \
+"
+
+# On the palmpre we need the msmcomm daemon to talk to the modem
+DEPENDS_palmpre += "msmcommd-specs"
+RDEPENDS_palmpre += "msmcommd"
+EXTRA_OECONF_append_palmpre = "\
+  --enable-modem-qualcomm-palm \
 "
 
 CONFFILES_${PN} = "${sysconfdir}/freesmartphone/conf/openmoko_gta/fsogsmd.conf \
Signature · 1 line
1.7.0.4