From f0e200b9f9907f95433d96cb8364b2e505c82743 Mon Sep 17 00:00:00 2001 From: Terry Huang Date: Thu, 2 Dec 2021 09:41:36 +0000 Subject: [PATCH] [s5123][device] Change vendor telephony code path Add extra folder for different platforms Bug: 199954706 Test: Build pass Change-Id: I9e047c89e8ae4db5854ac00a1c7fcdc1319af19d --- device-common.mk | 1 + device.mk | 10 +++++++--- telephony/user.mk | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/device-common.mk b/device-common.mk index 250de1cf..cdafd12d 100644 --- a/device-common.mk +++ b/device-common.mk @@ -14,6 +14,7 @@ # limitations under the License. # +-include vendor/google_devices/gs101/proprietary/telephony/device-vendor.mk include device/google/gs101/device.mk # Telephony diff --git a/device.mk b/device.mk index f3dddbb9..dda2693d 100644 --- a/device.mk +++ b/device.mk @@ -56,6 +56,10 @@ LOCAL_KERNEL := $(TARGET_KERNEL_DIR)/Image.lz4 PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ ro.oem_unlock_supported=1 +# Include vendor telephony soong namespace +PRODUCT_SOONG_NAMESPACES += \ + vendor/samsung_slsi/telephony/$(BOARD_USES_SHARED_VENDOR_TELEPHONY) + ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) #Set IKE logs to verbose for WFC PRODUCT_PROPERTY_OVERRIDES += log.tag.IKE=VERBOSE @@ -853,11 +857,11 @@ PRODUCT_PACKAGES += \ vts.bin # This will be called only if IMSService is building with source code for dev branches. -$(call inherit-product-if-exists, vendor/samsung_slsi/telephony/shannon-ims/device-vendor.mk) +$(call inherit-product-if-exists, vendor/samsung_slsi/telephony/$(BOARD_USES_SHARED_VENDOR_TELEPHONY)/shannon-ims/device-vendor.mk) PRODUCT_PACKAGES += ShannonIms -$(call inherit-product-if-exists, vendor/samsung_slsi/telephony/shannon-iwlan/device-vendor.mk) +$(call inherit-product-if-exists, vendor/samsung_slsi/telephony/$(BOARD_USES_SHARED_VENDOR_TELEPHONY)/shannon-iwlan/device-vendor.mk) #RCS Test Messaging App PRODUCT_PACKAGES_DEBUG += \ @@ -883,7 +887,7 @@ USE_RADIO_HAL_1_6 := true #$(call inherit-product, vendor/google_devices/gs101/proprietary/device-vendor.mk) ifneq ($(BOARD_WITHOUT_RADIO),true) -$(call inherit-product-if-exists, vendor/samsung_slsi/telephony/common/device-vendor.mk) +$(call inherit-product-if-exists, vendor/samsung_slsi/telephony/$(BOARD_USES_SHARED_VENDOR_TELEPHONY)/common/device-vendor.mk) endif ifeq (,$(filter %_64,$(TARGET_PRODUCT))) diff --git a/telephony/user.mk b/telephony/user.mk index 983a19a0..f75596f3 100644 --- a/telephony/user.mk +++ b/telephony/user.mk @@ -1,2 +1,2 @@ -PRODUCT_COPY_FILES += vendor/samsung_slsi/telephony/common/device/samsung/init.radio.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.radio.sh +PRODUCT_COPY_FILES += vendor/samsung_slsi/telephony/$(BOARD_USES_SHARED_VENDOR_TELEPHONY)/common/device/samsung/init.radio.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.radio.sh BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs101-sepolicy/telephony/user/