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 | 6a9f984 | 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 | c48cae6 | 2017-03-28 22:44:07 +0800 | [diff] [blame] | 10 | ## printk.devkmsg only has meaning for kernel 4.9 and later |
Dmitry Shmidt | 6a9f984 | 2017-05-11 17:05:01 -0700 | [diff] [blame^] | 11 | ## it would be ignored by kernel 3.18 and kernel 4.4 |
Yongqin Liu | c48cae6 | 2017-03-28 22:44:07 +0800 | [diff] [blame] | 12 | BOARD_KERNEL_CMDLINE += printk.devkmsg=on |
| 13 | |
Amit Pundir | af628c2 | 2016-11-02 16:37:00 +0800 | [diff] [blame] | 14 | BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1610612736 |
| 15 | ifeq ($(TARGET_USERDATAIMAGE_4GB), true) |
| 16 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 1595915776 |
| 17 | else |
| 18 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 5588893184 |
| 19 | endif |
| 20 | BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456 |
| 21 | BOARD_FLASH_BLOCK_SIZE := 131072 |