GPS.device.so is not getting generated

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

GPS.device.so is not getting generated

跳至解决方案
1,482 次查看
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

标记 (2)
1 解答
1,391 次查看
amit251291
Contributor IV

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

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,391 次查看
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,392 次查看
amit251291
Contributor IV

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

0 项奖励
回复