-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild
More file actions
executable file
·115 lines (90 loc) · 1.94 KB
/
build
File metadata and controls
executable file
·115 lines (90 loc) · 1.94 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#!/bin/sh
#
# The main menu for building MaxWit Lablin
#
# http://www.maxwit.com
# http://maxwit.googlecode.com
#
# Authors:
# Tiger Yu <tiger@maxwit.com>
# Conke Hu <conke@maxwit.com>
# Fleya Hou <fleya@maxwit.com>
#
BOARD_NAME="armv7"
MW_TOP_DIR=`dirname $0`
cd ${MW_TOP_DIR}
MW_TOP_DIR=${PWD}
MAXWIT_TOP=/maxwit
LABLIN_TOP=${MAXWIT_TOP}/image/${BOARD_NAME}
. core/bmw_menu
. core/bmw_pkgs
. core/bmw_base
. target/build
BUILD_JOBS="-j2"
#export LD_LIBRARY_PATH=${UTILS_ROOT}/usr/lib
export PKG_CONFIG_PATH=${ROOTFS_PATH}/usr/lib/pkgconfig/
if [ "${1}" == "all" ]; then
for dir in `ls ${LABLIN_TOP}`
do
echo "Removing ${LABLIN_TOP}/${dir}"
rm -rf ${LABLIN_TOP}/${dir}
done
mkdir -vp ${BUILD_PATH}
mkdir -vp ${ROOTFS_PATH}
mkdir -vp ${IMAGE_PATH}
mkdir -vp ${TOOLCHAIN_BUILD_PATH}
mkdir -vp ${KERNEL_BUILD_PATH}
mkdir -vp ${APP_BUILD_PATH}
echo
##fix me
# check powertool, if exist, skipping. otherwise checkout powertool for server and build it.
build_basic_rootfs && \
build_linux_kernel && \
build_all_app && \
build_qtopia && \
run_qemu
exit 0
fi
mkdir -vp ${BUILD_PATH}
mkdir -vp ${ROOTFS_PATH}
mkdir -vp ${IMAGE_PATH}
mkdir -vp ${TOOLCHAIN_BUILD_PATH}
mkdir -vp ${KERNEL_BUILD_PATH}
mkdir -vp ${APP_BUILD_PATH}
while true
do
show_menu "[MaxWit Lablin Building Menu] (for ${TARGET_SOC})" \
"Build Basic System (${MWP_KERNEL} & libc & busybox & udev)" \
"Build Applications (Lib/App/Games)" \
"Build Qtopia" \
"Testing on QEMU" \
"Create File System Images (UBI/YAFFS2/JFFS2,etc.)"
case $? in
0)
exit 1
;;
1)
##fix me
# check powertool, if exist, skipping. otherwise checkout powertool for server and build it.
build_linux_kernel || exit 1
build_basic_rootfs || exit 1
# build_root_std || exit 1
;;
2)
build_all_app || exit 1
;;
3)
build_qtopia || exit 1
;;
4)
run_qemu
;;
5)
create_image
;;
*)
echo "Wrong Choice! Please Try Again."
;;
esac
echo
done