aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInseob Kim <inseob@google.com>2021-02-25 21:22:27 +0900
committerInseob Kim <inseob@google.com>2021-02-25 21:22:27 +0900
commit6e7693f1597a0934833a72faf35e918dfbdb6ecd (patch)
treef22f6ed40379b6027eea1edbc28c94ba9fbd0f9f
parent0e0307b0a276246ae1ce35332f464e49d52dc90d (diff)
downloadbuild-6e7693f1597a0934833a72faf35e918dfbdb6ecd.tar.gz
Allow BOARD_VNDK_VERSION to be changed
Some devices e.g. cuttlefish include BoardConfigMainlineCommon.mk. This allows BOARD_VNDK_VERSION to be changed other than current, to allow mixed build experiment with BOARD_VNDK_VERSION. Test: try setting BOARD_VNDK_VERSION and get_build_var Change-Id: I7eb7fe6527f24ee2a3b4af32194a48ca98146a78
-rw-r--r--target/board/BoardConfigMainlineCommon.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/target/board/BoardConfigMainlineCommon.mk b/target/board/BoardConfigMainlineCommon.mk
index bf015e5024..00f6e5b0ac 100644
--- a/target/board/BoardConfigMainlineCommon.mk
+++ b/target/board/BoardConfigMainlineCommon.mk
@@ -19,7 +19,8 @@ TARGET_COPY_OUT_PRODUCT := product
# the devices with metadata parition
BOARD_USES_METADATA_PARTITION := true
-BOARD_VNDK_VERSION := current
+# Default is current, but allow devices to override vndk version if needed.
+BOARD_VNDK_VERSION ?= current
# Required flag for non-64 bit devices from P.
TARGET_USES_64_BIT_BINDER := true