System Image and Vendor Image

154 views
Skip to first unread message

Kishore Poojari

unread,
Feb 8, 2020, 5:05:53 PM2/8/20
to android-porting
Dear All,

I am building GPS/GNSS HAL driver in Android Pi(9.0.X). I am copied libgps folder to Vendor/inxp-source/imx/libgps and configured Android.mk file as below.

ifeq ($(findstring imx, $(TARGET_BOARD_PLATFORM)), imx)

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_SHARED_LIBRARIES := liblog libcutils libhardware
LOCAL_SRC_FILES := gps_parser.c
LOCAL_SRC_FILES += gps.c
LOCAL_MODULE := gps.$(TARGET_BOARD_PLATFORM)
LOCAL_MODULE_TAGS := eng
LOCAL_VENDOR_MODULE := true 
include $(BUILD_SHARED_LIBRARY)

endif

After successful build gps.imx8.so file is copied to System/lib64/hw  and System/lib/hw folder instead to Vendor image.

How AOSP build system knows gps.imx8.so to copy System or vendor image.

I want to copy final gps.imx8.so to Vendor image.

Please help us to solve issue.

Regards,
Kishore P

Satish Patel

unread,
Feb 10, 2020, 9:42:08 PM2/10/20
to kpoo...@gmail.com, android-porting
Hi Kishore,


It states you need to specify 'LOCAL_VENDOR_MODULE or LOCAL_PROPRIETARY_MODULE to true" and
LOCAL_MODULE_RELATIVE_PATH := vendor/lib/hw

This might work



--
--
unsubscribe: android-porti...@googlegroups.com
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porti...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-porting/095f38a2-8ab7-493b-8e99-f96b97338836%40googlegroups.com.


--
Regards,
satish patel
Reply all
Reply to author
Forward
0 new messages