Skip to content

Commit a766540

Browse files
committed
build kernel and sunxi-tools too in release build
1 parent 1ad4c1e commit a766540

9 files changed

+46
-19
lines changed

bootstrap.sh

+25-9
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export LC_ALL="C"
3838

3939
APTNI="apt-get -q -y --no-install-recommends --force-yes -o Dpkg::Options::=\"--force-confdef\" -o Dpkg::Options::=\"--force-confold\" ";
4040

41-
DEBIAN_MIRROR="http://ftp.at.debian.org/debian/"
41+
DEBIAN_MIRROR="http://debian.inode.at/debian/"
4242

4343
dir="`dirname $0`"
4444
BOOTSTRAP_DIR="`cd $dir; pwd`"
@@ -180,6 +180,12 @@ function doBuild() {
180180
"$CHRT $APTNI -t sid install $PKG_BUILD"
181181

182182
if [ $ARCH == "armhf" ]; then
183+
check "Clone kernel" \
184+
"cd $BOOTSTRAP_DIR/third/; ./clone_kernel.sh"
185+
186+
check "Cross compile kernel" \
187+
"cd $BOOTSTRAP_DIR/third/; ./build_kernel.sh"
188+
183189
check "Clone dri2" \
184190
"cd $BOOTSTRAP_DIR/third/; ./clone_dri2.sh"
185191

@@ -189,6 +195,9 @@ function doBuild() {
189195
check "Clone sunxi-mali" \
190196
"cd $BOOTSTRAP_DIR/third/; ./clone_sunxi-mali.sh"
191197

198+
check "Clone sunxi-tools" \
199+
"cd $BOOTSTRAP_DIR/third/; ./clone_sunxi-tools.sh"
200+
192201
# check "Clone sunxi-tools" \
193202
# "cd $BOOTSTRAP_DIR/third/; ./clone_sunxi-tools.sh"
194203

@@ -217,33 +226,40 @@ function doBuild() {
217226
"cp -r $BOOTSTRAP_DIR/third/ \"$CHROOT_DIR\""
218227

219228
if [ $ARCH == "armhf" ]; then
220-
check "build dri2" \
229+
230+
check "Install kernel" \
231+
"$CHRT /third/install_kernel.sh"
232+
233+
check "Build dri2" \
221234
"$CHRT /third/build_dri2.sh"
222235

223-
check "build sunxi-mali" \
236+
check "Build sunxi-mali" \
224237
"$CHRT /third//build_sunxi-mali.sh"
225238

239+
check "Build sunxi-tools" \
240+
"$CHRT /third//build_sunxi-tools.sh"
241+
226242
# check "build sunxi-tools" \
227243
# "$CHRT /third/build_sunxi-tools.sh"
228244

229-
check "build xf86-video-fbturbo" \
245+
check "Build xf86-video-fbturbo" \
230246
"$CHRT /third/build_xf86-video-fbturbo.sh"
231247

232-
check "build libvdpau-sunxi" \
248+
check "Build libvdpau-sunxi" \
233249
"$CHRT /third/build_libvdpau-sunxi.sh"
234250

235251
fi
236252

237-
check "build luajit-rocks" \
253+
check "Build luajit-rocks" \
238254
"$CHRT /third/build_luajitrocks.sh"
239255

240-
check "build lanes" \
256+
check "Build lanes" \
241257
"$CHRT /third/build_lanes.sh"
242258

243-
check "build janosh" \
259+
check "Build janosh" \
244260
"$CHRT /third/build_janosh.sh"
245261

246-
check "build SimpleOSD" \
262+
check "Build SimpleOSD" \
247263
"$CHRT /third/build_simpleosd.sh"
248264
}
249265

config/packages_build

+1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,5 @@ binutils-dev
3232
libasound2-dev
3333
lua-posix-dev
3434
libxdo-dev=1:3.20140805.1-2
35+
u-boot-tools
3536

third/build_dri2.sh

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
cd /third/
2-
git clone https://github.com/screeninvader/libdri2.git
3-
cd libdri2
1+
cd /third/libdri2
42
./autogen.sh
53
./configure
64
make

third/build_janosh.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cd /third/
22
cd Janosh
33
./build_dependencies.sh
44
export PATH="$PATH:/usr/local/bin/"
5-
make screeninvader_debug
5+
make -j8 screeninvader_debug
66
make DESTDIR=/ PREFIX=/lounge/ install
77

88

third/build_kernel.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
cd linux-sunxi
4+
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- sun7i_defconfig
5+
make -j8 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage modules
6+

third/build_sunxi-tools.sh

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
cd /third/
2-
git clone https://github.com/screeninvader/sunxi-tools.git
3-
cd sunxi-tools
4-
./configure
1+
cd /third/sunxi-tools
52
make clean
63
make
7-
make install
4+
cp fex2bin /usr/bin/
85

third/clone_kernel.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
#rm -rf linux-sunxi
3+
#git clone -b sunxi-3.4 --depth 1 git://github.com/screeninvader/linux-sunxi.git
4+

third/clone_luajitrocks.sh

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
cd /third/
21
rm -rf luajit-rocks
32
git clone https://github.com/kallaballa/luajit-rocks.git

third/install_kernel.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
cd /third/linux-sunxi
4+
make ARCH=arm INSTALL_MOD_PATH=/ modules_install
5+
cp arch/arm/boot/uImage /boot/
6+

0 commit comments

Comments
 (0)