HI:
I got the android source code from git://gitorious.org/rowboat/manifest.git -m rowboat-gingerbread-dsp.xml, and it can be made succefully.
I want to add bma250 sensor to the android 2.3. I test the linux driver of bma250, which works very well.
Then I turn into the HAL. I put the android.mk and sensors.cpp into the rowboat-android/hardware/ti/omap3/libsensors, then make the project.
it is the message when making
...
target thumb C++: sensors.default <= hardware/ti/omap3/libsensors/sensors.cpp
hardware/ti/omap3/libsensors/sensors.cpp: In function 'int sensor_get_class_path(sensors_poll_context_t*)':
hardware/ti/omap3/libsensors/sensors.cpp:169: warning: deprecated conversion from string constant to 'char*'
target SharedLib: sensors.default (out/target/product/omap3evm/obj/SHARED_LIBRARIES/sensors.default_intermediates/LINKED/sensors.default.so)
target Non-prelinked: sensors.default (out/target/product/omap3evm/symbols/system/lib/hw/sensors.default.so)
target Strip: sensors.default (out/target/product/omap3evm/obj/lib/sensors.default.so)
...
Instead of rowboat-android/out/target/product/omap3evm/system/lib/hw , I find the sensors.default.so in the rowboat-android/out/target/product/omap3evm/symbols/system/lib/hw.
I manually move sensors.default.so form ../symbols/system/lib/hw to ../system/lib/hw, everytime I use the bam250,
I should input commond
cd sys/class/input/input3
echo 1 > enable
otherwise i can't use it.
what should I do ?