Android Icon

Automated Build Environment Setup

This entry was posted on Sep 08 2012
Automated Build Environment Setup
Version: 1.0

Download:
- When your in unix, follow the installation instructions
- When you’re in windows, download here

 

Description:
I made a unix script that sets up an kernel developing environment fully automated. The script includes the good version of java (since the packages are not available trough apt-get) and the i9001 Kernel source (with adjusted makefile, ariesve_defconfig and the wifi drivers). This script may save you a lot of time, after the script is finished you will have a ready-to-mod kernel source. This script should be only used on a x64 machine (x86 will result in a corrupt environment)

(Please remind that I’m a unix noob, so If you find an error or missing package or w.e. please let me know!)
Made it on Mint Linux, but it should work for Ubuntu also.

 

What actions does it perform?
- Installing Java (jdk-6u32-linux-x64)
- Getting required packages (git-core 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 openjdk-6-jdk tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386 git dos2unix)
- Installing Repo
- Cloning Prebuilt Repository (compiler)
- Extracting I9001 Kernel Source
- Copying ARIESVE_DEFCONFIG to source root (you can also pull config.gz from your phone “adb pull /proc/config.gz” then unzip it and copy the config file to .config (cp config .config)
- Run xconfig from kernel source after setup (optionally)

 

Installation Instructions:
1. Open Terminal Emulator, enter the following commands:
– “mkdir -p ~/envsetup
– “cd ~/envsetup
– “wget http://broodplank.net/files/auto_build_env_setup.tar.gz
– “tar xvfz auto_build_env_setup.tar.gz
– “chmod +x setup.sh
2. Now enter this command to start the script:
– “./setup.sh
3. After the script is done you will have a working android kernel development environment

 

What to do with the kernel afterwards?
- To configure: make xconfig
- To clean the source: make clean
- To compile (quick): make -j8
- To compile (extended):
– make clean
– make prepare
– make modules_prepare
– make modules -j8
– sudo make modules_install
– make -j8

the zImage will be placed in /arch/arm/boot/

Adding things such as governors/io schedulers can be learned by browsing commits of other kernel developers (on github)

Leave a Reply

Your email address will not be published. Required fields are marked *

* Copy This Password *

* Type Or Paste Password Here *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Are you human? Click the Apple...