一键编译Android,kernel
本人比较懒,不喜欢每次编译都敲一遍指令,对官方提供的编译脚本进行修改,达到一键编译,以下是修改后的编译脚本:#!/bin/bash
ANDROID_ROOT=`pwd`
TOOLCHAIN_PATH=$ANDROID_ROOT/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin
export ARCH=arm
export CROSS_COMPILE=$TOOLCHAIN_PATH/arm-eabi-
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar
cd $ANDROID_ROOT/kernel
make firefly-rk3288_defconfig
make -j8 firefly-rk3288.img
cd $ANDROID_ROOT
. build/envsetup.sh
make -j8
./mkimage.sh
页:
[1]