Commit Graph

15828 Commits

Author SHA1 Message Date
Colin Cross
251e0ed1dd Make CreateModule take an android.ModuleFactory am: 84dfc3d331
am: e6825e58e4

Change-Id: I001e98ada2f393e57e0c64eef8cf7df6e186be1c
2019-09-26 12:01:01 -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
e9fb5ac774 Merge "Use ctx.Fatalln instead of log.Fatalln for absolute path errors" am: 505bcb88ed
am: 2892f7ae79

Change-Id: Id9651fd43db0169fe69b5fe19ba01f35508e63fd
2019-09-26 10:39:07 -07:00
Colin Cross
cbd65d0736 Merge changes If92421af,I2e434f4c,I8735032e am: d08d5c9de1
am: 19f69c11f4

Change-Id: I02c8c48e2909a34c69a6da2c404fc9cb36a17187
2019-09-26 10:38:45 -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
3182fbea54 Merge "fix: "no_apex" can be put in defaults" am: 5e493d5660
am: edcce88102

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

Change-Id: I0fda0103bbfb0bd9f89c842370375d15fdaf8638
2019-09-25 21:23:18 -07: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
36d00b3f43 Merge "Build output directory should be an absolute path." am: f0eb968d2f
am: 56cd262d16

Change-Id: I7911d0ffdb8407054335d6c0229d4693c2034488
2019-09-25 15:06:14 -07: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
54d50b59ea Merge "Generate revision.txt file containing unique ID." am: a628a97ed5
am: 2eb53c654e

Change-Id: I31fa34b592a5ad3bc6737ffcbad0be76ca962de5
2019-09-25 13:38:52 -07: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
05fd720146 Merge "Remove libneuralnetworks from libbinder whitelist." am: 8f2a61fef1
am: db36b3ee90

Change-Id: Ia3b035f72ef708478b72ce4871e47df4e8c6dc2b
2019-09-25 10:22:09 -07: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
71d541c5f7 Merge "Add Soong test for device proc-macro deps." am: a38312c3d3
am: 7768e77601

Change-Id: I0cf715faf2297fed8a997d79bcb01f1aae05f524
2019-09-25 08:51:58 -07: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
47d17f4062 Merge "Add 'make fuzz' build rule." am: 72b43adb56
am: 4e0f885ead

Change-Id: I4b756787d046fd0a76aa69d2d84759112e5414b8
2019-09-24 23:37:51 -07: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
422ecea9de Merge changes from topic "add_rust_arm64_devices" am: f23f6d20f0
am: a34fe6bbe3

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

Change-Id: If119147fc084361cab622996a6cbb1374a743d4f
2019-09-24 15:05:45 -07: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
78af976b1a Merge "Move sysprop gen code to sysprop module" am: ec3e81b4be
am: e38b4ee6a8

Change-Id: I0b925594170e76e5f02e14f6769288f7808daab4
2019-09-23 15:51:33 -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