Amit Pundir | af628c2 | 2016-11-02 16:37:00 +0800 | [diff] [blame] | 1 | include device/linaro/hikey/BoardConfigCommon.mk |
| 2 | |
Jake Weinstein | f2de134 | 2017-06-23 12:23:08 -0400 | [diff] [blame] | 3 | TARGET_CPU_VARIANT := cortex-a53 |
| 4 | TARGET_2ND_CPU_VARIANT := cortex-a53 |
| 5 | |
Amit Pundir | af628c2 | 2016-11-02 16:37:00 +0800 | [diff] [blame] | 6 | TARGET_BOARD_PLATFORM := hikey |
Dmitry Shmidt | 20f2bc1 | 2017-05-11 17:05:01 -0700 | [diff] [blame] | 7 | ifeq ($(TARGET_KERNEL_USE), 3.18) |
Amit Pundir | af628c2 | 2016-11-02 16:37:00 +0800 | [diff] [blame] | 8 | BOARD_KERNEL_CMDLINE := console=ttyAMA3,115200 androidboot.console=ttyAMA3 androidboot.hardware=hikey firmware_class.path=/system/etc/firmware efi=noruntime |
| 9 | else |
| 10 | BOARD_KERNEL_CMDLINE := console=ttyFIQ0 androidboot.console=ttyFIQ0 androidboot.hardware=hikey firmware_class.path=/system/etc/firmware efi=noruntime |
| 11 | endif |
| 12 | |
Yongqin Liu | db3edca | 2017-03-28 22:44:07 +0800 | [diff] [blame] | 13 | ## printk.devkmsg only has meaning for kernel 4.9 and later |
Dmitry Shmidt | 20f2bc1 | 2017-05-11 17:05:01 -0700 | [diff] [blame] | 14 | ## it would be ignored by kernel 3.18 and kernel 4.4 |
Yongqin Liu | db3edca | 2017-03-28 22:44:07 +0800 | [diff] [blame] | 15 | BOARD_KERNEL_CMDLINE += printk.devkmsg=on |
| 16 | |
Dmitry Shmidt | 5d08080 | 2017-04-11 14:20:03 -0700 | [diff] [blame] | 17 | TARGET_NO_DTIMAGE := true |
| 18 | |
Amit Pundir | af628c2 | 2016-11-02 16:37:00 +0800 | [diff] [blame] | 19 | BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1610612736 |
| 20 | ifeq ($(TARGET_USERDATAIMAGE_4GB), true) |
| 21 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 1595915776 |
| 22 | else |
| 23 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 5588893184 |
| 24 | endif |
| 25 | BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456 |
| 26 | BOARD_FLASH_BLOCK_SIZE := 131072 |