mirror of
https://bitbucket.org/gwenhael/cubietruck-slackware.git
synced 2025-01-14 08:01:36 +01:00
merge pulling sources and compiling
This commit is contained in:
parent
a1b61879b3
commit
47d7acf585
1 changed files with 20 additions and 30 deletions
32
build.sh
32
build.sh
|
@ -129,6 +129,11 @@ if [ "$COMPILE" = "true" ]; then
|
||||||
# Applying Patch for 2gb memory
|
# Applying Patch for 2gb memory
|
||||||
patch -f $DEST/u-boot-sunxi/include/configs/sunxi-common.h < $CWD/patch/memory.patch || true
|
patch -f $DEST/u-boot-sunxi/include/configs/sunxi-common.h < $CWD/patch/memory.patch || true
|
||||||
fi
|
fi
|
||||||
|
echo "------ Compiling boot loader"
|
||||||
|
( cd $DEST/u-boot-sunxi
|
||||||
|
make clean
|
||||||
|
make -j2 'cubietruck' CROSS_COMPILE=$CROSS_COMPILE
|
||||||
|
make HOSTCC=gcc CROSS_COMPILE='' tools )
|
||||||
|
|
||||||
# Allwinner tools
|
# Allwinner tools
|
||||||
if [ -d "$DEST/sunxi-tools" ]; then
|
if [ -d "$DEST/sunxi-tools" ]; then
|
||||||
|
@ -137,6 +142,10 @@ if [ "$COMPILE" = "true" ]; then
|
||||||
else
|
else
|
||||||
git clone https://github.com/linux-sunxi/sunxi-tools.git $DEST/sunxi-tools
|
git clone https://github.com/linux-sunxi/sunxi-tools.git $DEST/sunxi-tools
|
||||||
fi
|
fi
|
||||||
|
echo "------ Compiling sunxi tools"
|
||||||
|
( cd $DEST/sunxi-tools
|
||||||
|
make clean
|
||||||
|
make fex2bin bin2fex )
|
||||||
|
|
||||||
# Hardware configurations
|
# Hardware configurations
|
||||||
if [ -d "$DEST/cubie_configs" ]; then
|
if [ -d "$DEST/cubie_configs" ]; then
|
||||||
|
@ -160,29 +169,10 @@ if [ "$COMPILE" = "true" ]; then
|
||||||
else
|
else
|
||||||
git clone https://github.com/patrickhwood/linux-sunxi $DEST/linux-sunxi
|
git clone https://github.com/patrickhwood/linux-sunxi $DEST/linux-sunxi
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
echo "--------------------------------------------------------------------------------"
|
|
||||||
echo "Compiling everything"
|
|
||||||
echo "--------------------------------------------------------------------------------"
|
|
||||||
|
|
||||||
|
|
||||||
if [ "$COMPILE" = "true" ]; then
|
|
||||||
echo "------ Compiling boot loader"
|
|
||||||
cd $DEST/u-boot-sunxi
|
|
||||||
make clean
|
|
||||||
make -j2 'cubietruck' CROSS_COMPILE=$CROSS_COMPILE
|
|
||||||
make HOSTCC=gcc CROSS_COMPILE='' tools
|
|
||||||
|
|
||||||
echo "------ Compiling sunxi tools"
|
|
||||||
cd $DEST/sunxi-tools
|
|
||||||
make clean
|
|
||||||
make fex2bin bin2fex
|
|
||||||
|
|
||||||
PATH=$PATH:$DEST/u-boot-sunxi/tools/
|
PATH=$PATH:$DEST/u-boot-sunxi/tools/
|
||||||
|
|
||||||
echo "------ Compiling kernel"
|
echo "------ Compiling kernel"
|
||||||
cd $DEST/linux-sunxi
|
( cd $DEST/linux-sunxi
|
||||||
make clean
|
make clean
|
||||||
|
|
||||||
# Adding wlan firmware to kernel source
|
# Adding wlan firmware to kernel source
|
||||||
|
@ -195,7 +185,7 @@ if [ "$COMPILE" = "true" ]; then
|
||||||
cp $CWD/config/kernel.config $DEST/linux-sunxi/.config
|
cp $CWD/config/kernel.config $DEST/linux-sunxi/.config
|
||||||
make -j2 ARCH=arm CROSS_COMPILE=$CROSS_COMPILE uImage modules
|
make -j2 ARCH=arm CROSS_COMPILE=$CROSS_COMPILE uImage modules
|
||||||
make -j2 ARCH=arm CROSS_COMPILE=$CROSS_COMPILE INSTALL_MOD_PATH=output modules_install
|
make -j2 ARCH=arm CROSS_COMPILE=$CROSS_COMPILE INSTALL_MOD_PATH=output modules_install
|
||||||
make -j2 ARCH=arm CROSS_COMPILE=$CROSS_COMPILE INSTALL_HDR_PATH=output headers_install
|
make -j2 ARCH=arm CROSS_COMPILE=$CROSS_COMPILE INSTALL_HDR_PATH=output headers_install )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue