-
Notifications
You must be signed in to change notification settings - Fork 6
/
make-kernel-olympus.sh~
28 lines (27 loc) · 1.58 KB
/
make-kernel-olympus.sh~
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
cd kernel/kernel-build
rm -R *
cd ../..
export PLATFORM_DIR=~/cm9
export KERNEL_BUILD_OUT=$PLATFORM_DIR/kernel/tegra-temp
export ARCH=arm
export CROSS_COMPILE=$PLATFORM_DIR/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
export KERNEL_SRC=$PLATFORM_DIR/kernel/tegra-atrix
KBUILD_BUILD_VERSION="joker-cm9-beta 02/4"
export KBUILD_BUILD_VERSION
make distclean
make -j1 -C $KERNEL_SRC O=$KERNEL_BUILD_OUT KBUILD_DEFCONFIG=tegra_olympus_cm9_defconfig defconfig menuconfig modules_prepare
make -C $KERNEL_SRC O=$KERNEL_BUILD_OUT DEPMOD=out/host/linux-x86/bin/depmod INSTALL_MOD_PATH=$KERNEL_BUILD_OUT modules
make -j1 -C $KERNEL_SRC O=$KERNEL_BUILD_OUT DEPMOD=out/host/linux-x86/bin/depmod INSTALL_MOD_PATH=$KERNEL_BUILD_OUT modules_install
make -j1 -C $KERNEL_SRC O=$KERNEL_BUILD_OUT zImage
make -j1 -C $KERNEL_SRC O=$KERNEL_BUILD_OUT DEPMOD=out/host/linux-x86/bin/depmod INSTALL_MOD_PATH=$KERNEL_BUILD_OUT M=$PLATFORM_DIR/vendor/authentec/safenet/vpndriver modules
export ANDROID_BUILD_TOP=/$PLATFORM_DIR
export LINUXSRCDIR=$KERNEL_SRC
export LINUXBUILDDIR=$PLATFORM_DIR/kernel/tegra-temp
export CROSS_COMPILE=$PLATFORM_DIR/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
make -C $PLATFORM_DIR/vendor/bcm/wlan/osrc/open-src/src/dhd/linux
cp ~/cm9/kernel/tegra-temp/arch/arm/boot/zImage ~/kernel-temp/
cp ~/cm9/vendor/authentec/safenet/vpndriver/vpnclient.ko ~/kernel-temp/
cp ~/cm9/vendor/bcm/wlan/osrc/open-src/src/dhd/linux/dhd.ko ~/kernel-temp/
cp ~/cm9/kernel/tegra-temp/arch/arm/mach-tegra/aev.ko ~/kernel-temp/
cp ~/cm9/kernel/tegra-temp/arch/arm/mach-tegra/evfwd.ko ~/kernel-temp/