blob: 0cf35278374ae5ba0bc527b944d01fe15bc84a21 [file] [log] [blame]
Amit Pundiraf628c22016-11-02 16:37:00 +08001include device/linaro/hikey/BoardConfigCommon.mk
2
Dmitry Shmidta167bf62017-08-24 12:51:42 -07003TARGET_BOOTLOADER_BOARD_NAME := hikey
4TARGET_BOARD_PLATFORM := hikey
5
Jake Weinsteinf2de1342017-06-23 12:23:08 -04006TARGET_CPU_VARIANT := cortex-a53
7TARGET_2ND_CPU_VARIANT := cortex-a53
8
Dmitry Shmidt20f2bc12017-05-11 17:05:01 -07009ifeq ($(TARGET_KERNEL_USE), 3.18)
Amit Pundiraf628c22016-11-02 16:37:00 +080010BOARD_KERNEL_CMDLINE := console=ttyAMA3,115200 androidboot.console=ttyAMA3 androidboot.hardware=hikey firmware_class.path=/system/etc/firmware efi=noruntime
11else
12BOARD_KERNEL_CMDLINE := console=ttyFIQ0 androidboot.console=ttyFIQ0 androidboot.hardware=hikey firmware_class.path=/system/etc/firmware efi=noruntime
13endif
14
Yongqin Liudb3edca2017-03-28 22:44:07 +080015## printk.devkmsg only has meaning for kernel 4.9 and later
Dmitry Shmidt20f2bc12017-05-11 17:05:01 -070016## it would be ignored by kernel 3.18 and kernel 4.4
Yongqin Liudb3edca2017-03-28 22:44:07 +080017BOARD_KERNEL_CMDLINE += printk.devkmsg=on
18
Dmitry Shmidt5d080802017-04-11 14:20:03 -070019TARGET_NO_DTIMAGE := true
20
Amit Pundiraf628c22016-11-02 16:37:00 +080021BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1610612736
Mark Salyzyn97ae2202017-05-26 14:56:52 -070022ifeq ($(TARGET_USERDATAIMAGE_4GB), true) # to build for aosp-4g partition table
Amit Pundiraf628c22016-11-02 16:37:00 +080023BOARD_USERDATAIMAGE_PARTITION_SIZE := 1595915776
24else
Mark Salyzyn97ae2202017-05-26 14:56:52 -070025ifeq ($(TARGET_WITH_SWAP), true) # to build for swap-8g partition table
26BOARD_USERDATAIMAGE_PARTITION_SIZE := 4246715904
27else
Amit Pundiraf628c22016-11-02 16:37:00 +080028BOARD_USERDATAIMAGE_PARTITION_SIZE := 5588893184
29endif
Mark Salyzyn97ae2202017-05-26 14:56:52 -070030endif
Amit Pundiraf628c22016-11-02 16:37:00 +080031BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456
32BOARD_FLASH_BLOCK_SIZE := 131072