Merge lp:~milo/linaro-android-build-tools/bug1012645 into lp:linaro-android-build-tools

Proposed by Milo Casagrande
Status: Merged
Merge reported by: Milo Casagrande
Merged at revision: not available
Proposed branch: lp:~milo/linaro-android-build-tools/bug1012645
Merge into: lp:linaro-android-build-tools
Diff against target: 40 lines (+11/-6)
1 file modified
build-scripts/build-android-toolchain-linaro (+11/-6)
To merge this branch: bzr merge lp:~milo/linaro-android-build-tools/bug1012645
Reviewer Review Type Date Requested Status
Paul Sokolovsky Approve
Review via email: mp+110062@code.launchpad.net

Description of the change

Hello there,

as discussed on IRC with Paul and as reported in the bug, the build-android-toolchain-linaro script does not support seeded build yet.

This merge prposal should fix this problem, adding an if test on the REPO_SEED_URL variable, as used in the build-android script.

To post a comment you must log in.
Revision history for this message
Milo Casagrande (milo) wrote :

I didn't even notice, my diff also introduced other changes: my editor converted tabs into spaces, but I suppress space-diffs from the output when checking.

Revision history for this message
Paul Sokolovsky (pfalcon) wrote :

One comment I would have is that it makes sense to separate actual functional changes from reformattings, etc. - it complicates code review otherwise. (And generally, have good reasons to reformat code, like separate ticket/BP specifically for that.)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'build-scripts/build-android-toolchain-linaro'
2--- build-scripts/build-android-toolchain-linaro 2012-04-20 13:51:27 +0000
3+++ build-scripts/build-android-toolchain-linaro 2012-06-13 12:42:37 +0000
4@@ -8,17 +8,22 @@
5
6 source "${BUILD_SCRIPT_ROOT}"/helpers
7
8-repo-sync-from-mirror "${1}"
9+if [ -n "$REPO_SEED_URL" ]; then
10+ repo-sync-from-seed "${1}"
11+else
12+ repo-sync-from-mirror "${1}"
13+fi
14+
15 calc_make_jobs
16
17 GCC_SRC_TYPE="unk"
18
19 WITH_SYSROOT=
20 if test -n "$SYSROOT_NDK_URL"; then
21- wget -q "$SYSROOT_NDK_URL"
22- NDK_FILE=`get_url_basename "$SYSROOT_NDK_URL"`
23- tar xf $NDK_FILE
24- WITH_SYSROOT=--with-sysroot=`echo $PWD/android-ndk-*/platforms/android-9/arch-arm/`
25+ wget -q "$SYSROOT_NDK_URL"
26+ NDK_FILE=`get_url_basename "$SYSROOT_NDK_URL"`
27+ tar xf $NDK_FILE
28+ WITH_SYSROOT=--with-sysroot=`echo $PWD/android-ndk-*/platforms/android-9/arch-arm/`
29 fi
30
31 TOOLCHAIN_PREFIX=/tmp/android-toolchain-eabi
32@@ -105,7 +110,7 @@
33
34 # Dump version of built gcc(s)
35 for i in $TOOLCHAIN_PREFIX/bin/*-gcc; do
36- $i -v
37+ $i -v
38 done
39
40 # add EULA suport

Subscribers

People subscribed via source and target branches