Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Moar Powah!

  • Loading branch information...
commit 88a80f60c45f58aa8e55d5a257e34cd32ce538ff 1 parent feb86d7
@smasher816 authored
Showing with 8 additions and 3 deletions.
  1. +3 −2 glitch.sh
  2. +5 −1 initramfs.sh
View
5 glitch.sh
@@ -54,6 +54,7 @@ setup ()
build ()
{
+THREADS=`cat /proc/cpuinfo | grep processor | wc -l`
formodules=$repo/kernel/samsung/glitch-build/kernel/$target
local target=$target
@@ -65,8 +66,8 @@ formodules=$repo/kernel/samsung/glitch-build/kernel/$target
cp "$KERNEL_DIR/usr/"*.list "$target_dir/usr"
sed "s|usr/|$KERNEL_DIR/usr/|g" -i "$target_dir/usr/"*.list
- mka -C "$KERNEL_DIR" O="$target_dir" aries_${target}_defconfig HOSTCC="$CCACHE gcc"
- mka -C "$KERNEL_DIR" O="$target_dir" HOSTCC="$CCACHE gcc" CROSS_COMPILE="$CCACHE $CROSS_PREFIX" zImage modules
+ mka -j${THREADS} -C "$KERNEL_DIR" O="$target_dir" aries_${target}_defconfig HOSTCC="$CCACHE gcc"
+ mka -j${THREADS} -C "$KERNEL_DIR" O="$target_dir" HOSTCC="$CCACHE gcc" CROSS_COMPILE="$CCACHE $CROSS_PREFIX" zImage modules
[[ -d release ]] || {
echo "must be in kernel root dir"
View
6 initramfs.sh
@@ -12,6 +12,8 @@ export USE_CCACHE=1
CCACHE_DIR=~/CM9/kernel/samsung/.ramdisks-ccache
export CCACHE_DIR CCACHE_COMPRESS
+THREADS=`cat /proc/cpuinfo | grep processor | wc -l`
+
declare -A phone
if [[ $# -gt 0 ]]; then
@@ -28,12 +30,14 @@ fi
cd ../../../
+time {
for i in ${!phones[@]}; do
phone=${phones[$i]}
echo "========Building ramdisk.img and recovery.img for ${phone}========"
echo ""
-. build/envsetup.sh && lunch full_${phone}mtd-eng && make bootimage
+. build/envsetup.sh && lunch full_${phone}mtd-eng && mka -j${THREADS} bootimage
done
+}
echo "Done!"
Please sign in to comment.
Something went wrong with that request. Please try again.