Skip to content

Commit

Permalink
[xprj, hikey] support hikey.
Browse files Browse the repository at this point in the history
  • Loading branch information
pengoor committed Dec 15, 2016
1 parent ec8080b commit 030be3e
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 3 deletions.
7 changes: 4 additions & 3 deletions config.mk
Expand Up @@ -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


#
Expand All @@ -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-
Expand All @@ -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-
Expand Down
38 changes: 38 additions & 0 deletions configs/config_hikey.mk
@@ -0,0 +1,38 @@
#
# General configure file of X project's build system.
#
# (C) Copyright 2016 wowotech
#
# wowo<wowo@wowotech.net>
#

#
# 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

0 comments on commit 030be3e

Please sign in to comment.