SzuWei Lin | 8075569 | 2017-07-28 11:35:40 +0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2017 The Android Open-Source Project |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | |
| 17 | # Common boardconfig settings for generic AOSP products targetting mobile |
| 18 | # (phone/table) devices. |
| 19 | |
SzuWei Lin | 3cbe82d | 2017-08-11 17:30:17 +0800 | [diff] [blame] | 20 | # VNDK |
| 21 | BOARD_VNDK_VERSION := current |
| 22 | |
SzuWei Lin | 8075569 | 2017-07-28 11:35:40 +0800 | [diff] [blame] | 23 | # Properties |
| 24 | TARGET_SYSTEM_PROP := build/make/target/board/treble_system.prop |
| 25 | BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true |
| 26 | |
| 27 | # Bootloader, kernel and recovery are not part of generic AOSP image |
| 28 | TARGET_NO_BOOTLOADER := true |
| 29 | TARGET_NO_KERNEL := true |
| 30 | |
| 31 | # system.img is always ext4 with sparse option |
| 32 | TARGET_USERIMAGES_USE_EXT4 := true |
| 33 | TARGET_USERIMAGES_SPARSE_EXT_DISABLED := false |
| 34 | TARGET_USES_MKE2FS := true |
SzuWei Lin | 8075569 | 2017-07-28 11:35:40 +0800 | [diff] [blame] | 35 | |
| 36 | # Generic AOSP image always requires separate vendor.img |
| 37 | TARGET_COPY_OUT_VENDOR := vendor |
| 38 | |
SzuWei Lin | 8075569 | 2017-07-28 11:35:40 +0800 | [diff] [blame] | 39 | # Generic AOSP image does NOT support HWC1 |
| 40 | TARGET_USES_HWC2 := true |
| 41 | # Set emulator framebuffer display device buffer count to 3 |
| 42 | NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3 |
| 43 | |
SzuWei Lin | 83890eb | 2017-12-25 11:43:24 +0800 | [diff] [blame] | 44 | # Audio |
| 45 | USE_XML_AUDIO_POLICY_CONF := 1 |
Bowgo Tsai | 882c99a | 2017-08-18 16:08:36 +0800 | [diff] [blame] | 46 | |
| 47 | # b/64700195: add minimum support for odm.img |
| 48 | # Currently odm.img can only be built by `make custom_images`. |
| 49 | # Adding /odm mount point under root directory. |
| 50 | BOARD_ROOT_EXTRA_FOLDERS += odm |
SzuWei Lin | 83890eb | 2017-12-25 11:43:24 +0800 | [diff] [blame] | 51 | |
| 52 | # Android Verified Boot (AVB): |
| 53 | # Builds a special vbmeta.img that disables AVB verification. |
| 54 | # Otherwise, AVB will prevent the device from booting the generic system.img. |
| 55 | # Also checks that BOARD_AVB_ENABLE is not set, to prevent adding verity |
| 56 | # metadata into system.img. |
| 57 | ifeq ($(BOARD_AVB_ENABLE),true) |
| 58 | $(error BOARD_AVB_ENABLE cannot be set for Treble GSI) |
| 59 | endif |
| 60 | BOARD_BUILD_DISABLED_VBMETAIMAGE := true |