• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1include device/linaro/hikey/BoardConfigCommon.mk
2
3TARGET_BOOTLOADER_BOARD_NAME := hikey
4TARGET_BOARD_PLATFORM := hikey
5
6TARGET_CPU_VARIANT := cortex-a53
7TARGET_2ND_CPU_VARIANT := cortex-a53
8
9BOARD_KERNEL_CMDLINE := androidboot.hardware=hikey firmware_class.path=/vendor/firmware efi=noruntime init=/init
10BOARD_KERNEL_CMDLINE += androidboot.boot_devices=soc/f723d000.dwmmc0
11BOARD_KERNEL_CMDLINE += console=ttyAMA3,115200 androidboot.console=ttyAMA3
12
13ifneq ($(TARGET_SENSOR_MEZZANINE),)
14BOARD_KERNEL_CMDLINE += overlay_mgr.overlay_dt_entry=hardware_cfg_$(TARGET_SENSOR_MEZZANINE)
15endif
16
17## printk.devkmsg only has meaning for kernel 4.9 and later
18## it would be ignored by kernel 4.4
19BOARD_KERNEL_CMDLINE += printk.devkmsg=on
20
21TARGET_NO_DTIMAGE := true
22
23BOARD_BOOTIMAGE_PARTITION_SIZE := 67108864
24BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1610612736
25ifeq ($(TARGET_USERDATAIMAGE_4GB), true) # to build for aosp-4g partition table
26BOARD_USERDATAIMAGE_PARTITION_SIZE := 1595915776
27else
28ifeq ($(TARGET_WITH_SWAP), true) # to build for swap-8g partition table
29BOARD_USERDATAIMAGE_PARTITION_SIZE := 4246715904
30else
31BOARD_USERDATAIMAGE_PARTITION_SIZE := 5588893184
32endif
33endif
34BOARD_FLASH_BLOCK_SIZE := 131072
35
36# Vendor partition definitions
37TARGET_COPY_OUT_VENDOR := vendor
38BOARD_VENDORIMAGE_PARTITION_SIZE := 268435456 # 256MB
39BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
40BOARD_VENDORIMAGE_JOURNAL_SIZE := 0
41BOARD_VENDORIMAGE_EXTFS_INODE_COUNT := 2048
42
43TARGET_RECOVERY_FSTAB := device/linaro/hikey/hikey/$(TARGET_FSTAB)
44