From f68f92d3d55483b207d801961e072b3aa28b4274 Mon Sep 17 00:00:00 2001 From: Anton Hansson Date: Fri, 27 Nov 2020 12:40:42 +0000 Subject: [PATCH] Add mainline_sdk device and product This device/product is suitable for a soong-only build that builds for all the architectures needed for mainline modules sdk prebuilts. Bug: 174315599 Test: TARGET_PRODUCT=mainline_sdk soong_ui --make-mode --skip-kati; (inspect soong.variables) Change-Id: I3ab5d3611e25a666de39752dedaddbf32ddf6df7 --- target/board/mainline_sdk/BoardConfig.mk | 20 ++++++++++++++++++++ target/board/mainline_sdk/README.md | 2 ++ target/product/AndroidProducts.mk | 2 ++ target/product/mainline_sdk.mk | 18 ++++++++++++++++++ 4 files changed, 42 insertions(+) create mode 100644 target/board/mainline_sdk/BoardConfig.mk create mode 100644 target/board/mainline_sdk/README.md create mode 100644 target/product/mainline_sdk.mk diff --git a/target/board/mainline_sdk/BoardConfig.mk b/target/board/mainline_sdk/BoardConfig.mk new file mode 100644 index 0000000000..84f8b2dac6 --- /dev/null +++ b/target/board/mainline_sdk/BoardConfig.mk @@ -0,0 +1,20 @@ +# Copyright (C) 2020 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. +# + +TARGET_ARCH_SUITE := mainline_sdk + +HOST_CROSS_OS := linux_bionic +HOST_CROSS_ARCH := x86_64 +HOST_CROSS_2ND_ARCH := diff --git a/target/board/mainline_sdk/README.md b/target/board/mainline_sdk/README.md new file mode 100644 index 0000000000..714f7977fe --- /dev/null +++ b/target/board/mainline_sdk/README.md @@ -0,0 +1,2 @@ +This device is suitable for a soong-only build that builds for all the architectures +needed for mainline modules sdk prebuilts. diff --git a/target/product/AndroidProducts.mk b/target/product/AndroidProducts.mk index 5094149b5f..f657fbfea3 100644 --- a/target/product/AndroidProducts.mk +++ b/target/product/AndroidProducts.mk @@ -73,6 +73,8 @@ PRODUCT_MAKEFILES := \ endif +PRODUCT_MAKEFILES += $(LOCAL_DIR)/mainline_sdk.mk + COMMON_LUNCH_CHOICES := \ aosp_arm64-eng \ aosp_arm-eng \ diff --git a/target/product/mainline_sdk.mk b/target/product/mainline_sdk.mk new file mode 100644 index 0000000000..343aed6f12 --- /dev/null +++ b/target/product/mainline_sdk.mk @@ -0,0 +1,18 @@ +# Copyright (C) 2020 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. +# + +PRODUCT_NAME := mainline_sdk +PRODUCT_BRAND := Android +PRODUCT_DEVICE := mainline_sdk