From c14a6a75cca2588293314f3c3b1f95cdbcd7f050 Mon Sep 17 00:00:00 2001 From: kierancyphus Date: Fri, 8 Mar 2024 15:39:00 +0800 Subject: [PATCH] shamp: Create soong config variable for vendors Bug: 328704096 The soong config variable should be defined for all pixel products to enforce backwards compatability (ensure that this is never built for non enabled devices). In the case where `SHARED_MODEM_PLATFORM` is not defined, then the soong config variable will choose the default placeholder implmentation. Doc: go/shared-modem-platform-cpp-backend Test: Build for enabled and disabled targets and ensure that the correct version of `shared_modem_platform` is being built. Change-Id: I06ebdada2324fdd86cbb7718fd66602dd52070ea --- modem/shared_modem_platform/shared_modem_platform.mk | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 modem/shared_modem_platform/shared_modem_platform.mk diff --git a/modem/shared_modem_platform/shared_modem_platform.mk b/modem/shared_modem_platform/shared_modem_platform.mk new file mode 100644 index 0000000..2e0c026 --- /dev/null +++ b/modem/shared_modem_platform/shared_modem_platform.mk @@ -0,0 +1,9 @@ +# This file is not included in `modem.mk` since this is included at the +# beginning of each `device.mk` file, and so will be called before +# `SHARED_MODEM_PLATFORM_VENDOR` is defined later in the file. +SOONG_CONFIG_NAMESPACES += shared_modem_platform +SOONG_CONFIG_shared_modem_platform += \ + vendor +SOONG_CONFIG_shared_modem_platform_vendor := $(SHARED_MODEM_PLATFORM_VENDOR) + +PRODUCT_PACKAGES += shared_modem_platform