Skip to content

Commit

Permalink
Update build scripts further
Browse files Browse the repository at this point in the history
  • Loading branch information
CallMeFoxie committed Aug 28, 2017
1 parent 3567bcf commit 9f5f57d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 20 deletions.
8 changes: 2 additions & 6 deletions build-busybox.sh
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
#!/bin/bash

BUSYBOX_VERSION="1_27_2"

mkdir -p output/

docker run -ti \
-e "ID=`id -u`" \
-e "BUSYBOX_VERSION=$BUSYBOX_VERSION" \
-e "CROSS_COMPILE=aarch64-linux-gnu-" \
-u `id -u`:`id -g` \
-v `pwd`/:/base \
aarch64-builder \
/bin/bash -e -c '\
echo "===== Building Busybox =====" && \
cd /base/components/busybox && \
git clean -f -x -d && git fetch && git checkout $BUSYBOX_VERSION && \
cp /base/config/busybox.config .config && \
ARCH=arm64 make clean && \
ARCH=arm64 make oldconfig && \
ARCH=arm64 make -j4 && \
cp busybox /target/output/busybox'
cp busybox /base/output/busybox'


16 changes: 10 additions & 6 deletions build-kernel.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
#!/bin/bash

KERNEL_VERSION="v4.13-rc7"

mkdir -p output/

docker run -ti \
-e "ID=`id -u`" \
-e "KERNEL_VERSION=$KERNEL_VERSION" \
-e "CROSS_COMPILE=aarch64-linux-gnu-" \
-u `id -u`:`id -g` \
-v `pwd`/:/base \
aarch64-builder \
/bin/bash -e -c '\
echo "===== Building Kernel =====" && \
cd /base/components/linux/ && \
git fetch && git clean -f -x -d && git checkout $KERNEL_VERSION && \
cp /base/config/kernel.config .config && \
ARCH=arm64 make clean && \
ARCH=arm64 make oldconfig && \
ARCH=arm64 make -j5 deb-pkg KBUILD_IMAGE=arch/arm64/boot/Image && \
cp ../*.deb /base/output/'
cp ../*.deb /base/output/ && \
echo "===== Building Meta Package ====" && \
KERNELVERSION=`cd /base/components/linux && make kernelversion` && \
PKGVERSION=`cd /base/linux-image-pine64/ && dpkg-parsechangelog -S Version` && \
( [ "$KERNELVERSION" != "$PKGVERSION" ] && (echo "Updating meta package..." && cd /base/linux-image-pine64/ && ./update.sh $KERNELVERSION) || (echo "No need for update")) ; \
cd /base/linux-image-pine64 && \
dpkg-buildpackage && \
mv /base/linux-image-pine64*.deb /base/output/ && \
rm /base/linux-image-pine64*.changes'
9 changes: 1 addition & 8 deletions build-uboot.sh
Original file line number Diff line number Diff line change
@@ -1,29 +1,22 @@
#!/bin/bash

UBOOT_VERSION="v2017.09-rc2"
ATF_VERSION="allwinner"

mkdir -p output/

docker run -ti \
-e "ID=`id -u`" \
-e "UBOOT_VERSION=$UBOOT_VERSION" \
-e "ATF_VERSION=$ATF_VERSION" \
-e "CROSS_COMPILE=aarch64-linux-gnu-" \
-u `id -u`:`id -g` \
-v `pwd`/:/base \
aarch64-builder \
/bin/bash -e -c '\
echo "===== Building ATF =====" && \
cd /base/components/arm-trusted-firmware/ && \
git clean -f -x -d && git fetch && git checkout $ATF_VERSION ; \
make clean && \
make -j4 PLAT=sun50iw1p1 DEBUG=0 bl31 && \
export BL31=/components/arm-trusted-firmware/build/sun50iw1p1/release/bl31.bin && \
echo "===== Building U-Boot =====" && \
cd /base/components/u-boot/ && \
git clean -f -x -d && git fetch && git checkout $UBOOT_VERSION ; \
cp /base/config/uboot.config .config && \
make clean && \
make oldconfig && \
make -j4 && \
cat spl/sunxi-spl.bin u-boot.itb > /base/output/u-boot-sunxi-image.spl'
Expand Down

0 comments on commit 9f5f57d

Please sign in to comment.