24
22
self.x86_64.chdir("dev")
23
self.x86_64.in_directory("android")
24
base_directory = self.x86_64.cwd()
25
26
self.x86_64.install_deps(["repo", "gcc", "git"])
26
self.x86_64.in_directory("android")
27
self.source = self.x86_64.checkout(
29
"git://android.git.linaro.org/platform/manifest.git",
30
"linaro_android_4.0.4",
27
self.source = self.x86_64.checkout("repo",
28
config["check out"]["repo"],
29
config["check out"]["branch"],
30
config["check out"]["file name"])
33
32
# If any of the above commands fails (return code != 0), we throw an
34
33
# exception, which will terminate execution, though you could catch it
35
34
# if you wanted to try something else.
37
36
# Use the software bundle GCC, identified by tags
38
self.x86_64.use("android-toolchain",
39
["eabi-4.7", "daily", "linux", "x86"])
37
self.x86_64.use("android-toolchain", config["toolchain tags"])
39
toolchain_dir = os.path.join(base_directory,
40
"android-toolchain-eabi/bin/"
41
"arm-linux-androideabi-")
42
43
# This fails because of https://bugs.launchpad.net/linaro-android/+bug/1013114
43
44
# and, well, I can't be bothered to patch it up as we develop the API. Close enough.
45
46
# Until self.x86_64.build is refined and correctly implemented, just specify the full command
46
47
build_command="make"
48
"TARGET_PRODUCT=origen TARGET_SIMULATOR=false "
49
"TARGET_TOOLS_PREFIX=/home/dooferlad/dev/android/android-toolchain-eabi/bin/arm-linux-androideabi- "
50
"boottarball systemtarball userdatatarball showcommands",
51
jobs=cpus, target=target,
49
"TARGET_PRODUCT=%s TARGET_SIMULATOR=false " % (config["target"]) +
50
"TARGET_TOOLS_PREFIX=" + toolchain_dir +
51
" boottarball systemtarball userdatatarball showcommands",
52
jobs=cpus, target=config["target"],
52
53
cached=True, # If this code has been checked out and built before, use cached build
53
54
source_uid=self.source.uid) # UID to work out if this has already been built
56
57
"""Use standard Android build, boot it on snowball"""
59
super(AndroidBuildBootSnowball, self).run("snowball")
62
"repo": "git://android.git.linaro.org/platform/manifest.git",
63
"branch": "linaro_android_4.0.4",
64
"file name": "tracking-snowball.xml"
67
"toolchain tags": ["eabi-4.7", "daily", "linux", "x86"],
71
super(AndroidBuildBootSnowball, self).run(config)
61
73
self.snowball = Snowball()
62
74
self.snowball.set_disk_image(self.android_build)