Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(383)

Issue 11260008: Pass target architecture to build/android/envsetup.sh (Closed)

Created:
8 years, 1 month ago by Jinsuk Kim (do not use this)
Modified:
8 years, 1 month ago
CC:
chromium-reviews, peter+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy+watch_chromium.org, googletv-nikita_google.com
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Pass target architecture to build/android/envsetup.sh TARGET_PRODUCT and other parameters generated by lunch command is not necessary any more since the build got switched to being based on SDK/NDK. This CL lets the target architecture be passed from envsetup.sh. Currently two arch's values are accepted: arm(default), x86. TEST=Built successfully with both target architecture values - arm and x86 using following commands: . build/android/envsetup.sh -> arm . build/android/envsetup.sh -t arm -> arm . build/android/envsetup.sh -t x86 -> x86 Other commands tested: . build/android/envsetup.sh -h -> prints help . build/android/envsetup.sh -t bogus -> prints help and stops BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=165185

Patch Set 1 #

Total comments: 6

Patch Set 2 : addresses the comments #

Patch Set 3 : addresses the comments #

Total comments: 3

Patch Set 4 : add contribution tag for non-commiter #

Patch Set 5 : Revised option parsing #

Patch Set 6 : update test cases #

Patch Set 7 : changed the comment in the code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -30 lines) Patch
M build/android/envsetup.sh View 1 chunk +4 lines, -0 lines 0 comments Download
M build/android/envsetup_functions.sh View 1 2 3 4 5 6 3 chunks +55 lines, -30 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Jinsuk Kim (do not use this)
This CL replaces https://chromiumcodereview.appspot.com/11186014/ Please take a look. Thanks.
8 years, 1 month ago (2012-10-24 04:50:42 UTC) #1
Yaron
In general seems good. +Isaac to review bash scripts. https://codereview.chromium.org/11260008/diff/1/build/android/envsetup_functions.sh File build/android/envsetup_functions.sh (left): https://codereview.chromium.org/11260008/diff/1/build/android/envsetup_functions.sh#oldcode197 build/android/envsetup_functions.sh:197: ...
8 years, 1 month ago (2012-10-24 20:50:17 UTC) #2
Isaac (away)
Bash stuff looks generally good with some nits. Yaron can give final look over. https://codereview.chromium.org/11260008/diff/1/build/android/envsetup_functions.sh ...
8 years, 1 month ago (2012-10-24 20:54:48 UTC) #3
Jinsuk Kim (do not use this)
Thanks for the review. Please take another look. https://codereview.chromium.org/11260008/diff/1/build/android/envsetup_functions.sh File build/android/envsetup_functions.sh (left): https://codereview.chromium.org/11260008/diff/1/build/android/envsetup_functions.sh#oldcode197 build/android/envsetup_functions.sh:197: export ...
8 years, 1 month ago (2012-10-25 01:03:59 UTC) #4
Isaac (away)
https://codereview.chromium.org/11260008/diff/6003/build/android/envsetup_functions.sh File build/android/envsetup_functions.sh (right): https://codereview.chromium.org/11260008/diff/6003/build/android/envsetup_functions.sh#newcode189 build/android/envsetup_functions.sh:189: eval echo "Unexpected command line argument: \${${OPTIND}}" >& 2 ...
8 years, 1 month ago (2012-10-25 01:10:46 UTC) #5
Jinsuk Kim (do not use this)
https://codereview.chromium.org/11260008/diff/6003/build/android/envsetup_functions.sh File build/android/envsetup_functions.sh (right): https://codereview.chromium.org/11260008/diff/6003/build/android/envsetup_functions.sh#newcode189 build/android/envsetup_functions.sh:189: eval echo "Unexpected command line argument: \${${OPTIND}}" >& 2 ...
8 years, 1 month ago (2012-10-25 01:25:26 UTC) #6
Isaac (away)
https://chromiumcodereview.appspot.com/11260008/diff/6003/build/android/envsetup_functions.sh File build/android/envsetup_functions.sh (right): https://chromiumcodereview.appspot.com/11260008/diff/6003/build/android/envsetup_functions.sh#newcode189 build/android/envsetup_functions.sh:189: eval echo "Unexpected command line argument: \${${OPTIND}}" >& 2 ...
8 years, 1 month ago (2012-10-25 07:44:08 UTC) #7
Jinsuk Kim (do not use this)
Initially I used a sample in a bash shell book about getopts and handled the ...
8 years, 1 month ago (2012-10-25 07:58:46 UTC) #8
Isaac (away)
I think it is pretty complicated but it is OK given it is also in ...
8 years, 1 month ago (2012-10-25 08:28:19 UTC) #9
bulach
+torne, as this has also implications on his side.
8 years, 1 month ago (2012-10-25 08:35:01 UTC) #10
Torne
On 2012/10/25 08:35:01, bulach wrote: > +torne, as this has also implications on his side. ...
8 years, 1 month ago (2012-10-25 11:01:32 UTC) #11
Yaron
lgtm
8 years, 1 month ago (2012-10-25 20:57:24 UTC) #12
Yaron
On 2012/10/25 20:57:24, Yaron wrote: > lgtm This failed on the trybot: http://build.chromium.org/p/tryserver.chromium/builders/android_dbg/builds/10473/steps/Environment%20setup/logs/stdio so I ...
8 years, 1 month ago (2012-10-29 23:37:28 UTC) #13
Jinsuk Kim (do not use this)
Revised the way options are processed like Isaac suggested to handle the trybot issue. - ...
8 years, 1 month ago (2012-10-31 01:22:31 UTC) #14
Yaron
8 years, 1 month ago (2012-10-31 17:27:33 UTC) #15
landed as 165185

Powered by Google App Engine
This is Rietveld 408576698