Set boot anim res to half res and correct its size
[GitHub/exynos8895/android_device_samsung_universal8895-common.git] / BoardConfigCommon.mk
1 #
2 # Copyright (C) 2018 The LineageOS 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 LOCAL_PATH := device/samsung/universal8895-common
18
19 BUILD_BROKEN_DUP_RULES := true
20
21 # Include path
22 TARGET_SPECIFIC_HEADER_PATH := $(LOCAL_PATH)/include
23
24 # Bluetooth
25 BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(LOCAL_PATH)/bluetooth
26
27 # Firmware
28 TARGET_NO_BOOTLOADER := true
29 TARGET_NO_RADIOIMAGE := true
30
31 # Platform
32 TARGET_BOARD_PLATFORM := exynos5
33 TARGET_SOC := exynos8895
34 TARGET_BOOTLOADER_BOARD_NAME := universal8895
35 BOARD_VENDOR := samsung
36
37 # Architecture
38 TARGET_ARCH := arm64
39 TARGET_ARCH_VARIANT := armv8-a
40 TARGET_CPU_ABI := arm64-v8a
41 TARGET_CPU_ABI2 :=
42 TARGET_CPU_VARIANT := generic
43
44 # Secondary Architecture
45 TARGET_2ND_ARCH := arm
46 TARGET_2ND_ARCH_VARIANT := armv8-a
47 TARGET_2ND_CPU_ABI := armeabi-v7a
48 TARGET_2ND_CPU_ABI2 := armeabi
49 TARGET_2ND_CPU_VARIANT := cortex-a53.a57
50
51 # Binder
52 TARGET_USES_64_BIT_BINDER := true
53
54 # Apex
55 DEXPREOPT_GENERATE_APEX_IMAGE := true
56
57 # Extracted with libbootimg
58 BOARD_CUSTOM_BOOTIMG := true
59 TARGET_KERNEL_ADDITIONAL_FLAGS := HOSTCFLAGS="-fuse-ld=lld -Wno-unused-command-line-argument"
60 BOARD_CUSTOM_BOOTIMG_MK := hardware/samsung/mkbootimg.mk
61 BOARD_MKBOOTIMG_ARGS := --kernel_offset 0x00008000 --ramdisk_offset 0x01000000 --tags_offset 0x00000100
62 BOARD_KERNEL_BASE := 0x10000000
63 BOARD_KERNEL_PAGESIZE := 2048
64 BOARD_KERNEL_IMAGE_NAME := Image
65 #BOARD_KERNEL_CMDLINE := The bootloader ignores the cmdline from the boot.img
66 BOARD_KERNEL_SEPARATED_DT := true
67 TARGET_CUSTOM_DTBTOOL := dtbhtoolExynos
68 BOARD_ROOT_EXTRA_FOLDERS += efs cpefs
69 TARGET_KERNEL_CLANG_COMPILE := true
70
71 # Kernel
72 TARGET_KERNEL_ARCH := arm64
73 TARGET_KERNEL_HEADER_ARCH := arm64
74
75 # Kernel config
76 TARGET_KERNEL_SOURCE := kernel/samsung/universal8895
77
78 # Use these flags if the board has a ext4 partition larger than 2gb
79 BOARD_HAS_LARGE_FILESYSTEM := true
80 TARGET_USERIMAGES_USE_EXT4 := true
81 TARGET_USERIMAGES_USE_F2FS := true
82 BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
83
84 # Partitions
85 BOARD_BOOTIMAGE_PARTITION_SIZE := 41943040 #(40960 sda7)
86 BOARD_RECOVERYIMAGE_PARTITION_SIZE := 48234496 #(47104 sda8)
87 BOARD_SYSTEMIMAGE_PARTITION_SIZE := 4508876800 #(4454400 sda17)
88 BOARD_USERDATAIMAGE_PARTITION_SIZE := 58556678144 #(57184256 sda24)
89 BOARD_CACHEIMAGE_PARTITION_SIZE := 524288000 #(512000 sda18)
90 BOARD_FLASH_BLOCK_SIZE := 4096
91
92 # Manifest
93 PRODUCT_ENFORCE_VINTF_MANIFEST_OVERRIDE := true
94 DEVICE_MANIFEST_FILE := $(LOCAL_PATH)/manifest.xml
95
96 # Exclude AudioFX
97 TARGET_EXCLUDES_AUDIOFX := true
98
99 # Vendor separation
100 TARGET_COPY_OUT_VENDOR := system/vendor
101
102 # Device Tree
103 BOARD_USES_DT := true
104
105 # Renderscript
106 OVERRIDE_RS_DRIVER := libRSDriverArm.so
107
108 # Samsung HALs
109 TARGET_POWERHAL_VARIANT := samsung
110
111 # Bluetooth
112 BOARD_CUSTOM_BT_CONFIG := $(LOCAL_PATH)/bluetooth/libbt_vndcfg.txt
113 BOARD_HAVE_BLUETOOTH := true
114
115 # Backlight
116 BACKLIGHT_PATH := "/sys/class/backlight/panel/brightness"
117
118 # Recovery
119 TARGET_RECOVERY_FSTAB := $(LOCAL_PATH)/ramdisk/etc/fstab.samsungexynos8895
120
121 # Wifi
122 TARGET_USES_64_BIT_BCMDHD := true
123 BOARD_WLAN_DEVICE := bcmdhd
124 WPA_SUPPLICANT_VERSION := VER_0_8_X
125 BOARD_WPA_SUPPLICANT_DRIVER := NL80211
126 BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd
127 WPA_SUPPLICANT_USE_HIDL := true
128 BOARD_HOSTAPD_DRIVER := NL80211
129 BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd
130 WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/dhd/parameters/firmware_path"
131 WIFI_DRIVER_NVRAM_PATH_PARAM := "/sys/module/dhd/parameters/nvram_path"
132 WIFI_DRIVER_NVRAM_PATH := "/vendor/etc/wifi/nvram_net.txt"
133 WIFI_DRIVER_FW_PATH_STA := "/vendor/etc/wifi/bcmdhd_sta.bin"
134 WIFI_DRIVER_FW_PATH_AP := "/vendor/etc/wifi/bcmdhd_apsta.bin"
135 WIFI_BAND := 802_11_ABG
136 WIFI_HIDL_FEATURE_DUAL_INTERFACE := true
137
138 # MACLOADER
139 BOARD_HAVE_SAMSUNG_WIFI := true
140
141 # Selinux
142 BOARD_SEPOLICY_DIRS += device/samsung/universal8895-common/sepolicy
143 BOARD_SEPOLICY_VERS := $(PLATFORM_SDK_VERSION).0
144
145 # Ril
146 ENABLE_VENDOR_RIL_SERVICE := true
147
148 # Shims
149 TARGET_LD_SHIM_LIBS += \
150 /system/lib/libexynoscamera.so|/vendor/lib/libexynoscamera_shim.so \
151 /system/lib64/libexynoscamera.so|/vendor/lib64/libexynoscamera_shim.so
152
153 # Soong namespaces
154 PRODUCT_SOONG_NAMESPACES += $(LOCAL_PATH)