Build MLO from Source in Android Builds

Registered by Zach Pfeffer

We are currently using binary MLO's in Panda and Beagle. We need to switch to building these from the source at:

<remote name="linaro-other" fetch="git://git.linaro.org/"/>
<project path="u-boot" name="boot/u-boot-linaro-stable" revision="master" remote="linaro-other"/>

u-image.img is also built

Blueprint information

Status:
Complete
Approver:
Zach Pfeffer
Priority:
Medium
Drafter:
Zach Pfeffer
Direction:
Approved
Assignee:
Tony Mansson
Definition:
Approved
Series goal:
Accepted for 2011q2
Implementation:
Implemented
Milestone target:
milestone icon 11.09
Started by
Zach Pfeffer
Completed by
Zach Pfeffer

Related branches

Sprints

Whiteboard

[pfefferz, 2011/9/12] Fixed on Panda builds: https://plus.google.com/104422661029399872488/posts/Yvg3iv34E9s

[pfefferz, 2011/9/6]: Fixed on
https://android-build.linaro.org/builds/~linaro-android/panda/#build=273

[asac, Jul 11, 2011]: even though I take the blame of being lax by myself on blueprint summaries, I think we should try to keep in mind that they are potentially only two/three clicks from a release announcement away and we want to show a high quality everywhere. Please phrase the summary with a bit more love; make clear what the problem addressed is, what component is being worked on; what deliverable comes out of this blueprint and what is the acceptance criteria to understand the planned scope.
[mansson, Aug 16, 2011]: The background is that the TI x-loader binary (renamed "MLO") is GPLv2 but only supplied as a binary. MLO needs to be configured and built using its own Makefile and then installed in the vfat (boot) partition. Including the case when the build is done with -jN. The BP explains how this will happen.

Headline:
MLO is now built from source code in Android builds

Acceptance:
The MLO that Panda and Panda-LEB uses for Android uses gets built from source from the upstream git (git://git.linaro.org/boot/u-boot-linaro-stable)

Notes: Need to be reviewed again by Patrik

Notes:
I guess we need Andys MLO also in the build if I understood him correctly.

Well, a "modern" x-loader is needed, the

 git://gitorious.org/x-loader/x-loader.git master

will be fine.

Used:
git clone git://gitorious.org/x-loader/x-loader.git

use master branch

CROSS_COMPILE=/workspace/x-loader/android-toolchain-eabi/bin/arm-eabi- make omap4430panda_config
CROSS_COMPILE=/workspace/x-loader/android-toolchain-eabi/bin/arm-eabi-- make

(?)

Work Items

Work items:
Clone x-loader and build with the Linaro toolchain: DONE
Update the manifests to include the new x-loader: DONE
Integrate new x-loader in Android builds: DONE
Install the built MLO and remove the binary: DONE
Test all builds: DONE
Submit to Gerrit: DONE
[pfefferz] Change Id69e982f: pandaboard: use MLO and u-boot.img from built from u-boot: DONE
[pfefferz] Fixed on Panda build: DONE
[pfefferz] Fix on Panda-LEB: DONE

This blueprint contains Public information 
Everyone can see this information.