Commit Graph

11906 Commits

Author SHA1 Message Date
Patrice Arruda
e6fe9edbef Soong: Use ctx.Writer in flag usage for dumpVar and dumpVars in soong_ui.
am: db4c2f115e

Change-Id: Ib40cf1bf9158c6931c87dcccd90e877da57b05ea
2019-06-18 15:27:17 -07:00
Patrice Arruda
db4c2f115e Soong: Use ctx.Writer in flag usage for dumpVar and dumpVars in soong_ui.
ctx.Writer is recommended stream to use for standard io.

Fixes: b/135487952
Test: Lunch and executed ./out/soong_ui --dumpvar-mode and
--dumpvars-mode to check the usage is output to the console.

Change-Id: I38351ebdb05f49f92d6b4bfb0423092299d1c5ea
2019-06-18 20:32:01 +00:00
Patrice Arruda
9123c55392 Merge "soong_ui: Add --build-mode flag in soong_ui"
am: 2f93a2e07b

Change-Id: I8e2b926915ea45db9a5955f868be8bdf2eda2da5
2019-06-17 21:14:35 -07:00
Treehugger Robot
2f93a2e07b Merge "soong_ui: Add --build-mode flag in soong_ui" 2019-06-18 03:43:24 +00:00
Colin Cross
f347de16a4 Merge "Remove SOONG_FRAMEWORK_SRCS"
am: 04815d0bed

Change-Id: I1d99dbc67b173d9efac2f738fe07cc3879a0b503
2019-06-17 19:20:13 -07:00
Colin Cross
04815d0bed Merge "Remove SOONG_FRAMEWORK_SRCS" 2019-06-18 02:02:54 +00:00
Colin Cross
ef666dd2df Merge "Add more OWNERS"
am: 5c3bf56ac2

Change-Id: I3c716400c2b8b0833b6f0e4e250a2064e98bc7b9
2019-06-17 19:01:11 -07:00
Treehugger Robot
5c3bf56ac2 Merge "Add more OWNERS" 2019-06-18 01:38:25 +00:00
Patrice Arruda
b7b2282fd1 soong_ui: Add --build-mode flag in soong_ui
The --build-mode flag is a new flag in soong_ui that accepts a build
action (m, mm, mmm, mma, mmma), the directory where the build action
is occuring and an optional list of build arguments and invokes the
build option. This is to deprecate the build actions behavior in
envsetup.sh and start using the one defined in soong_ui.

Bug: b/130049705
Test: Ran lunch and ran all the build action commands in soong_ui.
      Ran a bunch of invalid commands such as no Android.mk file in
      a specific directory, invalid target name, etc...

Change-Id: I88e9e59f47f8c5cdc872fb83a0f3f0a0919885b6
2019-06-17 17:21:32 -07:00
Patrice Arruda
33989c88c3 Merge "Soong: Fix the package name in metrics.proto file"
am: eec8d3aee3

Change-Id: Idb3920c6c4f0d6d83acc4afa5743ba4828e7cdf2
2019-06-17 16:58:59 -07:00
Elliott Hughes
079e7c211e Merge "Revert "Revert "Switch to toybox timeout."""
am: 2d10e3f54e

Change-Id: I0548fe4c2270e9b4ff67979730acdf35c62fb22b
2019-06-17 16:57:27 -07:00
Treehugger Robot
eec8d3aee3 Merge "Soong: Fix the package name in metrics.proto file" 2019-06-17 23:42:33 +00:00
Elliott Hughes
2d10e3f54e Merge "Revert "Revert "Switch to toybox timeout.""" 2019-06-17 23:35:16 +00:00
Colin Cross
06adae4c8c Add more OWNERS
Add paulduffin for EMEA.

Test: none
Change-Id: If4e4ce2cd668cf602479535a41175484dca54e33
2019-06-17 22:28:35 +00:00
Paul Duffin
00c2bbb0e7 Merge changes I42cb181f,I6413c9b1
am: 33ee25466f

Change-Id: Iee40d41673adcac7f9b2fe6fb3716fbed7c7bdfa
2019-06-17 15:01:46 -07:00
Colin Cross
5d7409ba0f Remove SOONG_FRAMEWORK_SRCS
SOONG_FRAMEWORK_SRCS is not used in Make any more.

Test: m checkbuild
Change-Id: I61f7cdeb3d2e2fd89c8b3b302bee923624dba418
2019-06-17 14:27:15 -07:00
Paul Duffin
33ee25466f Merge changes I42cb181f,I6413c9b1
* changes:
  Add sdk_version:"core_platform" to replace no_framework_libs:true
  Remove the no_standard_libs property
2019-06-17 21:24:33 +00:00
Nick Desaulniers
f1b45a21a4 Merge "Switch to clang-r353983d"
am: 2deb017c04

Change-Id: I9e205bf8f5d9eeab32ae526167f143803da5e210
2019-06-17 10:30:35 -07:00
Elliott Hughes
0e868d0391 Revert "Revert "Switch to toybox timeout.""
This reverts commit 50e91c1a7a.

Reason for revert: SIGRTMIN+2 support added.

Change-Id: I3cb251a102e427335315c4931e23a69b95253ee7
2019-06-17 16:45:15 +00:00
Nick Desaulniers
2deb017c04 Merge "Switch to clang-r353983d" 2019-06-17 16:25:51 +00:00
Paul Duffin
f5675d6ac3 Remove unused jars/sdk_version properties from java_system_modules
am: 301ba52886

Change-Id: Iff0eabd21a51391ed9e05dd130d410b2f689395f
2019-06-17 06:39:10 -07:00
Paul Duffin
50c217c744 Add sdk_version:"core_platform" to replace no_framework_libs:true
Where possible this duplicates any tests that use no_framework_libs:true
with ones that use sdk_version:"core_platform". If not possible (e.g. in the
default targets included in java/testing.go) it switches some to use
sdk_version:"core_platform" to ensure that there is no regression in the
behavior of no_framework_libs:true.

Follow up changes will switch all usages of no_framework_libs:true over
to use sdk_version:"core_platform" at which point no_framework_libs will be
removed.

Bug: 134566750
Test: m droid

Change-Id: I42cb181f628b723c8f32a158ae4752b4c83365ae
2019-06-17 13:17:35 +01:00
Paul Duffin
301ba52886 Remove unused jars/sdk_version properties from java_system_modules
Bug: 134566750
Test: m droid
Change-Id: I2c5cd17f3f64bbde437eff65267d8c771d61e343
2019-06-17 11:21:39 +01:00
Paul Duffin
a3d0986cfc Remove the no_standard_libs property
Corrects an error message that refers to no_standard_libs.

Removes any tests that use no_standard_libs:true where possible as
there are duplicate tests for sdk_version:"none". Otherwise, switches
them over to use sdk_version:"none".

The androidmk mapping from LOCAL_NO_STANDARD_LIBRARIES to
no_standard_libs has also been removed. There was little point in
updating the tool to map it through to sdk_version:"none" as there are
only a couple of places where it is used, in art's test running mk
targets and in some unbundled packages to work around some limitation
in .mk based build.

Bug: 134566750
Test: m droid
Change-Id: I6413c9b1fe3e63b93753a6a017d2981e32b7e013
2019-06-17 11:21:39 +01:00
Inseob Kim
653ac78cbc Merge "sysprop_library: Rename system scope to public"
am: b1856799b1

Change-Id: Ia479d14f1a225a777a76161053495f7e6d4c13d6
2019-06-15 23:15:47 -07:00
Treehugger Robot
b1856799b1 Merge "sysprop_library: Rename system scope to public" 2019-06-16 06:08:14 +00:00
Evgenii Stepanov
b85d386af5 Disable new LLVM pass manager for HWASan.
am: 1c69e83030

Change-Id: If11e68a417c461248b385143f1c92f7921e04295
2019-06-15 14:06:03 -07:00
Evgenii Stepanov
1c69e83030 Disable new LLVM pass manager for HWASan.
Current Android toolchain does not support hwasan with new pm.

Bug: 135298400
Test: manual, inspect the binaries for calls to __hwasan_init
Change-Id: I126c59e6ecabc3a1699e1bf34c546568b6e8a21f
2019-06-14 18:39:59 -07:00
Nick Desaulniers
36a39c9852 Switch to clang-r353983d
Test: build+boot sargo, TreeHugger
Bug: 131714073
Change-Id: Ieec2500027a78b80147f86b2bdaeaedaa1c18360
2019-06-14 16:31:34 -07:00
Dan Shi
c22778c363 Merge "Support require_root in auto-gen test configs"
am: 9314e1124b

Change-Id: I29e34b017cf3aeb9e08b33abe25e32cf34c45e38
2019-06-14 15:37:15 -07:00
Colin Cross
79f0c2dc1a Merge "Support sharding robolectric tests"
am: ad13e1185f

Change-Id: Id02b6a3ff6ef3054712d6b882fc0cac1f2021dda
2019-06-14 15:28:30 -07:00
Patrice Arruda
0cc5b21516 Soong: Fix the package name in metrics.proto file
The metrics.proto needs to be imported to Google3 in order to unmarshal
the build metrics data from bigstore. Cleaned up the enum names to use
the Camel naming convention and renamed the build_metrics to
soong_metrics to be more specific to soong and to allow quering
soong_metrics files from bigstore.

Bug: b/135280521
Test: lunch andf m -j. Checked if soong_metrics was generated correctly
      by using printproto command.

Change-Id: I998c8d05db592e94a653d6ca32250b80df3c9b21
2019-06-14 15:27:46 -07:00
Dan Shi
9314e1124b Merge "Support require_root in auto-gen test configs" 2019-06-14 22:21:39 +00:00
Colin Cross
ad13e1185f Merge "Support sharding robolectric tests" 2019-06-14 21:59:12 +00:00
Colin Cross
4732fa4548 Merge "Give Blueprint modules access to all namespaces"
am: fae8569647

Change-Id: Ide4f1493416733d23592ee13534a5fcfc20198da
2019-06-14 14:45:47 -07:00
Pirama Arumuga Nainar
bd6e734a8a Merge "Remove redundant -fexperimental-new-pass-manager"
am: 50b382a9e3

Change-Id: I184b3fe9ba8a9e2a0277e6a32bf2ffa069a3bf30
2019-06-14 14:26:53 -07:00
Treehugger Robot
fae8569647 Merge "Give Blueprint modules access to all namespaces" 2019-06-14 21:25:28 +00:00
Pirama Arumuga Nainar
50b382a9e3 Merge "Remove redundant -fexperimental-new-pass-manager" 2019-06-14 21:02:45 +00:00
Colin Cross
9a642dcde2 Support sharding robolectric tests
Explicitly pass the list of tests as LOCAL_ROBOTEST_FILES, and
support sharding the list of tests into multiple test runners.

Also filter out BaseRobolectricTest.java, which covers the only
use of LOCAL_ROBOTEST_FILES in Android.mk files.

Bug: 133878985
Test: m RunSettingsLibRoboTests runs the same number of tests before and after
Test: m RunSettingsLibRoboTests runs the same number of tests when sharded
Change-Id: Id85ffe03c98e722303eaa6def17812ed2244c6a6
Merged-In: Id85ffe03c98e722303eaa6def17812ed2244c6a6
2019-06-14 13:10:53 -07:00
Colin Cross
cd84b4e36b Give Blueprint modules access to all namespaces
Don't enforce namespaces on Blueprint modules like
bootstrap_go_package, their dependencies are handled before
namespaces are initialized in namespaceMutator.

Fixes: 135246048
Test: TestDependingOnBlueprintModuleInRootNamespace
Change-Id: I7cf1c26bb8512eed59d6b4eb42a49f7080ffa281
2019-06-14 11:26:09 -07:00
Dan Shi
37ee3b8f49 Support require_root in auto-gen test configs
require_root is added to allow auto-generated test config to include
RootTargetPreparer so the test runs with root permission.

Bug: 134509111
Test: add "require_root: true" to init_benchmarks and libpower_test
  build the modules, confirm the extra target preparer is added in the
  test configs.

Change-Id: Ia07503e338935d6aa92560e7cf7b18d2a4c51243
2019-06-14 11:10:13 -07:00
Pirama Arumuga Nainar
3a25405acc Remove redundant -fexperimental-new-pass-manager
This is now turned on by default (cc/config/clang.go).

Test: N/A
Change-Id: I61bcf2049448b4200ca303ebcad555cc24a43c18
2019-06-14 09:54:23 -07:00
Paul Duffin
e34bbae1ca Merge "Add sdk_version:"none" to replace no_standard_libs:true"
am: b11c72b0b8

Change-Id: I4cd6810fa349fa12996f7a9d57644c7ecde0015f
2019-06-13 23:43:15 -07:00
Paul Duffin
a6b64de8fd Merge "Make sdkDep/decodeSdkDep the source of truth about the sdk"
am: 60b393ce85

Change-Id: I6d98bc6ddd00b8e51a9b2646c1dcb673603775c4
2019-06-13 23:42:00 -07:00
Paul Duffin
b11c72b0b8 Merge "Add sdk_version:"none" to replace no_standard_libs:true" 2019-06-14 06:29:48 +00:00
Paul Duffin
60b393ce85 Merge "Make sdkDep/decodeSdkDep the source of truth about the sdk" 2019-06-14 06:26:02 +00:00
Patrice Arruda
04ef959d8b Merge "soong_ui: Add build actions commands in soong_ui."
am: 49cd4954a0

Change-Id: Id63569c42bcddf62fdf9d0b5d9fac70aa2263a46
2019-06-13 16:38:46 -07:00
Treehugger Robot
49cd4954a0 Merge "soong_ui: Add build actions commands in soong_ui." 2019-06-13 23:14:56 +00:00
Patrice Arruda
1384822a63 soong_ui: Add build actions commands in soong_ui.
Add the following build actions {BUILD_MODULES_IN_A_DIRECTORY,
BUILD_MODULES_IN_DIRECTORIES} in soong_ui config so the bash code version of
build commands (m, mm, mma, mmm, mmma) in build/make/envsetup.sh can be deprecated.
This is to allow up to date bug fixes on the build commands.

Bug: b/130049705
Test: Unit test cases
Change-Id: I772db1d4e9c1da5273374d1994eb5e8f17cd52f2
2019-06-13 13:15:12 -07:00
Colin Cross
7f1eab4dd7 Merge "Revert "Use SIGWINCH to update terminal size""
am: e77a57336f

Change-Id: Icedf859f0e66ba2483d6c915cf9640bb88db9f4f
2019-06-13 11:33:24 -07:00