forked from lineCode/minigui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildlib-linux-apollo_ch
executable file
·62 lines (52 loc) · 1.37 KB
/
buildlib-linux-apollo_ch
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
#
# Please make sure that the following things are OK:
#
# 1. You have installed the arm-elf-tools already.
# 2. Your uClinux distribution has been installed into the directory of '/opt/em85xx/'.
#
alias make='make -j3'
rm config.cache config.status -f
#项目名称
PRO_NAME=changhong
#编译链前缀
CC_PREFIX='arm-none-linux-gnueabi'
#指定minigui的安装目录
PREFIX=~/work/$PRO_NAME/local
#定义交叉编译链的路径
CROSSTOOLPATH=/home/hejia/work/$PRO_NAME/toolchain/bin
export PATH=$CROSSTOOLPATH:$PATH
#export PATH
#gcc的编译参数(按照实际情况修改)及编译minigui的配置参数
BUILD=i686-linux
HOST=arm-linux
TARGET=arm-linux
STRIP=$CC_PREFIX-strip \
RANLIB=$CC_PREFIX-ranlib \
LD=$CC_PREFIX-ld \
AS=$CC_PREFIX-as \
AR=$CC_PREFIX-ar \
CXX=$CC_PREFIX-g++ \
CC=$CC_PREFIX-gcc \
CFLAGS="-g -I$CROSSTOOLPATH/../$CC_PREFIX/include -I${PREFIX}/include" \
LDFLAGS="-L$CROSSTOOLPATH/../$CC_PREFIX/lib -L${PREFIX}/lib" \
./configure --prefix=${PREFIX} \
--build=$BUILD\
--host=$HOST \
--target=$TARGET \
--disable-videoqvfb \
--disable-pcxvfb \
--enable-videoshadow \
--enable-ctrlgridview \
--enable-procs=no \
--enable-autoial \
--enable-incoreres \
--enable-upfsupport \
--enable-flatlf \
--enable-skinlf \
--enable-vbfsupport \
--enable-bmpfsupport \
--disable-consoleial \
--disable-savescreen
make;make install
echo DONE;