-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·42 lines (34 loc) · 861 Bytes
/
Copy pathbuild.sh
File metadata and controls
executable file
·42 lines (34 loc) · 861 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
34
35
36
37
38
39
40
41
42
#!/bin/bash
export KBUILD_BUILD_USER=assusdan
export KBUILD_BUILD_HOST=SRT
if [ -f arch/arm/boot/zImage-dtb ]
then
echo 'Remove kernel...'
echo ""
rm arch/arm/boot/zImage*
fi
echo "Git pull..."
git pull >/dev/null
echo ""
echo "Export toolchains..."
export ARCH=arm CROSS_COMPILE=../*5.2*/bin/arm-cortex-linux-gnueabi-
echo ""
echo "Make defconfig..."
make benefit_m7_defconfig >/dev/null
echo ""
echo "Start build..."
time make -j4 >/dev/null 2>errors.log
echo ""
if [ ! -f arch/arm/boot/zImage-dtb ]
then
echo "BUILD ERRORS!"
echo "BUILD ERRORS!"
echo "BUILD ERRORS!"
else
echo 'Moving...'
cp arch/arm/boot/zImage-dtb /var/www/html/boot.img-kernel
mv arch/arm/boot/zImage-dtb boot.img-kernel
fi
echo "======================"
echo $[$SECONDS / 60]' minutes '$[$SECONDS % 60]' seconds'
echo "======================"