Hi Kishore,

Kindly follow this link -
https://source.android.com/devices/architecture/vndk/build-system#vendor-modules

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



On Sun, Feb 9, 2020 at 3:35 AM Kishore Poojari <kpooja...@gmail.com> wrote:

> 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
>
> --
> --
> unsubscribe: android-porting+unsubscr...@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-porting+unsubscr...@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
> <https://groups.google.com/d/msgid/android-porting/095f38a2-8ab7-493b-8e99-f96b97338836%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Regards,
satish patel

-- 
-- 
unsubscribe: android-porting+unsubscr...@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-porting+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-porting/CAEFWKbs1G09bODDhUu%3DNKdU7ZKiYtq-0OfcOLuVhzLgOQDzMLg%40mail.gmail.com.

Reply via email to