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

Issue 171903002: android envsetup: Stop honoring --target-arch parameter. (Closed)

Created:
6 years, 10 months ago by Nico
Modified:
6 years, 10 months ago
CC:
chromium-reviews, craigdh+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy-cc_chromium.org, klundberg+watch_chromium.org, android-webview-reviews_chromium.org, frankf+watch_chromium.org, Yaron
Visibility:
Public.

Description

android envsetup: Stop honoring --target-arch parameter. Most people don't use this parameter and get arm binaries. This is still the default, so this change shouldn't affect most people. Folks should instead pass -Dtarget_arch to gyp. (Or, soon, envsetup will stop clobbering GYP_DEFINES, then you can just add target_arch to your GYP_DEFINES.) Note that in gyp land, 'mips' is called 'mipsel' and 'x86' is called 'ia32'. 'arm' stays 'arm'. So for example, instead of running . build/android/envsetup.sh --target-arch=mips android_gyp you'd run . build/android/envsetup.sh android_gyp -Dtarget_arch=mipsel I updated the bots I was able to find to pass the -D flag in addition to --target-arch. After this CL here is in, I'll update the bots to stop passing --target-arch, and then I'll make --target-arch a hard error in this script for a while, to make sure nobody still uses it. BUG=330631, 34476 R=torne@chromium.org TBR=yfriedman Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252034

Patch Set 1 #

Patch Set 2 : gn #

Patch Set 3 : gn2 #

Patch Set 4 : debuggn #

Patch Set 5 : wat #

Patch Set 6 : ingyp #

Patch Set 7 : sonofa #

Patch Set 8 : ... #

Patch Set 9 : ...... #

Patch Set 10 : . #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -61 lines) Patch
M android_webview/tools/gyp_webview View 1 chunk +11 lines, -11 lines 0 comments Download
M build/android/buildbot/bb_run_bot.py View 2 chunks +4 lines, -2 lines 0 comments Download
M build/android/envsetup.sh View 1 chunk +0 lines, -3 lines 0 comments Download
M build/android/envsetup_functions.sh View 4 chunks +4 lines, -28 lines 0 comments Download
M build/common.gypi View 1 2 3 4 5 6 7 8 9 3 chunks +17 lines, -13 lines 0 comments Download
M build/gyp_chromium View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M tools/cr/cr/base/android.py View 1 chunk +4 lines, -2 lines 3 comments Download
M tools/cr/cr/base/arch.py View 1 chunk +2 lines, -2 lines 1 comment Download

Messages

Total messages: 15 (0 generated)
Nico
miguelg: No idea if the cr part is correct, please look carefully at that. (Yaron: ...
6 years, 10 months ago (2014-02-19 03:13:22 UTC) #1
Miguel Garcia
On 2014/02/19 03:13:22, Nico wrote: > miguelg: No idea if the cr part is correct, ...
6 years, 10 months ago (2014-02-19 09:11:24 UTC) #2
iancottrell
https://codereview.chromium.org/171903002/diff/350001/tools/cr/cr/base/android.py File tools/cr/cr/base/android.py (right): https://codereview.chromium.org/171903002/diff/350001/tools/cr/cr/base/android.py#newcode63 tools/cr/cr/base/android.py:63: 'GYP_DEFINES', '') + ' target_arch={CR_ENVSETUP_ARCH}' This feels like the ...
6 years, 10 months ago (2014-02-19 09:58:20 UTC) #3
benm (inactive)
+Ross as MIPS build instructions will change.
6 years, 10 months ago (2014-02-19 11:45:22 UTC) #4
Nico
kenm: Where are the mips build instructions? https://codereview.chromium.org/171903002/diff/350001/tools/cr/cr/base/android.py File tools/cr/cr/base/android.py (right): https://codereview.chromium.org/171903002/diff/350001/tools/cr/cr/base/android.py#newcode63 tools/cr/cr/base/android.py:63: 'GYP_DEFINES', '') ...
6 years, 10 months ago (2014-02-19 14:04:04 UTC) #5
benm (inactive)
On 2014/02/19 14:04:04, Nico wrote: > kenm: Where are the mips build instructions? Currently maintained ...
6 years, 10 months ago (2014-02-19 14:08:59 UTC) #6
iancottrell
https://codereview.chromium.org/171903002/diff/350001/tools/cr/cr/base/android.py File tools/cr/cr/base/android.py (right): https://codereview.chromium.org/171903002/diff/350001/tools/cr/cr/base/android.py#newcode63 tools/cr/cr/base/android.py:63: 'GYP_DEFINES', '') + ' target_arch={CR_ENVSETUP_ARCH}' On 2014/02/19 14:04:06, Nico ...
6 years, 10 months ago (2014-02-19 14:18:24 UTC) #7
rmcilroy
On 2014/02/19 14:08:59, benm wrote: > On 2014/02/19 14:04:04, Nico wrote: > > kenm: Where ...
6 years, 10 months ago (2014-02-19 14:18:52 UTC) #8
Nico
I tried cr, it seems to work with this patch. I ran: git checkout master ...
6 years, 10 months ago (2014-02-19 16:38:39 UTC) #9
Torne
general approcah and webview bits LGTM - can't comment on cr but it sounds like ...
6 years, 10 months ago (2014-02-19 16:46:25 UTC) #10
Nico
On 2014/02/19 16:46:25, Torne wrote: > general approcah and webview bits LGTM - can't comment ...
6 years, 10 months ago (2014-02-19 16:49:14 UTC) #11
Nico
The CQ bit was checked by thakis@chromium.org
6 years, 10 months ago (2014-02-19 18:10:31 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thakis@chromium.org/171903002/350001
6 years, 10 months ago (2014-02-19 18:16:16 UTC) #13
Nico
Committed patchset #10 manually as r252034 (tree was closed).
6 years, 10 months ago (2014-02-19 18:20:33 UTC) #14
rmcilroy
6 years, 10 months ago (2014-02-20 10:13:04 UTC) #15
Message was sent while issue was closed.
On 2014/02/19 18:20:33, Nico wrote:
> Committed patchset #10 manually as r252034 (tree was closed).

I updated both the internal and external documentation Android build
documentation to reflect this change.

Powered by Google App Engine
This is Rietveld 408576698