Skip to content

Instantly share code, notes, and snippets.

@alanorth
Created March 13, 2012 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save alanorth/2028921 to your computer and use it in GitHub Desktop.
Save alanorth/2028921 to your computer and use it in GitHub Desktop.
Linux kernel build script for P6200
#!/bin/bash
function setenv {
echo -n "Setting ARM environment..."
export ARCH=arm
export CROSS_COMPILE="/home/aorth/src/android-ndk-r7b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-"
echo " done."
echo -n "Setting other environment variables..."
# the kernel version we're compiling for
# ... this corresponds to DXKL3
export LOCALVERSION="-P6200DXKL3-CL608366"
echo " done."
}
setenv
rm -rf usr/initramfs
cp -R ../GT-P6200-initramfs/DXKL3 usr/initramfs
make clean
make modules
cp $(find . -name "*.ko") usr/initramfs/lib/modules/
make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment