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