Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Moar Powah!
  • Loading branch information
smasher816 committed Apr 29, 2012
1 parent feb86d7 commit 88a80f6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 3 additions & 2 deletions glitch.sh
Expand Up @@ -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
Expand All @@ -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"
Expand Down
6 changes: 5 additions & 1 deletion initramfs.sh
Expand Up @@ -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
Expand All @@ -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!"

0 comments on commit 88a80f6

Please sign in to comment.