-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild
More file actions
executable file
·34 lines (24 loc) · 871 Bytes
/
build
File metadata and controls
executable file
·34 lines (24 loc) · 871 Bytes
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
#!/bin/bash
DESTDIR=/tmp/FriendlyARM/mini210
ADSTDIR=${DESTDIR}/android
LDSTDIR=${DESTDIR}/linux
mkdir -p ${ADSTDIR} ${LDSTDIR}
CPU_JOB_NUM=$(grep processor /proc/cpuinfo | awk '{field=$NF};END{print field+1}')
make distclean
touch .scmversion
# build zImage for android
cp mini210_android_defconfig .config && \
make -j${CPU_JOB_NUM} &&
cp -vf arch/arm/boot/zImage ${ADSTDIR}/zImage || exit 1
cp mini210-tvp5150_android_defconfig .config && \
make -j${CPU_JOB_NUM} &&
cp -vf arch/arm/boot/zImage ${ADSTDIR}/zImage_tvp5150 || exit 1
make distclean
touch .scmversion
# build zImage for linux
cp mini210_linux_defconfig .config && \
make -j${CPU_JOB_NUM} &&
cp -vf arch/arm/boot/zImage ${LDSTDIR}/zImage || exit 1
cp mini210-tvp5150_linux_defconfig .config && \
make -j${CPU_JOB_NUM} &&
cp -vf arch/arm/boot/zImage ${LDSTDIR}/zImage_tvp5150 || exit 1