-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3567bcf
commit 9f5f57d
Showing
3 changed files
with
13 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters