forked from igorpecovnik/BananaPI-Debian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
51 lines (41 loc) · 1.84 KB
/
build.sh
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
#!/bin/bash
#
# Created by Igor Pecovnik, www.igorpecovnik.com
#
# Configuration
#--------------------------------------------------------------------------------------------------------------------------------
BOARD="bananapi" # bananapi
BRANCH="default" # default=3.4.x, mainline=next
RELEASE="wheezy" # jessie, wheezy or trusty
# numbers
SDSIZE="1200" # SD image size in MB
REVISION="2.0" # image release version
# method
SOURCE_COMPILE="yes" # force source compilation: yes / no
KERNEL_CONFIGURE="no" # want to change my default configuration
KERNEL_CLEAN="yes" # run MAKE clean before kernel compilation
USEALLCORES="yes" # Use all CPU cores for compiling
# user
DEST_LANG="en_US.UTF-8" # sl_SI.UTF-8, en_US.UTF-8
TZDATA="Europe/Ljubljana" # Timezone
ROOTPWD="1234" # Must be changed @first login
MAINTAINER="Igor Pecovnik" # deb signature
MAINTAINERMAIL="igor.pecovnik@****l.com" # deb signature
# advanced
FBTFT="no" # https://github.com/notro/fbtft
EXTERNAL="no" # compile extra drivers`
#--------------------------------------------------------------------------------------------------------------------------------
# source is where we start the script
SRC=$(pwd)
# destination
DEST=$(pwd)/output
# get updates of the main build libraries
if [ -d "$SRC/lib" ]; then
cd $SRC/lib
git pull
else
# download SDK
git clone https://github.com/igorpecovnik/lib
fi
source $SRC/lib/main.sh
#--------------------------------------------------------------------------------------------------------------------------------