Amit Pundir | af628c2 | 2016-11-02 16:37:00 +0800 | [diff] [blame] | 1 | include device/linaro/hikey/BoardConfigCommon.mk |
| 2 | |
Dmitry Shmidt | a167bf6 | 2017-08-24 12:51:42 -0700 | [diff] [blame] | 3 | TARGET_BOOTLOADER_BOARD_NAME := hikey |
| 4 | TARGET_BOARD_PLATFORM := hikey |
| 5 | |
Jake Weinstein | f2de134 | 2017-06-23 12:23:08 -0400 | [diff] [blame] | 6 | TARGET_CPU_VARIANT := cortex-a53 |
| 7 | TARGET_2ND_CPU_VARIANT := cortex-a53 |
| 8 | |
Dmitry Shmidt | 20f2bc1 | 2017-05-11 17:05:01 -0700 | [diff] [blame] | 9 | ifeq ($(TARGET_KERNEL_USE), 3.18) |
Amit Pundir | af628c2 | 2016-11-02 16:37:00 +0800 | [diff] [blame] | 10 | BOARD_KERNEL_CMDLINE := console=ttyAMA3,115200 androidboot.console=ttyAMA3 androidboot.hardware=hikey firmware_class.path=/system/etc/firmware efi=noruntime |
| 11 | else |
| 12 | BOARD_KERNEL_CMDLINE := console=ttyFIQ0 androidboot.console=ttyFIQ0 androidboot.hardware=hikey firmware_class.path=/system/etc/firmware efi=noruntime |
| 13 | endif |
| 14 | |
Ben Fennema | 52301e4 | 2017-10-17 12:24:04 -0700 | [diff] [blame] | 15 | ifneq ($(TARGET_SENSOR_MEZZANINE),) |
| 16 | BOARD_KERNEL_CMDLINE += overlay_mgr.overlay_dt_entry=hardware_cfg_$(TARGET_SENSOR_MEZZANINE) |
| 17 | endif |
| 18 | |
Yongqin Liu | db3edca | 2017-03-28 22:44:07 +0800 | [diff] [blame] | 19 | ## printk.devkmsg only has meaning for kernel 4.9 and later |
Dmitry Shmidt | 20f2bc1 | 2017-05-11 17:05:01 -0700 | [diff] [blame] | 20 | ## it would be ignored by kernel 3.18 and kernel 4.4 |
Yongqin Liu | db3edca | 2017-03-28 22:44:07 +0800 | [diff] [blame] | 21 | BOARD_KERNEL_CMDLINE += printk.devkmsg=on |
| 22 | |
Dmitry Shmidt | 5d08080 | 2017-04-11 14:20:03 -0700 | [diff] [blame] | 23 | TARGET_NO_DTIMAGE := true |
| 24 | |
Amit Pundir | af628c2 | 2016-11-02 16:37:00 +0800 | [diff] [blame] | 25 | BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1610612736 |
Mark Salyzyn | 97ae220 | 2017-05-26 14:56:52 -0700 | [diff] [blame] | 26 | ifeq ($(TARGET_USERDATAIMAGE_4GB), true) # to build for aosp-4g partition table |
Amit Pundir | af628c2 | 2016-11-02 16:37:00 +0800 | [diff] [blame] | 27 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 1595915776 |
| 28 | else |
Mark Salyzyn | 97ae220 | 2017-05-26 14:56:52 -0700 | [diff] [blame] | 29 | ifeq ($(TARGET_WITH_SWAP), true) # to build for swap-8g partition table |
| 30 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 4246715904 |
| 31 | else |
Amit Pundir | af628c2 | 2016-11-02 16:37:00 +0800 | [diff] [blame] | 32 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 5588893184 |
| 33 | endif |
Mark Salyzyn | 97ae220 | 2017-05-26 14:56:52 -0700 | [diff] [blame] | 34 | endif |
Amit Pundir | af628c2 | 2016-11-02 16:37:00 +0800 | [diff] [blame] | 35 | BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456 |
| 36 | BOARD_FLASH_BLOCK_SIZE := 131072 |