universal7580: import common extract-utils
[GitHub/LineageOS/android_device_samsung_universal7580-common.git] / BoardConfigCommon.mk
CommitLineData
583a3f4a
S
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
17LOCAL_PATH := device/samsung/universal7580-common
18
19# Include path
20TARGET_SPECIFIC_HEADER_PATH := $(LOCAL_PATH)/include
21
22# Firmware
23TARGET_NO_BOOTLOADER := true
24TARGET_NO_RADIOIMAGE := true
25
26# Platform
27TARGET_BOARD_PLATFORM := exynos5
28TARGET_SLSI_VARIANT := cm
29TARGET_SOC := exynos7580
30TARGET_BOOTLOADER_BOARD_NAME := universal7580
31
32# CPU
33TARGET_ARCH := arm
34TARGET_ARCH_VARIANT := armv7-a-neon
35TARGET_CPU_ABI := armeabi-v7a
36TARGET_CPU_ABI2 := armeabi
37TARGET_CPU_VARIANT := cortex-a53
38TARGET_CPU_CORTEX_A53 := true
39
40# Binder
41TARGET_USES_64_BIT_BINDER := true
42
43# Extracted with libbootimg
44BOARD_CUSTOM_BOOTIMG := true
45BOARD_CUSTOM_BOOTIMG_MK := hardware/samsung/mkbootimg.mk
46BOARD_MKBOOTIMG_ARGS := --kernel_offset 0x00008000 --ramdisk_offset 0x01000000 --tags_offset 0x00000100
47BOARD_KERNEL_BASE := 0x10000000
48BOARD_KERNEL_PAGESIZE := 2048
49BOARD_KERNEL_IMAGE_NAME := Image
50#BOARD_KERNEL_CMDLINE := The bootloader ignores the cmdline from the boot.img
51BOARD_KERNEL_SEPARATED_DT := true
52TARGET_CUSTOM_DTBTOOL := dtbhtoolExynos
53
54# Kernel
55TARGET_KERNEL_ARCH := arm64
56TARGET_KERNEL_CROSS_COMPILE_PREFIX := aarch64-linux-android-
57KERNEL_TOOLCHAIN := $(ANDROID_BUILD_TOP)/prebuilts/gcc/$(HOST_OS)-x86/aarch64/aarch64-linux-android-4.9/bin
58TARGET_LINUX_KERNEL_VERSION := 3.10
59
60# Kernel config
61TARGET_KERNEL_SOURCE := kernel/samsung/universal7580
62
63# Use these flags if the board has a ext4 partition larger than 2gb
64BOARD_HAS_LARGE_FILESYSTEM := true
65TARGET_USERIMAGES_USE_EXT4 := true
66
67# Vendor separation
68TARGET_COPY_OUT_VENDOR := system/vendor
69
70# Device Tree
71BOARD_USES_DT := true