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