Merge lp:~pfalcon/linaro-android-build-tools/make-params into lp:linaro-android-build-tools

Proposed by Paul Sokolovsky
Status: Merged
Approved by: James Westby
Approved revision: 173
Merged at revision: 172
Proposed branch: lp:~pfalcon/linaro-android-build-tools/make-params
Merge into: lp:linaro-android-build-tools
Diff against target: 70 lines (+16/-12)
3 files modified
build-scripts/build-android (+3/-3)
build-scripts/build-android-toolchain (+5/-8)
build-scripts/helpers (+8/-1)
To merge this branch: bzr merge lp:~pfalcon/linaro-android-build-tools/make-params
Reviewer Review Type Date Requested Status
James Westby (community) Approve
Review via email: mp+59519@code.launchpad.net

Description of the change

Add MAKE_TARGETS and MAKE_JOBS .

To post a comment you must log in.
Revision history for this message
James Westby (james-w) wrote :

Looks good to me.

Was EABI unused?

Thanks,

James

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

On Fri, 29 Apr 2011 14:35:47 -0000
James Westby <email address hidden> wrote:

> Review: Approve
> Looks good to me.
>
> Was EABI unused?

EABI is set to default in helper/repo-sync-from-mirror (i.e. for all
build scripts), so I just removed duplicate set for it in toolchain
build script.

Thanks!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'build-scripts/build-android'
2--- build-scripts/build-android 2011-04-08 16:16:50 +0000
3+++ build-scripts/build-android 2011-04-29 14:25:49 +0000
4@@ -22,8 +22,8 @@
5 export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.22/
6 export ANDROID_JAVA_HOME=$JAVA_HOME
7
8-cpuc=`cat /proc/cpuinfo | grep processor | wc -l`
9-threads=$(($cpuc * 4))
10+MAKE_TARGETS="${MAKE_TARGETS-boottarball systemtarball userdatatarball}"
11+calc_make_jobs
12
13 if test -n "$TOOLCHAIN_URL"; then
14 wget $TOOLCHAIN_URL
15@@ -43,4 +43,4 @@
16 SHOWCOMMANDS=showcommands
17 fi
18
19-time -p make -j${threads} boottarball systemtarball userdatatarball ${SHOWCOMMANDS} HOST_CC=gcc-4.5 HOST_CXX=g++-4.5 HOST_CPP=cpp-4.5
20+time -p make -j$MAKE_JOBS $MAKE_TARGETS $SHOWCOMMANDS HOST_CC=gcc-4.5 HOST_CXX=g++-4.5 HOST_CPP=cpp-4.5
21
22=== modified file 'build-scripts/build-android-toolchain'
23--- build-scripts/build-android-toolchain 2011-04-27 22:22:12 +0000
24+++ build-scripts/build-android-toolchain 2011-04-29 14:25:49 +0000
25@@ -9,16 +9,13 @@
26 source "${BUILD_SCRIPT_ROOT}"/helpers
27
28 # BINUTILS_URL - set this in env to override default binutils version shipped by a version downloaded from ftp
29-BINUTILS_VERSION=2.20.1
30+BINUTILS_VERSION=${BINUTILS_VERSION-2.20.1}
31 # GCC_URL - set this in env to override default gcc version shipped by a version downloaded from ftp
32-GCC_VERSION=4.4.0
33-
34-EABI="${EABI-arm-eabi}"
35+GCC_VERSION=${GCC_VERSION-4.4.0}
36
37 repo-sync-from-mirror "${1}"
38
39-cpuc=`cat /proc/cpuinfo | grep processor | wc -l`
40-threads=$(($cpuc * 4))
41+calc_make_jobs
42
43 if ! test -d objdir; then
44 mkdir objdir
45@@ -68,5 +65,5 @@
46 $WITH_SYSROOT
47 #../build/configure --target=$EABI --with-binutils-version=$BINUTILS_VERSION --with-gcc-version=$GCC_VERSION
48
49-time -p make -j${threads}
50-
51+# MAKE_TARGETS is empty by default
52+time -p make -j$MAKE_JOBS $MAKE_TARGETS
53
54=== modified file 'build-scripts/helpers'
55--- build-scripts/helpers 2011-04-25 17:11:32 +0000
56+++ build-scripts/helpers 2011-04-29 14:25:49 +0000
57@@ -18,4 +18,11 @@
58 echo ----------------------------
59 mv temp-manifest.xml .repo/manifest.xml
60 time repo sync $REPO_QUIET -j8
61-}
62\ No newline at end of file
63+}
64+
65+calc_make_jobs () {
66+ if [ -z "$MAKE_JOBS" ]; then
67+ cpuc=`cat /proc/cpuinfo | grep processor | wc -l`
68+ MAKE_JOBS=$(($cpuc * 4))
69+ fi
70+}

Subscribers

People subscribed via source and target branches