[android-porting] PTHREAD_STACK_MIN is not defined

2010-04-15 Thread Uma Sankar
Hi I am trying to compile ltp/testcases/kernel/sched/cfs-scheduler/ hackbench.c file and I am getting error like "error: 'PAGE_SIZE' undeclared (first use in this function) " It seems macro for PTHREAD_STACK_MIN is defined as PAGE_SIZE but its not able to find the declaration for PAGE_SIZE macro.

[android-porting] mlockall() def not found to link in bionic

2010-04-19 Thread Uma Sankar
Hi, I am compiling native application for Android by using bionic libs. This native application uses the mlockall() call which is declared in "sys/mman.h" but not able to find the definition to link. I am getting error like "undefined reference to `mlockall' collect2: ld returned 1 exit status ".

[android-porting] How to write Shell script in Android makefile

2010-05-26 Thread Uma Sankar
Hi, I need to copy one shell script file and data file in to LOCAL_MODULE_PATH. The executable file is able to generated at specified folder. I need to copy script files and data files (present in same folder where *.C files) after successful compile of *.C files. My make file for executable is g

[android-porting] Definitions are missing for setfsuid() and clone() in Bionic lib

2010-05-27 Thread Uma Sankar
Hi All, I am I am compiling native lib which uses the setfsuid() and clone() calls. I am getting the errors like given below 1. undefined reference to `setfsuid' 2. undefined reference to `clone' It seems the declarations are found in unistd.h and sched.h. The definitions are missing for the sam

[android-porting] How to run shell commands in Android.mk file?

2010-06-09 Thread Uma Sankar
Hi All, I would like to run some shell commands after building my module can I make Android.mk to run shell script ? For example, I need to copy data.txt file in to LOCAL_MODULE_PATH after build the application. By using the Android.mk file application(server) is able to generated at specified fo

[android-porting] gpstest for emulator is not working

2010-06-28 Thread Uma Sankar
Hi all, I compiled the hardware/libhardware_legacy/tests/gpstest/gpstest.cpp and installed(copied) this application in Android emulator. When I execute this (through adb shell) its not completes the init functionality. I kept the two printfs before and after to "sGpsInterface->init()" this call i

[android-porting] Re: gpstest for emulator is not working

2010-06-30 Thread Uma Sankar
Any help in this? -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting

[android-porting] fstatfs fails (-1) always?

2010-06-30 Thread Uma Sankar
Hi all, I have a native application porting for Android by using bionic. When I try to execute this native application the fstatfs() system call returns -1 always and the errno is 22(EINVAL). Any idea why this fstatfs() always returns -1 for Android. The same application is running successful on

[android-porting] Re: gpstest for emulator is not working

2010-07-01 Thread Uma Sankar
ork or not. > > Mike > > > > On Mon, Jun 28, 2010 at 8:53 AM, Uma Sankar > wrote: > > Hi all, > > > I compiled the hardware/libhardware_legacy/tests/gpstest/gpstest.cpp > > and installed(copied) this application in Android emulator. > > > When

[android-porting] Help - How to write test stubs for GPS device driver

2010-08-04 Thread Uma Sankar
Hi All, I need to write test stubs(automation) to verify my GPS device is working good. I am not sure these stubs should write at HAL level or Framework level. Can anyone give the pointers on this? Thanks -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google

[android-porting] Re: Android HAL.

2010-08-04 Thread Uma Sankar
Hi, I am also looking for the same, Can anyone help in this regard? Thanks -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting