midpath-core_0.2+0.3rc2.bb: Fix compilation error and QA HASH error on ARM
authorKhem Raj <raj.khem@gmail.com>
Wed, 8 Sep 2010 02:08:14 +0000 (19:08 -0700)
committerKhem Raj <raj.khem@gmail.com>
Wed, 8 Sep 2010 02:08:14 +0000 (19:08 -0700)
* Remove legacy staging

Signed-off-by: Khem Raj <raj.khem@gmail.com>
recipes/midpath/files/hci_read_local_name.patch [new file with mode: 0644]
recipes/midpath/midpath-backend-sdl_0.2+0.3rc2.bb
recipes/midpath/midpath-common.inc
recipes/midpath/midpath-core_0.2+0.3rc2.bb

diff --git a/recipes/midpath/files/hci_read_local_name.patch b/recipes/midpath/files/hci_read_local_name.patch
new file mode 100644 (file)
index 0000000..e4ce114
--- /dev/null
@@ -0,0 +1,13 @@
+Index: midpath-0.3rc2/external/avetanabt-cldc/native/de_avetana_bluetooth_stack_BlueZ.cpp
+===================================================================
+--- midpath-0.3rc2.orig/external/avetanabt-cldc/native/de_avetana_bluetooth_stack_BlueZ.cpp    2010-09-07 18:49:11.000000000 -0700
++++ midpath-0.3rc2/external/avetanabt-cldc/native/de_avetana_bluetooth_stack_BlueZ.cpp 2010-09-07 18:51:52.877682002 -0700
+@@ -649,7 +649,7 @@ JNIEXPORT jstring JNICALL Java_de_avetan
+       //printf("Function called: %s, %i\n"__FILE__, __LINE__);
+-      if (hci_local_name(dd, sizeof(name_str), name_str, timeOut) < 0)
++      if (hci_read_local_name(dd, sizeof(name_str), name_str, timeOut) < 0)
+       {
+               throwException(env, "Java_de_avetana_bluetooth_stack_BlueZ_hciLocalName: Unable to read local name");
+               return 0;
index d5934ef..938e6e8 100644 (file)
@@ -10,8 +10,6 @@ DEPENDS += "midpath-cldc virtual/libsdl libsdl-mixer libsdl-ttf libsdl-image lib
 
 RDEPENDS_${PN} = "${PN}-jni"
 
-TARGET_CC_ARCH += "${LDFLAGS}"
-
 do_compile() {
   # Only sdljava-cldc and native SDL backend library is enabled
   midpath_build \
index 0c320e4..b3d2cdc 100644 (file)
@@ -11,6 +11,8 @@ GLIBJ_ZIP = "${STAGING_DATADIR}/classpath/glibj.zip"
 
 CLDC_JAR = "${STAGING_DATADIR}/midpath-cldc/midpath-cldc1.1.jar"
 
+TARGET_CC_ARCH += "${LDFLAGS}"
+
 do_unpackpost() {
        # Remove unneccessary binary bits.
   find lib -name "*.jar" -exec rm \{\} \;
index 1c87d42..a23b26f 100644 (file)
@@ -1,6 +1,6 @@
 DESCRIPTION = "MIDPath is a Java library which provides a MIDP2 implementation"
 
-PR = "r3"
+PR = "r4"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz"
 
@@ -9,7 +9,8 @@ S = "${WORKDIR}/midpath-0.3rc2"
 require midpath-common.inc
 
 SRC_URI += "\
-       file://fix-openfile.patch \
+  file://fix-openfile.patch \
+  file://hci_read_local_name.patch \
   file://midpath-suitemanager \
   file://midpath-launcher-j2se \
   file://midpath-suitemanager.desktop \
@@ -46,12 +47,12 @@ do_compile() {
 do_install() {
   oe_libinstall -C dist -so libavetanabtcldc ${D}${libdir_jni}
 
-       install -d ${D}${datadir}/midpath
-       install -m 0644 dist/${JAR} ${D}${datadir}/midpath
-       install -m 0644 dist/microbackend.jar ${D}${datadir}/midpath
-       install -m 0644 dist/avetanabt-cldc.jar ${D}${datadir}/midpath
-       install -m 0644 dist/jorbis-cldc.jar ${D}${datadir}/midpath
-       install -m 0644 dist/jlayerme-cldc.jar ${D}${datadir}/midpath
+  install -d ${D}${datadir}/midpath
+  install -m 0644 dist/${JAR} ${D}${datadir}/midpath
+  install -m 0644 dist/microbackend.jar ${D}${datadir}/midpath
+  install -m 0644 dist/avetanabt-cldc.jar ${D}${datadir}/midpath
+  install -m 0644 dist/jorbis-cldc.jar ${D}${datadir}/midpath
+  install -m 0644 dist/jlayerme-cldc.jar ${D}${datadir}/midpath
 
   install -d ${D}${bindir}
   install -m 0755 ${WORKDIR}/midpath-launcher-j2se ${D}${bindir}
@@ -64,15 +65,6 @@ do_install() {
   install -m 0644 ${WORKDIR}/midpath.png ${D}${datadir}/pixmaps
 }
 
-do_stage() {
-       install -d ${STAGING_DATADIR}/midpath
-       install -m 0644 dist/${JAR} ${STAGING_DATADIR}/midpath
-       install -m 0644 dist/microbackend.jar ${STAGING_DATADIR}/midpath
-       install -m 0644 dist/avetanabt-cldc.jar ${STAGING_DATADIR}/midpath
-       install -m 0644 dist/jorbis-cldc.jar ${STAGING_DATADIR}/midpath
-       install -m 0644 dist/jlayerme-cldc.jar ${STAGING_DATADIR}/midpath
-}
-
 PACKAGES = "${PN}-bluetooth ${PN}-bluetooth-jni ${PN}-bluetooth-jni-dbg ${PN}-mp3 ${PN}-ogg ${PN}"
 RDEPENDS_${PN}-bluetooth = "${PN}-bluetooth-jni"