Create Build Script from android-build

Registered by Zach Pfeffer on 2012-01-08

Create a build script that gets its information directly from android-build. This build script should be equivalent to the commands you'd run at the command-line. An example:

mkdir bin
export PATH=$PWD/bin:$PATH
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > bin/repo
chmod a+x bin/repo
mkdir snowball_ics
cd snowball_ics
repo init -u git://android.git.linaro.org/platform/manifest.git -b linaro_android_4.0.1 -m staging-snowball.xml
repo sync
make TARGET_PRODUCT=snowball TARGET_TOOLS_PREFIX=./prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi- -j8 systemtarball userdatatarball boottarball
bzr branch lp:linaro-image-tools
./linaro-image-tools/linaro-android-media-create --mmc /dev/sdc --dev snowball_sd --system /mnt/user/0_pfefferz/ics/snowball_ics/system.tar.bz2 --userdata /mnt/user/0_pfefferz/ics/snowball_ics/userdata.tar.bz2 --boot /mnt/user/0_pfefferz/ics/snowball_ics/boot.tar.bz2

This should be posted on the build page.

Blueprint information

Status:
Complete
Approver:
Zach Pfeffer
Priority:
Medium
Drafter:
Andy Doan
Direction:
Needs approval
Assignee:
Andy Doan
Definition:
New
Series goal:
Accepted for 2012q1
Implementation:
Implemented
Milestone target:
milestone icon 12.03
Started by
Andy Doan on 2012-02-28
Completed by
Zach Pfeffer on 2012-04-02

Related branches

Sprints

Whiteboard

Notes:
[2012/1/8 asac]: we try to get away from docs and usages of bzr directly; please consider to use the last released download tarball for linaro-image-tools instead of a bzr checkout. have we reached the point where last released lit is good enough?
[2012/2/15 doanac]: spoke with pfalcon at Connect. Based on that conversation I don't think we can do this exactly how pfefferz wanted. This might not be possible for this month.
[2012/2/28 pfefferz] Changed Roadmap id from TCWG2011-GCC-O3 to ANDROID2012-TOOLS
[2012/3/19 doanac] snowball can't reproduce exact build due to bug lp:959369.

Meta:
Roadmap id: ANDROID2012-Q1-TOOLS
Headline: Build from source are just a click away.
Acceptance: A script, derived from the actually build gets posted to the build page for people to download and run.

(?)

Work Items

Work items:
Using build information write a program that will generate a script to sync, build and program an android-build build: DONE
Support new BUILD_CONFIG_* parameters in job definitions: DONE
Post the script on the build page: DONE
Update build instructions on android-build to point to this script: DONE
Test scripts: DONE

This blueprint contains Public information 
Everyone can see this information.