Skip to content

Instantly share code, notes, and snippets.

@sultanqasim
Last active August 2, 2017 04:43
Show Gist options
  • Save sultanqasim/54f7befa22904f1914df to your computer and use it in GitHub Desktop.
Save sultanqasim/54f7befa22904f1914df to your computer and use it in GitHub Desktop.
Squid Kernel Build Script
#!/bin/bash
export ARCH=arm
export CROSS_COMPILE=~/tiva_tools/gcc-linaro-6.3.1-2017.05-x86_64_armv8l-linux-gnueabihf/bin/armv8l-linux-gnueabihf-
OUT_DIR=/files/squid_kernel_builds
VER="r20"
set -e
cd /files/squid_kernel
git checkout squid_nougat
make mrproper
make lux_defconfig
make -j5
./build_cwm_zip.sh
cp arch/arm/boot/squid_kernel.zip $OUT_DIR/squid_kernel_$VER-lux.zip
make harpia_defconfig
./build_cwm_zip.sh
cp arch/arm/boot/squid_kernel.zip $OUT_DIR/squid_kernel_$VER-harpia.zip
make merlin_defconfig
./build_cwm_zip.sh
cp arch/arm/boot/squid_kernel.zip $OUT_DIR/squid_kernel_$VER-merlin.zip
make osprey_defconfig
./build_cwm_zip.sh
cp arch/arm/boot/squid_kernel.zip $OUT_DIR/squid_kernel_$VER-osprey.zip
make surnia_defconfig
./build_cwm_zip.sh
cp arch/arm/boot/squid_kernel.zip $OUT_DIR/squid_kernel_$VER-surnia.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment