GPS.device.so is not getting generated

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

GPS.device.so is not getting generated

ソリューションへジャンプ
1,516件の閲覧回数
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)
タグ(2)
1 解決策
1,425件の閲覧回数
amit251291
Contributor IV

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

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,425件の閲覧回数
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,426件の閲覧回数
amit251291
Contributor IV

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

0 件の賞賛
返信