forked from rock64-android/device-rockchip-rk3328
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathBoardConfig.mk
executable file
·95 lines (76 loc) · 2.48 KB
/
BoardConfig.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#
# Copyright 2014 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.
#
ifeq ($(TARGET_PRODUCT),rock64_regular)
TARGET_BOARD_PLATFORM_PRODUCT := box
else
ifeq ($(TARGET_PRODUCT),rock64_atv)
TARGET_BOARD_PLATFORM_PRODUCT := box
endif
endif
# Use the non-open-source parts, if they're present
-include vendor/rockchip/rk3328/BoardConfigVendor.mk
-include device/rockchip/common/BoardConfig.mk
TARGET_PREBUILT_KERNEL := kernel/arch/arm64/boot/Image
TARGET_ARCH := arm64
TARGET_ARCH_VARIANT := armv8-a
TARGET_CPU_ABI := arm64-v8a
TARGET_CPU_ABI2 :=
TARGET_CPU_VARIANT := cortex-a53
TARGET_CPU_SMP := true
TARGET_2ND_ARCH := arm
TARGET_2ND_ARCH_VARIANT := armv7-a-neon
TARGET_2ND_CPU_ABI := armeabi-v7a
TARGET_2ND_CPU_ABI2 := armeabi
TARGET_2ND_CPU_VARIANT := cortex-a53
TARGET_BOARD_PLATFORM := rk3328
TARGET_BOARD_PLATFORM_GPU := mali450
# Disable emulator for "make dist" until there is a 64-bit qemu kernel
BUILD_EMULATOR := false
#MALLOC_IMPL := dlmalloc
MALLOC_SVELTE := true
# Copy RK3328 own init.rc file
# TARGET_PROVIDES_INIT_RC := true
GRAPHIC_MEMORY_PROVIDER := dma_buf
# 1536MB
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648
DEVICE_PACKAGE_OVERLAYS += device/rockchip/rk3328/overlay
# Enable dex-preoptimization to speed up first boot sequence
ifeq ($(HOST_OS),linux)
ifneq ($(filter user userdebug,$(TARGET_BUILD_VARIANT)),)
ifeq ($(WITH_DEXPREOPT),)
WITH_DEXPREOPT := true
endif
endif
endif
ENABLE_CPUSETS := true
BOARD_WITH_MEM_OPTIMISE := true
PRODUCT_HAVE_OPTEE := false
PRODUCT_HAVE_RKAPPS := false
PRODUCT_HAVE_RFTESTTOOL := false
PRODUCT_HAVE_RKPHONE_FEATURES := true
PRODUCT_HAVE_IPP := true
PRODUCT_HAVE_NAND := true
PRODUCT_HAVE_RKWIFI := true
PRODUCT_HAVE_RFTESTTOOL := false
PRODUCT_HAVE_GPS := false
PRODUCT_HAVE_RKEBOOK := false
PRODUCT_HAVE_DATACLONE := false
PRODUCT_HAVE_ADBLOCK := false
PRODUCT_HAVE_WEBKIT_DEBUG := false
# BOARD_HAVE_DONGLE := true
# Re-enable emulator for 32-bit
BUILD_EMULATOR := false
TARGET_BOARD_PLATFORM_PRODUCT := box