-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathconfig.mk
45 lines (37 loc) · 1.21 KB
/
config.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#
# General configure file of X project's build system.
#
# (C) Copyright 2016 wowotech
#
# wowo<[email protected]>
#
#
# please include whatever you need from ./configs directory
# accroding to your real board type.
#
#include ./configs/config_tiny210.mk
include ./configs/config_bubblegum.mk
#include ./configs/config_hikey.mk
#
# some common definitions
#
BUILD_DIR=$(shell pwd)
SCRIPT_DIR=$(BUILD_DIR)/script
ITS_DIR=$(BUILD_DIR)/its
CONFIGS_DIR=$(BUILD_DIR)/configs
TOOLS_DIR=$(BUILD_DIR)/../tools
BIT32_64=$(shell getconf LONG_BIT)
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-
else
COMPILE_URL=https://github.com/wowotechX/gcc-linaro-aarch64-linux-gnu-4.8-2013.12_linux.git
CROSS_COMPILE=$(BUILD_DIR)/gcc-linaro-aarch64-linux-gnu-4.8-2013.12_linux/bin/aarch64-linux-gnu-
endif
endif
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-
endif