Updates for the palmpre machine
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
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
@@ -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
@@ -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
@@ -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
@@ -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
PATCH 2/5 palmpre-system-deps-native: add initial recipe
In reply to Simon BuschThe 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
@@ -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
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
@@ -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
PATCH 4/5 libfsotransport: add dependency on palmpre-systems-deps-native for palmpre machine
In reply to Simon Buschlibfsotransport 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
@@ -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
PATCH 5/5 fsogsmd: fix dependencies for the palmpre machine
In reply to Simon Buschfsogsmd 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
@@ -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