Commit Graph

34091 Commits

Author SHA1 Message Date
Colin Cross 901057d95a Merge "Use ifndef or ifeq () instead of ifeq """ am: 1948f64dd5
am: f78a2f821c

Change-Id: Ibd03814549dd6499890eaed07e0bb08e5ce63c6e
2017-02-22 04:31:59 +00:00
Colin Cross f78a2f821c Merge "Use ifndef or ifeq () instead of ifeq """
am: 1948f64dd5

Change-Id: I0a582b85ae540f9b164c93cf5363049258983a64
2017-02-22 04:30:00 +00:00
Treehugger Robot 1948f64dd5 Merge "Use ifndef or ifeq () instead of ifeq """ 2017-02-22 04:25:49 +00:00
Dan Willemsen d04de52560 Merge "Wait for children to exit in makeparallel" am: 9b1a185029
am: c08e57ce4d

Change-Id: I2bc1fe1b9834ab56575db0c2e6fa96b968550382
2017-02-22 03:33:27 +00:00
Dan Willemsen c08e57ce4d Merge "Wait for children to exit in makeparallel"
am: 9b1a185029

Change-Id: I9b24ebbf368d2bd480f311c0d115b22cc0355939
2017-02-22 03:31:26 +00:00
Treehugger Robot 9b1a185029 Merge "Wait for children to exit in makeparallel" 2017-02-22 03:27:21 +00:00
Alain Vongsouvanh 1c50b8154d DO NOT MERGE releasetools: allow for multiple OEM property values.
This CL changes the --oem_settings flag to allow a comma seperated list of
property files. All property values will be used when asserting properties such
as ro.product.name.

For example, if two property files are provided with ro.product.name values of
"sprout" and "sprout_a", the resulting otapackage will check that the device's
ro.product.name property matches at least one of them.

Bug: 34191373
Test: manual

(cherry-picked and adapted from AOSP commit 7f804ba71f)

Change-Id: I954673511be8f0929982235cc9cbfbd85a9ee1f4
2017-02-22 02:00:13 +00:00
Dan Willemsen f0e2986cbf Wait for children to exit in makeparallel
This is a partial revert to the last makeparallel change, since now we
were being killed by the signal before waiting for our child to exit. So
instead of not installing the handlers, only pass the signal along if
it's a SIGTERM.

Bug: 35214134
Test: Ensure that we're still only getting one signal for SIGINT
Test: Ctrl-C, ensure that all the soong_ui lines are before the make
      error line.
Change-Id: I26fff9483a3abfd79ceb5a9ea47e3f7572d9e923
2017-02-21 17:53:35 -08:00
Colin Cross 63fe36abbe Use ifndef or ifeq () instead of ifeq ""
ifeq with quotes is technically correct make syntax, but rarely used.
Replace it with the simpler ifndef when comparing against empty, or
with parenthesis for consistency.

Test: builds
Change-Id: Idcbe0586c4626c67d560694596b0bd9f5f93484a
2017-02-21 17:29:10 -08:00
Simran Basi 9c295b4415 Add device-tests and general-tests make targets.
Adds the device-tests and general-tests makefiles and
added include lines to main.mk so that individual test
modules can be built properly.

These targets do not build any special tradefed wrapper
that normal *TS's usually employ. They are not necessary
here.

Bug: 35350788
Test: Updated several CTS test modules to belong to these
      suites instead and ran:
      `rm -rf out; make clean; make device-tests general-tests -j`
      then verified the output.

Change-Id: I40e3958375f7b39cb56508f2812ce9760d403f6f
2017-02-21 17:04:47 -08:00
Dan Willemsen 3c7e341f57 Merge "Stop double-printing config" am: a7d4e0cd73
am: 283ed982cd

Change-Id: Ib8cfa7e40cc3fc3c5fdbaef7901a0d0c3da38bc5
2017-02-22 01:00:47 +00:00
Dan Willemsen 283ed982cd Merge "Stop double-printing config"
am: a7d4e0cd73

Change-Id: Icefca1547a8361d3678b8be7d30776325de47b73
2017-02-22 00:58:46 +00:00
Treehugger Robot a7d4e0cd73 Merge "Stop double-printing config" 2017-02-22 00:54:03 +00:00
Colin Cross 4d353da971 Merge "Revert "Replace hardware features conf file to be emulator specific"" am: 557ce055e7
am: 9a02b183fd

Change-Id: I6c03f945381c3fc10ac385357b2ae3ad26b657e4
2017-02-21 23:35:52 +00:00
Colin Cross 9a02b183fd Merge "Revert "Replace hardware features conf file to be emulator specific""
am: 557ce055e7

Change-Id: I559d7aa1a6f6bf65da33327c9a900b08c78869e0
2017-02-21 23:31:31 +00:00
Dan Willemsen 06fbe5bec5 Merge "Prevent duplicate signals from makeparallel" am: 70aac88a61
am: 52ac801739

Change-Id: I8b779c85df3864115f5894c0cdd597c790417386
2017-02-21 23:29:40 +00:00
Dan Willemsen 52ac801739 Merge "Prevent duplicate signals from makeparallel"
am: 70aac88a61

Change-Id: Iade687bc2bfe56a357b0c8215b5f03cfdec2df9d
2017-02-21 23:27:14 +00:00
Colin Cross 557ce055e7 Merge "Revert "Replace hardware features conf file to be emulator specific"" 2017-02-21 23:25:07 +00:00
Treehugger Robot 70aac88a61 Merge "Prevent duplicate signals from makeparallel" 2017-02-21 23:22:32 +00:00
Dan Willemsen 0d25529b4c Stop double-printing config
Don't print the config in Kati when we've already printed it in soong_ui
or the make wrapper.

Test: m -j
Test: USE_SOONG_UI=true m -j
Change-Id: Ic6dce0ab29d584d85c6642c597f6e9dcd6ba9dca
2017-02-21 15:12:15 -08:00
Dan Willemsen c6a900bee1 Prevent duplicate signals from makeparallel
As part of the soong_ui effort, we noticed that we'd sometimes see
multiple SIGINTs from a single ctrl-c from a user. ctrl-c sends a SIGINT
to the entire process group, so make, makeparallel, soong_ui, and all of
its children would get a signal. Since makeparallel was passing it along
to it's child, soong_ui would get two signals.

So instead, follow what Make does and only pass along SIGTERM. Assume
that all other signals went to the entire process group.

Bug: 35214134
Test: Send SIGINT to process group, check in makeparallel's child for
more than one signal received.
Change-Id: I5b2a77ad0fcebbaa5087439948e71bf3b541061a
2017-02-21 13:50:12 -08:00
Tao Bao 4f0a147b69 Merge "Revert "releasetools: Allow using futility-host to sign old TF.zip."" into nyc-dev am: b0df1ef7ac am: 983c979c25 am: bd6d03ab18 am: e64f52ebcd
am: 55f185e0a4

Change-Id: Ic47af33906d2ead19cc3b6346f1aa55e5de5952d
2017-02-21 20:39:56 +00:00
Tao Bao 55f185e0a4 Merge "Revert "releasetools: Allow using futility-host to sign old TF.zip."" into nyc-dev am: b0df1ef7ac am: 983c979c25 am: bd6d03ab18
am: e64f52ebcd

Change-Id: I5ccd6ba60e5e9eb3e0875e99630db583a178a569
2017-02-21 20:37:24 +00:00
Tao Bao e64f52ebcd Merge "Revert "releasetools: Allow using futility-host to sign old TF.zip."" into nyc-dev am: b0df1ef7ac am: 983c979c25
am: bd6d03ab18

Change-Id: I488b164ae8c3a93858a293e2a538ff6b8742736c
2017-02-21 20:35:25 +00:00
Tao Bao bd6d03ab18 Merge "Revert "releasetools: Allow using futility-host to sign old TF.zip."" into nyc-dev am: b0df1ef7ac
am: 983c979c25

Change-Id: I938ee86611ea8c452c07324e2f3c6a9b0180cb7e
2017-02-21 20:33:25 +00:00
Tao Bao 983c979c25 Merge "Revert "releasetools: Allow using futility-host to sign old TF.zip."" into nyc-dev
am: b0df1ef7ac

Change-Id: I3924b44e75aa0f8f18129212dd80fd843f6a6a47
2017-02-21 20:31:25 +00:00
Tao Bao b0df1ef7ac Merge "Revert "releasetools: Allow using futility-host to sign old TF.zip."" into nyc-dev 2017-02-21 20:29:38 +00:00
Tao Bao d6145b6a16 Revert "releasetools: Allow using futility-host to sign old TF.zip."
Broke ryu targets.

This reverts commit 31a0de00a4.

Change-Id: I3ffcdc604a1cb92c86c574b5cd358d0148430d55
2017-02-21 20:27:27 +00:00
Tao Bao cba9d53c78 Merge "Revert "Build FUTILITY tool from futility-host."" into nyc-dev am: 683f58096d am: 5636426646 am: dcaa3eb7dd am: 9c1f17ba6f
am: 7024d9c484

Change-Id: Ibd6f3c9a6291c13605613ea8b67662c67a51ede5
2017-02-21 19:07:18 +00:00
Tao Bao 7024d9c484 Merge "Revert "Build FUTILITY tool from futility-host."" into nyc-dev am: 683f58096d am: 5636426646 am: dcaa3eb7dd
am: 9c1f17ba6f

Change-Id: I50f6cb9d43dec1a508390ddaf22dbc1a0156f405
2017-02-21 19:04:47 +00:00
Tao Bao 9c1f17ba6f Merge "Revert "Build FUTILITY tool from futility-host."" into nyc-dev am: 683f58096d am: 5636426646
am: dcaa3eb7dd

Change-Id: I55c02f7b10bc5a285c841de3a9c20dd5768a5e77
2017-02-21 19:02:47 +00:00
Tao Bao dcaa3eb7dd Merge "Revert "Build FUTILITY tool from futility-host."" into nyc-dev am: 683f58096d
am: 5636426646

Change-Id: Icf01db86b950d2ebd7241448d9cc680e118afc71
2017-02-21 19:00:47 +00:00
Tao Bao 5636426646 Merge "Revert "Build FUTILITY tool from futility-host."" into nyc-dev
am: 683f58096d

Change-Id: Iec1997b1671bacda94206deeff28a8c8c7048d36
2017-02-21 18:58:47 +00:00
Tao Bao 683f58096d Merge "Revert "Build FUTILITY tool from futility-host."" into nyc-dev 2017-02-21 18:55:34 +00:00
Tao Bao b9186f2b52 Revert "Build FUTILITY tool from futility-host."
Broke ryu targets.

This reverts commit a7726c1e36.

Change-Id: Icec9da939a50c794b15ba3f40e8307f8829254c7
2017-02-21 18:44:24 +00:00
Alain Vongsouvanh 5c9f21da04 Merge "releasetools: allow for multiple OEM property values." am: 9a3049d681
am: b98cde50aa

Change-Id: I691ce751f4fc9534f2b6c22f86aa3f16958130eb
2017-02-21 18:32:45 +00:00
Alain Vongsouvanh b98cde50aa Merge "releasetools: allow for multiple OEM property values."
am: 9a3049d681

Change-Id: Icb67fdcf5f81c9169ce7316e3e483a86f884d743
2017-02-21 18:30:15 +00:00
Treehugger Robot 9a3049d681 Merge "releasetools: allow for multiple OEM property values." 2017-02-21 18:23:15 +00:00
Tao Bao e2d1faf4a3 releasetools: Allow using futility-host to sign old TF.zip. am: 31a0de00a4 am: a9bdf8716f am: ae2f5abf06 am: 79d719b313
am: ea88a3f3fa

Change-Id: I7f43d9d1b89d4da6e1b327b49f5b2344e0480841
2017-02-21 17:52:17 +00:00
Tao Bao 1b2311250e Build FUTILITY tool from futility-host. am: a7726c1e36 am: 7459fbc169 am: 26e8fa493c am: ebd498acc6
am: e2cc7e5d4c

Change-Id: Ia0ae534b7d027661da21e12ca03eb2e4e178a22e
2017-02-21 17:52:12 +00:00
Tao Bao ea88a3f3fa releasetools: Allow using futility-host to sign old TF.zip. am: 31a0de00a4 am: a9bdf8716f am: ae2f5abf06
am: 79d719b313

Change-Id: Ib858be8c430acf21d6aa175481ee68bb3e477caa
2017-02-21 17:50:18 +00:00
Tao Bao e2cc7e5d4c Build FUTILITY tool from futility-host. am: a7726c1e36 am: 7459fbc169 am: 26e8fa493c
am: ebd498acc6

Change-Id: I2fbae1cc97aaff2c2f8e9f876ebac29b40eddcfa
2017-02-21 17:50:12 +00:00
Tao Bao 79d719b313 releasetools: Allow using futility-host to sign old TF.zip. am: 31a0de00a4 am: a9bdf8716f
am: ae2f5abf06

Change-Id: I514c69dca1aede0fe047682dab9b11e7263d7634
2017-02-21 17:48:16 +00:00
Tao Bao ebd498acc6 Build FUTILITY tool from futility-host. am: a7726c1e36 am: 7459fbc169
am: 26e8fa493c

Change-Id: Icd2ad9d62bc9e4ad33f053bf30a77e6641bc4f4b
2017-02-21 17:48:10 +00:00
Tao Bao ae2f5abf06 releasetools: Allow using futility-host to sign old TF.zip. am: 31a0de00a4
am: a9bdf8716f

Change-Id: I411b26baf0cd7d74ec6c8c80a12f0499d017a360
2017-02-21 17:46:45 +00:00
Tao Bao 26e8fa493c Build FUTILITY tool from futility-host. am: a7726c1e36
am: 7459fbc169

Change-Id: I5807a90dd5b953d0fe735c1263463fcb33cae06f
2017-02-21 17:46:41 +00:00
Tao Bao a9bdf8716f releasetools: Allow using futility-host to sign old TF.zip.
am: 31a0de00a4

Change-Id: I46041e6e5e37c451f8f23dca773850c025aa18b2
2017-02-21 17:45:15 +00:00
Tao Bao 7459fbc169 Build FUTILITY tool from futility-host.
am: a7726c1e36

Change-Id: I681c3ed4de19bd4c2bca398876806e2ef25087c3
2017-02-21 17:45:10 +00:00
Alain Vongsouvanh 7f804ba71f releasetools: allow for multiple OEM property values.
This CL changes the --oem_settings flag to allow a comma seperated list of
property files. All property values will be used when asserting properties such
as ro.product.name.

For example, if two property files are provided with ro.product.name values of
"sprout" and "sprout_a", the resulting otapackage will check that the device's
ro.product.name property matches at least one of them.

Bug: 34191373
Test: manual

Change-Id: I954673511be8f0929982235cc9cbfbd85a9ee1f4
2017-02-21 16:09:34 +00:00
Paul Duffin f22aca1e47 Filter JUnit and android.test classes from applications using proguard
The new javac/desugar/proguard/dx based toolchain can fail if
there are duplicate classes in the -injars and -libraryjars
passed to proguard. That causes problems for b/30188076 which
is attempting to remove various junit and android.test classes
from the API because it requires the changes to add those
classes statically to applications are submitted simultaneously
with the change to remove the classes from the API which is not
feasible.

This change simply causes Proguard to ignore the classes from
the application JAR so it will always use them from the library.
That allows the changes to be done separately and only requires
that this change is reverted simultaneously with the change to
update the API.

Bug: 30188076
Test: make checkbuild and make -j ANDROID_FORCE_JACK_ENABLED=disabled checkbuild
Change-Id: I6ed6c45a159d6261d90245551aa2913cc82d2e8b
2017-02-21 13:11:13 +00:00