diff options
author | Lee Shombert <shombert@google.com> | 2024-03-26 20:32:59 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2024-03-26 20:32:59 +0000 |
commit | c3ce9e344c6bc592571283909b11ad392b999a17 (patch) | |
tree | 299a909ddb3d5463b613564dc8ca0f0cd72b5231 | |
parent | e1df94c8419f9d41484d66dfa3c36b076542efcd (diff) | |
parent | a64ebbdad3d5443db8a9926b3ee679fc17d8b3ba (diff) | |
download | build-c3ce9e344c6bc592571283909b11ad392b999a17.tar.gz |
Merge "Export the sqlite build flag to more products" into main
-rw-r--r-- | target/board/BoardConfigMainlineCommon.mk | 3 | ||||
-rw-r--r-- | target/board/mainline_sdk/BoardConfig.mk | 3 | ||||
-rw-r--r-- | target/product/base_system.mk | 4 | ||||
-rw-r--r-- | target/product/build_variables.mk | 21 | ||||
-rw-r--r-- | target/product/module_common.mk | 1 | ||||
-rw-r--r-- | target/product/sdk.mk | 3 |
6 files changed, 33 insertions, 2 deletions
diff --git a/target/board/BoardConfigMainlineCommon.mk b/target/board/BoardConfigMainlineCommon.mk index c3878b8c04..2b17349a2f 100644 --- a/target/board/BoardConfigMainlineCommon.mk +++ b/target/board/BoardConfigMainlineCommon.mk @@ -2,6 +2,9 @@ # # Common compile-time definitions for mainline images. +# Ensure all trunk-stable flags are available. +include build/make/target/product/build_variables.mk + # The generic product target doesn't have any hardware-specific pieces. TARGET_NO_BOOTLOADER := true TARGET_NO_RECOVERY := true diff --git a/target/board/mainline_sdk/BoardConfig.mk b/target/board/mainline_sdk/BoardConfig.mk index 84f8b2dac6..e4c6a8c971 100644 --- a/target/board/mainline_sdk/BoardConfig.mk +++ b/target/board/mainline_sdk/BoardConfig.mk @@ -13,6 +13,9 @@ # limitations under the License. # +# Ensure all trunk-stable flags are available. +include build/make/target/product/build_variables.mk + TARGET_ARCH_SUITE := mainline_sdk HOST_CROSS_OS := linux_bionic diff --git a/target/product/base_system.mk b/target/product/base_system.mk index d5876a7901..884af4f5c8 100644 --- a/target/product/base_system.mk +++ b/target/product/base_system.mk @@ -491,8 +491,8 @@ PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\ $(call inherit-product, $(SRC_TARGET_DIR)/product/runtime_libart.mk) -# Use the configured release of sqlite -$(call soong_config_set, libsqlite3, release_package_libsqlite3, $(RELEASE_PACKAGE_LIBSQLITE3)) +# Ensure all trunk-stable flags are available. +$(call inherit-product, $(SRC_TARGET_DIR)/product/build_variables.mk) # Use "image" APEXes always. $(call inherit-product,$(SRC_TARGET_DIR)/product/updatable_apex.mk) diff --git a/target/product/build_variables.mk b/target/product/build_variables.mk new file mode 100644 index 0000000000..5fe5333f45 --- /dev/null +++ b/target/product/build_variables.mk @@ -0,0 +1,21 @@ +# +# Copyright (C) 2024 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +# This file contains the trunk-stable flags that should be exported to all +# Android targets. + +# Use the configured release of sqlite +$(call soong_config_set, libsqlite3, release_package_libsqlite3, $(RELEASE_PACKAGE_LIBSQLITE3)) diff --git a/target/product/module_common.mk b/target/product/module_common.mk index 53b2ca6703..bf146a0d2f 100644 --- a/target/product/module_common.mk +++ b/target/product/module_common.mk @@ -14,6 +14,7 @@ # limitations under the License. # +$(call inherit-product, $(SRC_TARGET_DIR)/product/build_variables.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/default_art_config.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/languages_default.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/cfi-common.mk) diff --git a/target/product/sdk.mk b/target/product/sdk.mk index 009a9d4706..04649a2d48 100644 --- a/target/product/sdk.mk +++ b/target/product/sdk.mk @@ -17,6 +17,9 @@ # This is a simple product that uses configures the minimum amount # needed to build the SDK (without the emulator). +# Ensure all trunk-stable flags are available. +$(call inherit-product, $(SRC_TARGET_DIR)/product/build_variables.mk) + # In order to build the bootclasspath sources, the bootclasspath needs to # be setup via default_art_config.mk. The sources only really make sense # together with a device (e.g. the emulator). So if the SDK sources change |