* [PATCH 1/2] Support option --disable-optimization
@ 2010-07-08 10:57 Yang Gu
2010-07-08 10:57 ` [PATCH 2/2] Change sw2 only when cmd is not empty Yang Gu
2010-07-08 11:00 ` [PATCH 1/2] Support option --disable-optimization Gu, Yang
0 siblings, 2 replies; 4+ messages in thread
From: Yang Gu @ 2010-07-08 10:57 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 626 bytes --]
---
configure.ac | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index 887c91a..a85fda3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -14,6 +14,13 @@ PKG_PROG_PKG_CONFIG
AC_PROG_CXX
AC_PROG_INSTALL
+AC_ARG_ENABLE(optimization, AC_HELP_STRING([--disable-optimization],
+ [disable code optimization through compiler]), [
+ if (test "${enableval}" = "no"); then
+ CXXFLAGS="$CXXFLAGS -O0"
+ fi
+])
+
PKG_CHECK_MODULES(QT, QtCore QtGui QtXml QtNetwork, dummy=yes,
AC_MSG_ERROR(Qt is required))
AC_SUBST(QT_CFLAGS)
--
1.7.0.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] Change sw2 only when cmd is not empty
2010-07-08 10:57 [PATCH 1/2] Support option --disable-optimization Yang Gu
@ 2010-07-08 10:57 ` Yang Gu
2010-07-08 11:00 ` [PATCH 1/2] Support option --disable-optimization Gu, Yang
1 sibling, 0 replies; 4+ messages in thread
From: Yang Gu @ 2010-07-08 10:57 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 552 bytes --]
---
src/phonesim.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/phonesim.cpp b/src/phonesim.cpp
index d5d7d87..8210f51 100644
--- a/src/phonesim.cpp
+++ b/src/phonesim.cpp
@@ -923,9 +923,10 @@ bool SimRules::simCsimOk( const QByteArray& payload )
if ( toolkitApp ) {
QByteArray cmd = toolkitApp->fetch();
- if ( !cmd.isEmpty() )
+ if ( !cmd.isEmpty() ) {
sw1 = 0x91;
sw2 = cmd.size();
+ }
}
resp += sw1;
--
1.7.0.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* RE: [PATCH 1/2] Support option --disable-optimization
2010-07-08 10:57 [PATCH 1/2] Support option --disable-optimization Yang Gu
2010-07-08 10:57 ` [PATCH 2/2] Change sw2 only when cmd is not empty Yang Gu
@ 2010-07-08 11:00 ` Gu, Yang
2010-07-08 13:22 ` Marcel Holtmann
1 sibling, 1 reply; 4+ messages in thread
From: Gu, Yang @ 2010-07-08 11:00 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 937 bytes --]
Hi,
Forget to mention, this patch series (2 patches) is against phonesim.
>-----Original Message-----
>From: Gu, Yang
>Sent: Thursday, July 08, 2010 6:57 PM
>To: ofono(a)ofono.org
>Cc: Gu, Yang
>Subject: [PATCH 1/2] Support option --disable-optimization
>
>---
> configure.ac | 7 +++++++
> 1 files changed, 7 insertions(+), 0 deletions(-)
>
>diff --git a/configure.ac b/configure.ac
>index 887c91a..a85fda3 100644
>--- a/configure.ac
>+++ b/configure.ac
>@@ -14,6 +14,13 @@ PKG_PROG_PKG_CONFIG
> AC_PROG_CXX
> AC_PROG_INSTALL
>
>+AC_ARG_ENABLE(optimization, AC_HELP_STRING([--disable-optimization],
>+ [disable code optimization through compiler]), [
>+ if (test "${enableval}" = "no"); then
>+ CXXFLAGS="$CXXFLAGS -O0"
>+ fi
>+])
>+
> PKG_CHECK_MODULES(QT, QtCore QtGui QtXml QtNetwork, dummy=yes,
> AC_MSG_ERROR(Qt is required))
> AC_SUBST(QT_CFLAGS)
>--
>1.7.0.4
Regards,
-Yang
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH 1/2] Support option --disable-optimization
2010-07-08 11:00 ` [PATCH 1/2] Support option --disable-optimization Gu, Yang
@ 2010-07-08 13:22 ` Marcel Holtmann
0 siblings, 0 replies; 4+ messages in thread
From: Marcel Holtmann @ 2010-07-08 13:22 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 170 bytes --]
Hi Yang,
> Forget to mention, this patch series (2 patches) is against phonesim.
I figured that. Both patches have been applied. Thanks.
Regards
Marcel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-07-08 13:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-08 10:57 [PATCH 1/2] Support option --disable-optimization Yang Gu
2010-07-08 10:57 ` [PATCH 2/2] Change sw2 only when cmd is not empty Yang Gu
2010-07-08 11:00 ` [PATCH 1/2] Support option --disable-optimization Gu, Yang
2010-07-08 13:22 ` Marcel Holtmann
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.