Copy default gps.xml to only specific projects under gs101 and maintain new projects in their own folders. Bug: 203745796 Test: Build test and check config Change-Id: Ic0b6f8a6e41063f5c42573aea91650007963912b
49 lines
2.2 KiB
Makefile
49 lines
2.2 KiB
Makefile
PRODUCT_COPY_FILES += \
|
|
frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml \
|
|
device/google/gs101/gnss/47765/config/gps.cer:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.cer \
|
|
device/google/gs101/gnss/47765/firmware/SensorHub.patch:$(TARGET_COPY_OUT_VENDOR)/firmware/SensorHub.patch
|
|
|
|
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
|
|
PRODUCT_COPY_FILES += \
|
|
device/google/gs101/gnss/47765/config/lhd.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/lhd.conf \
|
|
device/google/gs101/gnss/47765/config/scd.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/scd.conf
|
|
else
|
|
PRODUCT_COPY_FILES += \
|
|
device/google/gs101/gnss/47765/config/lhd_user.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/lhd.conf \
|
|
device/google/gs101/gnss/47765/config/scd_user.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/scd.conf
|
|
endif
|
|
|
|
ifneq (,$(filter raven, $(subst _, ,$(TARGET_PRODUCT))))
|
|
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
|
|
PRODUCT_COPY_FILES += device/google/gs101/gnss/47765/config/gps.xml.raven:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml
|
|
else
|
|
PRODUCT_COPY_FILES += device/google/gs101/gnss/47765/config/gps_user.xml.raven:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml
|
|
endif
|
|
else ifneq (,$(filter oriole, $(subst _, ,$(TARGET_PRODUCT))))
|
|
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
|
|
PRODUCT_COPY_FILES += device/google/gs101/gnss/47765/config/gps.xml.oriole:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml
|
|
else
|
|
PRODUCT_COPY_FILES += device/google/gs101/gnss/47765/config/gps_user.xml.oriole:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml
|
|
endif
|
|
else ifneq (,$(filter slider whitefin, $(subst _, ,$(TARGET_PRODUCT))))
|
|
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
|
|
PRODUCT_COPY_FILES += device/google/gs101/gnss/47765/config/gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml
|
|
else
|
|
PRODUCT_COPY_FILES += device/google/gs101/gnss/47765/config/gps_user.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml
|
|
endif
|
|
endif
|
|
|
|
PRODUCT_SOONG_NAMESPACES += \
|
|
device/google/gs101/gnss/47765
|
|
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.gnss@2.1-impl-google \
|
|
gps.default \
|
|
flp.default \
|
|
gpsd \
|
|
lhd \
|
|
scd \
|
|
android.hardware.gnss@2.1-service-brcm
|
|
|
|
PRODUCT_PACKAGES_DEBUG += \
|
|
init.gps_log.rc
|