GPS.device.so is not getting generated

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GPS.device.so is not getting generated

Jump to solution
1,118 Views
amit251291
Contributor IV

I'm using Android 9 Auto. I have kept my libgps source code under /vendor/nxp-opensource/imx/libgps. 

If i build using command 'mm' by going inside vendor/nxp-opensource/imx/libgps, i can see that in out folder gps.MEK.so is created. However when i build completed Android build then i dont see its getting created. I have tried this after deleting all symbols, intermediates which were created in standalone build. I've also added  USE_ATHR_GPS_HARDWARE=true in BoardConfig.mk  

 

Please let me know what wrong I'm doing. 

My Android.mk file is like below:

LOCAL_PATH := $(call my-dir)
ifneq ($(TARGET_PRODUCT),sim)
# HAL module implemenation, not prelinked and stored in
# hw/<GPS_HARDWARE_MODULE_ID>.<ro.hardware>.so
ifeq ($(USE_ATHR_GPS_HARDWARE),true)
include $(CLEAR_VARS)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
LOCAL_SHARED_LIBRARIES := liblog libcutils libhardware
LOCAL_SRC_FILES := athr_gps.c
LOCAL_SRC_FILES += gps.c
LOCAL_MODULE := gps.$(TARGET_BOOTLOADER_BOARD_NAME)
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)
endif
endif

1 Solution
1,027 Views
amit251291
Contributor IV

I have resolved this issue. I had to mention the name of package under PRODUCT_PACKAGES.

View solution in original post

0 Kudos
Reply
2 Replies
1,027 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello  Amit Kulkarni,

Thank you for sharing the solution to this issue! I'm sure other Community users will find it useful.

Regards,

1,028 Views
amit251291
Contributor IV

I have resolved this issue. I had to mention the name of package under PRODUCT_PACKAGES.

0 Kudos
Reply