gps: refine gps build system
- remove override directive - separate gps configuration files for each device Bug: 291186485 Test: build pass and configuration files are correct Change-Id: I907d5e04c267753ce25e5de5f5080536df7e7041
This commit is contained in:
parent
036e25d0bf
commit
3087d9a54b
12 changed files with 261 additions and 16 deletions
|
@ -173,20 +173,15 @@ PRODUCT_SOONG_NAMESPACES += vendor/google_devices/comet/prebuilts
|
|||
$(call soong_config_set, include_libsitril-gps-wifi, board_without_radio, $(BOARD_WITHOUT_RADIO))
|
||||
include device/google/gs-common/gps/brcm/device.mk
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/google/comet/location/gps.cer:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.cer
|
||||
|
||||
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/google/comet/location/lhd.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/lhd.conf \
|
||||
device/google/comet/location/scd.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/scd.conf \
|
||||
device/google/comet/location/gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml
|
||||
else
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/google/comet/location/lhd_user.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/lhd.conf \
|
||||
device/google/comet/location/scd_user.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/scd.conf \
|
||||
device/google/comet/location/gps_user.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml
|
||||
endif
|
||||
PRODUCT_SOONG_NAMESPACES += device/google/comet/location
|
||||
SOONG_CONFIG_NAMESPACES += gpssdk
|
||||
SOONG_CONFIG_gpssdk += gpsconf
|
||||
SOONG_CONFIG_gpssdk_gpsconf ?= $(TARGET_BUILD_VARIANT)
|
||||
PRODUCT_PACKAGES += \
|
||||
gps.cer \
|
||||
gps.xml \
|
||||
scd.conf \
|
||||
lhd.conf
|
||||
|
||||
# Install product specific framework compatibility matrix
|
||||
DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += device/google/comet/device_framework_matrix_product.xml
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue