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
Solved! Go to Solution.
I have resolved this issue. I had to mention the name of package under PRODUCT_PACKAGES.
Hello Amit Kulkarni,
Thank you for sharing the solution to this issue! I'm sure other Community users will find it useful.
Regards,
I have resolved this issue. I had to mention the name of package under PRODUCT_PACKAGES.