Hi, Pramod, Did you already make your sensor work ? Do you have more than one sensor device and how many sensor devices you have ? I also want to make my sensor device work and my sensor devices are more than one. Could you please share your experience with me ? Could you please let me know how to get old sensor HAL sources since it have gone. Thanks.
Regards, Vivien On 2月19日, 下午9時33分, pramod gurav <[email protected]> wrote: > Hi there > I am trying my hands on sensors HAL in cupcake. As I can see HAL > implementation > has changed a lot in cupcake. ThesensorHAL sources have gone from > hardware/libhardware/. > I could know that there is space for having asensorHAL module in new > hardware/libhardware/; > I referred thesensor.h in cupcake. As far as I could understand there > is need of asensormodule > in hardware/libhardware/modules/sensors/ which will initialise the > structures such as > sensors_control_device_t, sensors_data_device_t and sensors_module_t, > I initialised all these with the functions referring oldsensorHAL > sources and currenr sensors.h files. > I want to build my sensors HAL mpodule. > > when I try to build the sources now, it is not being compiled. I can > see the overlay library in > system/lib/hw/overlay.zoom2.so. But no library of my sources. > The Android.mk in my modules/sensors/ has : > > # Copyright 2008 The Android Open Source Project > > LOCAL_PATH := $(call my-dir) > > # HAL module implemenation, not prelinked and stored in > # # hw/<SENSORS_HARDWARE_MODULE_ID>.<ro.product.board>.so > include $(CLEAR_VARS) > LOCAL_PRELINK_MODULE := false > LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw > LOCAL_SHARED_LIBRARIES := liblog > LOCAL_SRC_FILES := sensors/mysensors.c > LOCAL_MODULE := sensors.myproject > include $(BUILD_SHARED_LIBRARY) > > Can anyone please suggest me on this? Have anyone tried implementing > sensors HAL? > > -- > Best Regards > Pramod --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
