From ad520e59a4d52f3ef427bfcc74457d7aeba370ea Mon Sep 17 00:00:00 2001 From: Cheng Chang Date: Mon, 26 Jun 2023 03:32:50 +0000 Subject: [PATCH] gps: separate gps build system to device Bug: 288813677 Test: compile for different devices and check binary. Test: verification test at b/288813677 Change-Id: I7591af58423d4d2826a7c5e9ba166ed0e729d932 --- device-husky.mk | 10 ++++++++++ device-ripcurrent.mk | 10 ++++++++++ device-shiba.mk | 10 ++++++++++ 3 files changed, 30 insertions(+) diff --git a/device-husky.mk b/device-husky.mk index e61db63..0664d09 100644 --- a/device-husky.mk +++ b/device-husky.mk @@ -238,6 +238,16 @@ PRODUCT_PACKAGES += \ PRODUCT_SOONG_NAMESPACES += vendor/google_devices/shusky/prebuilts # Location +# SDK build system +ifneq ($(BOARD_WITHOUT_RADIO),true) +# Release stable version to factory image +ifneq ($(filter factory_%,$(TARGET_PRODUCT)),) + include device/google/gs-common/gps/brcm/device.mk +else + include device/google/gs-common/gps/brcm/device_v2.mk +endif +endif + PRODUCT_COPY_FILES += \ device/google/shusky/location/gps.cer:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.cer diff --git a/device-ripcurrent.mk b/device-ripcurrent.mk index 87ce735..77d5c9b 100644 --- a/device-ripcurrent.mk +++ b/device-ripcurrent.mk @@ -203,6 +203,16 @@ PRODUCT_PACKAGES += \ PRODUCT_SOONG_NAMESPACES += vendor/google_devices/shusky/prebuilts # Location +# SDK build system +ifneq ($(BOARD_WITHOUT_RADIO),true) +# Release stable version to factory image +ifneq ($(filter factory_%,$(TARGET_PRODUCT)),) + include device/google/gs-common/gps/brcm/device.mk +else + include device/google/gs-common/gps/brcm/device_v2.mk +endif +endif + PRODUCT_COPY_FILES += \ device/google/shusky/location/gps.cer:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.cer diff --git a/device-shiba.mk b/device-shiba.mk index 1737971..b0e7927 100644 --- a/device-shiba.mk +++ b/device-shiba.mk @@ -229,6 +229,16 @@ PRODUCT_PACKAGES += \ PRODUCT_SOONG_NAMESPACES += vendor/google_devices/shusky/prebuilts # Location +# SDK build system +ifneq ($(BOARD_WITHOUT_RADIO),true) +# Release stable version to factory image +ifneq ($(filter factory_%,$(TARGET_PRODUCT)),) + include device/google/gs-common/gps/brcm/device.mk +else + include device/google/gs-common/gps/brcm/device_v2.mk +endif +endif + PRODUCT_COPY_FILES += \ device/google/shusky/location/gps.cer:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.cer