-
Notifications
You must be signed in to change notification settings - Fork 7
/
BoardConfigExtra.mk
33 lines (27 loc) · 935 Bytes
/
BoardConfigExtra.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#
# Copyright (C) 2022 Giovanni Ricca
#
# SPDX-License-Identifier: Apache-2.0
#
VENDOR_EXTRA_PATH := vendor/extra
# Inherit priv Makefile
-include $(VENDOR_EXTRA_PATH)/priv/BoardConfigPriv.mk
# Inherit MiuiCamera Makefile
-include vendor/xiaomi/miuicamera-$(PRODUCT_DEVICE)/BoardConfig.mk
# Camera
ifneq ($(filter atoll lahaina,$(TARGET_BOARD_PLATFORM)),)
TARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED := true
endif
# Camera - MiuiCamera
# To use with external/jemalloc_new from AOSPA
ifeq ($(TARGET_BOARD_PLATFORM), atoll)
MALLOC_SVELTE := true
MALLOC_SVELTE_FOR_LIBC32 := true
endif
# Props
TARGET_VENDOR_PROP += $(VENDOR_EXTRA_PATH)/props/vendor.prop
TARGET_SYSTEM_EXT_PROP += $(VENDOR_EXTRA_PATH)/props/system_ext.prop
ifneq ($(filter msm8953 hi3660 hi6250,$(TARGET_BOARD_PLATFORM)),)
TARGET_VENDOR_PROP += $(VENDOR_EXTRA_PATH)/props/go_vendor.prop
TARGET_SYSTEM_EXT_PROP += $(VENDOR_EXTRA_PATH)/props/go_system_ext.prop
endif