blob: 2683711d2d112b449e49f9063b4307b7257af396 [file] [log] [blame]
Amit Pundir4e375822019-04-18 16:46:10 +05301# Copyright (C) 2013 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15
Amit Pundir4e375822019-04-18 16:46:10 +053016
17TARGET_NO_BOOTLOADER := true
18TARGET_NO_KERNEL := true
19TARGET_NO_RECOVERY := true
20
Amit Pundir3d8b3c62023-06-05 15:22:50 +053021BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := erofs
Amit Pundirc54be552024-06-06 07:21:33 +000022TARGET_USERIMAGES_USE_F2FS := true
23BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE := f2fs
24# Currently, f2fs block size must be equal to page size
25BOARD_F2FS_BLOCKSIZE := 4096
Amit Pundir4e375822019-04-18 16:46:10 +053026TARGET_COPY_OUT_VENDOR := vendor
Amit Pundir3d8b3c62023-06-05 15:22:50 +053027BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := erofs
Amit Pundir4e375822019-04-18 16:46:10 +053028TARGET_COPY_OUT_SYSTEM_EXT := system_ext
Amit Pundir3d8b3c62023-06-05 15:22:50 +053029BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE := erofs
Yongqin Liu55663172020-03-28 11:30:25 +080030TARGET_COPY_OUT_PRODUCT := product
Amit Pundir3d8b3c62023-06-05 15:22:50 +053031BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := erofs
Amit Pundir4e375822019-04-18 16:46:10 +053032BOARD_USES_METADATA_PARTITION := true
33# Super partition
34TARGET_USE_DYNAMIC_PARTITIONS := true
35BOARD_BUILD_SUPER_IMAGE_BY_DEFAULT := true
36BOARD_SUPER_PARTITION_GROUPS := db_dynamic_partitions
Yongqin Liu55663172020-03-28 11:30:25 +080037BOARD_DB_DYNAMIC_PARTITIONS_PARTITION_LIST := system vendor system_ext product
Amit Pundir4e375822019-04-18 16:46:10 +053038
39# Enable Treble
40PRODUCT_FULL_TREBLE := true
41BOARD_VNDK_VERSION := current
42
Amit Pundir4e375822019-04-18 16:46:10 +053043# WiFi
44WPA_SUPPLICANT_VERSION := VER_0_8_X
45BOARD_WPA_SUPPLICANT_DRIVER := NL80211
46BOARD_HOSTAPD_DRIVER := NL80211
47BOARD_WLAN_DEVICE := qcwcn
48BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
49
50# BT
51BOARD_HAVE_BLUETOOTH := true
52
53BOARD_SEPOLICY_DIRS += \
54 device/linaro/dragonboard/sepolicy \
55 system/bt/vendor_libs/linux/sepolicy
56
Amit Pundir4e375822019-04-18 16:46:10 +053057# Enable dex pre-opt to speed up initial boot
58ifeq ($(HOST_OS),linux)
59 ifeq ($(WITH_DEXPREOPT),)
60 WITH_DEXPREOPT := true
61 WITH_DEXPREOPT_PIC := true
62 endif
63endif
Amit Pundirfbd3fbb2021-11-18 14:59:17 +053064
65# Copy firmware files to ramdisk/vendor_ramdisk to workaround
66# the dependency on FW_LOADER_USER_HELPER_FALLBACK kernel config
67BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := true