diff --git a/config.mk b/config.mk index 45f9ca1..abdfc5f 100644 --- a/config.mk +++ b/config.mk @@ -10,7 +10,8 @@ # accroding to your real board type. # #include ./configs/config_tiny210.mk -include ./configs/config_bubblegum.mk +#include ./configs/config_bubblegum.mk +include ./configs/config_hikey.mk # @@ -27,7 +28,7 @@ TOOLS_DIR=$(BUILD_DIR)/../tools BIT32_64=$(shell getconf LONG_BIT) -ifeq ($(BOARD_NAME), bubblegum) +ifeq ($(BOARD_ARCH), arm64) ifeq ($(BIT32_64), 64) COMPILE_URL=https://github.com/wowotechX/gcc-linaro-4.9-2015.02-3-x86_64_aarch64-linux-gnu.git CROSS_COMPILE=$(BUILD_DIR)/gcc-linaro-4.9-2015.02-3-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu- @@ -37,7 +38,7 @@ CROSS_COMPILE=$(BUILD_DIR)/gcc-linaro-aarch64-linux-gnu-4.8-2013.12_linux/bin/aa endif endif -ifeq ($(BOARD_NAME), tiny210) +ifeq ($(BOARD_ARCH), arm) #use arm-linux-gcc-4.8.3 to build uboot and uboot-spl. COMPILE_URL=https://github.com/ooonebook/arm-none-linux-gnueabi-4.8.git CROSS_COMPILE=$(BUILD_DIR)/arm-none-linux-gnueabi-4.8/bin/arm-none-linux-gnueabi- diff --git a/configs/config_hikey.mk b/configs/config_hikey.mk new file mode 100644 index 0000000..b701f93 --- /dev/null +++ b/configs/config_hikey.mk @@ -0,0 +1,38 @@ +# +# General configure file of X project's build system. +# +# (C) Copyright 2016 wowotech +# +# wowo +# + +# +# Board information +# +BOARD_NAME=hikey +BOARD_ARCH=arm64 + +BOARD_VENDOR=hisilicon + +# +# Memory usage information +# +DDR_BASE=0x0 +DDR_SIZE=0x3FFFFFFF + +SPL_BASE=0xf9800800 + +UBOOT_BASE=0x11000000 + +FIT_UIMAGE_BASE=0x6400000 + +# +# Linux Kernel information +# +KERNEL_LOAD_ADDR=0x00080000 +KERNEL_ENTRY_ADDR=0x00080000 + +# +# DTB information +# +DTB_ENABLE=1