Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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