Naruto
9/27/2013 - 5:49 AM

Android のファームビルド手順 ref: http://qiita.com/TNaruto/items/9d5a3bbec1f17e67d1b6

Android のファームビルド手順 ref: http://qiita.com/TNaruto/items/9d5a3bbec1f17e67d1b6

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java6-installer

$  sudo apt-get install git gnupg flex bison gperf build-essential \
    zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
    libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
    libgl1-mesa-dev g++-multilib mingw32 tofrodos \
    python-markdown libxml2-utils xsltproc zlib1g-dev:i386
 $ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
$ mkdir ~/bin
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
$ export PATH=~/bin/:$PATH
export PATH=~/bin/:$PATH
$ git config --global user.email "Mail address"
$ git config --global user.name "name"
$ cd ${ANDROID_ROOT}
$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.3_r1
$ repo sync
$ wget https://dl.google.com/dl/android/aosp/imgtec-panda-20130603-539d1ac3.tgz
$ tar zxvf imgtec-panda-20130603-539d1ac3.tgz
$ ./extract-imgtec-panda.sh
$ git clone https://android.googlesource.com/kernel/omap.git kernel
$ cd kernel
$ git checkout -b android-omap-panda-3.0 origin/android-omap-panda-3.0
$ sudo apt-get install libncurses-dev
$ export PATH=${ANDROID_ROOT}/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin:$PATH
$ export ARCH=arm
$ export SUBARCH=arm
$ export CROSS_COMPILE=arm-eabi-
$ cd ${KERNEL_PATH}
$ make XXXX_defconfig
$ make menuconfig
$ make -j 4
$ cp -a arch/arm/boot/zImage ${ANDROID_ROOT}/device/ti/panda/kernel
$ cd ${ANDROID_ROOT}
$ . build/envsetup.sh
$ lunch full_panda-userdebug
$ make -j4