Commit graph

15649 commits

Author SHA1 Message Date
Jaewoong Jung
c2f794a401 Merge "Migrate java/androidmk.go to new system #1"
am: 2784fda152

Change-Id: I488367e21eba6fd40ea27ef727b139448ab53dcf
2019-09-27 09:26:02 -07:00
Paul Duffin
1920360c5c Remove unused core-system-modules
am: 2e3e5e3e76

Change-Id: I6f34aa057223284e4ddb179d1643799068245656
2019-09-27 09:13:21 -07:00
Jaewoong Jung
2784fda152 Merge "Migrate java/androidmk.go to new system #1" 2019-09-27 14:40:24 +00:00
Paul Duffin
2e3e5e3e76 Remove unused core-system-modules
Soong tests no longer need to define a dummy version of this.

Test: m checkbuild
Bug: 141613583
Change-Id: Iad12560aedc74a499808bd52d9ea09ab0d68d743
2019-09-27 10:38:06 +01:00
Sasha Smundak
c352441f8d Merge "Name the resulting file $BUILD_NUMBER.kzip, drop revision.txt"
am: d9c3a7ffba

Change-Id: Iff93475e9f0fbf46d2d363fab860b5ebaeca9d45
2019-09-26 17:22:54 -07:00
Dan Shi
acc7f753f6 Merge "Allow test to specify whether or not to auto-generate test config"
am: 933b619383

Change-Id: I38392c1b35c026ea95dca93b037f36e1e4ed3ae6
2019-09-26 17:20:10 -07:00
Treehugger Robot
d9c3a7ffba Merge "Name the resulting file $BUILD_NUMBER.kzip, drop revision.txt" 2019-09-27 00:14:28 +00:00
Dan Shi
933b619383 Merge "Allow test to specify whether or not to auto-generate test config" 2019-09-27 00:01:12 +00:00
Sasha Smundak
114d966c27 Name the resulting file $BUILD_NUMBER.kzip, drop revision.txt
Bug: 137977523
Test: manual
Change-Id: Ifb02f033baaf6ee1668ccaa56b59edd05dce078a
2019-09-26 14:54:19 -07:00
Dan Shi
6ffaaa830d Allow test to specify whether or not to auto-generate test config
Attribute `auto_gen_config` is added to test modules.
Test config will be generated if:
the attribute is not set and AndroidTest.xml doesn't exists
or
the attribute is set to true, whether or not AndroidTest.xml exists.

Test config will NOT be auto-generated if:
the attribute is not set and AndroidTest.xml exists
or
the attribute is set to false, whether or not AndroidTest.xml exists.

Bug: 141684102
Test: build test module with auto_gen_config set to true
Change-Id: I64fb003a83d8c32a967835e5f8d12fe4476043be
2019-09-26 13:29:28 -07:00
Colin Cross
e6825e58e4 Make CreateModule take an android.ModuleFactory
am: 84dfc3d331

Change-Id: I923ea9e9bf757ff78d5e6d2325840284b77c69b7
2019-09-26 11:46:22 -07:00
Colin Cross
2892f7ae79 Merge "Use ctx.Fatalln instead of log.Fatalln for absolute path errors"
am: 505bcb88ed

Change-Id: Ic0e8984867f7169397cdc315eda02d8ad7e8767c
2019-09-26 10:32:56 -07:00
Colin Cross
19f69c11f4 Merge changes If92421af,I2e434f4c,I8735032e
am: d08d5c9de1

Change-Id: I5a3571f93c0551265f0248c70aadf815fe788710
2019-09-26 10:32:31 -07:00
Colin Cross
84dfc3d331 Make CreateModule take an android.ModuleFactory
Reduce the boilerplate required to call CreateModule by taking an
android.ModuleFactory instead of a blueprint.ModuleFactory.

Test: m checkbuild
Change-Id: I1259d2dd3f7893b5319c333bc180727ac40f9e91
2019-09-26 17:19:26 +00:00
Colin Cross
505bcb88ed Merge "Use ctx.Fatalln instead of log.Fatalln for absolute path errors" 2019-09-26 17:18:49 +00:00
Treehugger Robot
d08d5c9de1 Merge changes If92421af,I2e434f4c,I8735032e
* changes:
  Force dumpvars into dumb terminal mode and move log files
  status table: don't write newlines in non-scrolling terminals
  status table: ANSI code rows and columns are 1-based
2019-09-26 17:13:50 +00:00
Jooyung Han
edcce88102 Merge "fix: "no_apex" can be put in defaults"
am: 5e493d5660

Change-Id: Ia80f420a78cc8a69a2dd6c48ebbcf0766b4a089f
2019-09-25 21:22:20 -07:00
Daniel Norman
1d0ceef5cf Merge "Performs same checks as aidl_interface.go before stripping leading "I"."
am: 488e7e02a2

Change-Id: I0970a5e047405a6c9a92f95ee462964faec78672
2019-09-25 21:15:59 -07:00
Jooyung Han
5e493d5660 Merge "fix: "no_apex" can be put in defaults" 2019-09-26 01:07:21 +00:00
Daniel Norman
488e7e02a2 Merge "Performs same checks as aidl_interface.go before stripping leading "I"." 2019-09-26 00:33:57 +00:00
Alexander Smundak
56cd262d16 Merge "Build output directory should be an absolute path."
am: f0eb968d2f

Change-Id: I073daeece2e168a9647dd271e6e1da4c61ac52dd
2019-09-25 15:00:05 -07:00
Alexander Smundak
f0eb968d2f Merge "Build output directory should be an absolute path." 2019-09-25 21:51:37 +00:00
Alexander Smundak
2eb53c654e Merge "Generate revision.txt file containing unique ID."
am: a628a97ed5

Change-Id: Ia81d5e8ab068a72c43d61b96188c858171b11d75
2019-09-25 13:32:46 -07:00
Alexander Smundak
a628a97ed5 Merge "Generate revision.txt file containing unique ID." 2019-09-25 20:22:03 +00:00
Przemyslaw Szczepaniak
db36b3ee90 Merge "Remove libneuralnetworks from libbinder whitelist."
am: 8f2a61fef1

Change-Id: I37d83b453b2ca768c4467aa122ddf6993f4406de
2019-09-25 10:15:42 -07:00
Treehugger Robot
8f2a61fef1 Merge "Remove libneuralnetworks from libbinder whitelist." 2019-09-25 16:54:13 +00:00
Ivan Lozano
7768e77601 Merge "Add Soong test for device proc-macro deps."
am: a38312c3d3

Change-Id: Ia715a9d6d38debcc1e32df14511d8f9b4602e143
2019-09-25 08:41:19 -07:00
Ivan Lozano
a38312c3d3 Merge "Add Soong test for device proc-macro deps." 2019-09-25 15:17:32 +00:00
Przemyslaw Szczepaniak
598898444f Remove libneuralnetworks from libbinder whitelist.
Test: build & flash crosshatch
Bug: 139282353
Change-Id: Iaf7904fdb306dd648430ce7e167977bd6508f146
Merged-In: Iaf7904fdb306dd648430ce7e167977bd6508f146
(cherry picked from commit 76b155448d)
2019-09-25 13:04:48 +01:00
Mitch Phillips
4e0f885ead Merge "Add 'make fuzz' build rule."
am: 72b43adb56

Change-Id: Ie2800308f45c91a003ef19169bda22f8a79e7989
2019-09-24 23:31:31 -07:00
Jooyung Han
cc372c5b1d fix: "no_apex" can be put in defaults
Currently, putting no_apex in defaults module doesn't work.

To fix this,
* 'no_apex' property is added as 'defaultable'.
* apex module doesn't follow beyond 'defaults' module.

Bug: 141560644
Test: m (soong tests added)
Change-Id: I8410785f7f83d843689a33b1241d74086c6a7671
2019-09-25 15:27:47 +09:00
Treehugger Robot
72b43adb56 Merge "Add 'make fuzz' build rule." 2019-09-25 06:14:41 +00:00
Mitch Phillips
d3254b4899 Add 'make fuzz' build rule.
Adds the `make fuzz` build rule. This offers a few features on top of
`make haiku`:
 1. Identifies all fuzz targets through the build system, rather than
 having to maintain a golden file.
 2. Packages now exist in out/soong/ and are packaged on a per-architecture
 basis. Packages also now contain fuzzer seed corpus && dictionary.
 3. This gives us further extension options:
  - Packaging shared libraries for shared library fuzzing.
  - Presubmit tests for fuzzing. Each fuzz target could be made into a
  regression test by adding the crash testcase to the corpus. We can
  also ensure that example_fuzzer finds a bug with an ASan report as a
  presubmit smoke test.

Bug: 141026328
Test: m fuzz && unzip -l out/soong/fuzz-$ARCH.zip

Change-Id: I7aaad616d6b194a3beaf908241a9817df9dfdce1
2019-09-24 20:48:00 -07:00
Daniel Norman
10b743509e Performs same checks as aidl_interface.go before stripping leading "I".
Test: building AIDL interface named IntEnum.aidl. Leading I is not
removed.
Change-Id: Ia40cbdf9b8936f6f58a99971eae1b2138a678c91
2019-09-24 17:41:15 -07:00
Ivan Lozano
b9040d6b76 Add Soong test for device proc-macro deps.
Ensure that devices can include proc_macros, which are host-only
and may include host-only dependencies.

Bug: 141491501
Test: Soong tests pass.
Test: Test fails as expected when removing CL 1126496
Change-Id: I3ae7ab80283cd1fd4b800a533cb3205b3c108d45
2019-09-25 00:23:54 +00:00
Ivan Lozano
a34fe6bbe3 Merge changes from topic "add_rust_arm64_devices"
am: f23f6d20f0

Change-Id: Id24c83d75325cbffddd9f5a0e4caaa38c6ff96d8
2019-09-24 15:00:14 -07:00
Ivan Lozano
b04853ade7 Merge "Fix proc_macro dependency handling."
am: ca34692de1

Change-Id: I420c048683c4675146b8ba7fa46372612a342570
2019-09-24 14:59:00 -07:00
Ivan Lozano
f23f6d20f0 Merge changes from topic "add_rust_arm64_devices"
* changes:
  Add ARM32 device Rust toolchain.
  Add AArch64 device Rust toolchain.
2019-09-24 21:39:51 +00:00
Ivan Lozano
ca34692de1 Merge "Fix proc_macro dependency handling." 2019-09-24 21:33:45 +00:00
Sasha Smundak
a1e178f39d Build output directory should be an absolute path.
Bug: 141385476
Test: manual
Change-Id: I969c761571dca6949204a8aa87a0b52ba98761c2
2019-09-24 12:07:52 -07:00
Ivan Lozano
e91823e6e0 Add ARM32 device Rust toolchain.
Bug: 141207434
Test: build example rust device module.
Change-Id: I2d5b45ba09f386e1c7da7d7cdc58f13f31135863
2019-09-24 10:35:28 -07:00
Ivan Lozano
f1c8433b40 Add AArch64 device Rust toolchain.
Bug: 141207434
Test: build example rust device module.
Change-Id: I0932a614942bf4a4d4b6c153fcc4fc79c7f202bd
2019-09-24 10:35:28 -07:00
Ivan Lozano
5ca5ef6788 Fix proc_macro dependency handling.
Currently proc_macros don't pull in the correct arch dependencies when
the host arch differs from the target arch.

This fixes how proc_macro dependencies are handled by defining them as
always being host-only and including them as dependencies for
device-modules by using AddFarVariationDependencies.

Bug: 141491501
Test: Example device rust module builds with proc_macro dependency.
Change-Id: Ic037dc406ce90526f8b68c92fffc0d93a498a4ff
2019-09-24 10:35:20 -07:00
Sasha Smundak
69ee7b0967 Generate revision.txt file containing unique ID.
Bug: 137977523
Test: manual
Change-Id: Ib1fbf6a4305bd843ace203e3f62a511fbdb168a1
2019-09-24 10:28:36 -07:00
Colin Cross
1f6faeb50f Use ctx.Fatalln instead of log.Fatalln for absolute path errors
log.Fatalln calls os.Exit, which skips deferred functions and
leaves the console with the cursor disabled.  Use ctx.Fatalln
instead, which uses a panic to exit and calls the deferred
function to restore the cursor.

Test: DIST_DIR=/tmp/\test\ foo m dist
Change-Id: Ie92297075e37c171d5ba48848a0ddb19652b051c
2019-09-23 15:55:54 -07:00
Inseob Kim
e38b4ee6a8 Merge "Move sysprop gen code to sysprop module"
am: ec3e81b4be

Change-Id: Ic02031b465232dd883e59522e46bc3a05f6a0c40
2019-09-23 15:45:16 -07:00
Treehugger Robot
ec3e81b4be Merge "Move sysprop gen code to sysprop module" 2019-09-23 22:25:40 +00:00
Colin Cross
c0b9f6b9d2 Force dumpvars into dumb terminal mode and move log files
Force soong_ui in dumpvars mode to use a dumb terminal so that it
doesn't print an empty status table.  Also move the logs to files
that are prefixed with "dumpvars-" so that they don't rotate the
real build logs.

Fixes: 139307849
Test: lunch
Change-Id: If92421af07731fedc9ca42670f309e95922a2224
2019-09-23 14:24:57 -07:00
Yi Kong
65fcfa1fc1 Merge "Remove -Wno-format-pedantic cflag"
am: aefd0af575

Change-Id: I8dcf49a3469007d7343eb9ea869a8725ee5c2ffa
2019-09-23 11:05:41 -07:00
Yi Kong
aefd0af575 Merge "Remove -Wno-format-pedantic cflag" 2019-09-23 17:48:21 +00:00