Commit Graph

32181 Commits

Author SHA1 Message Date
Cindy Zhou 591833471f Merge "Add arch_variant support for diag" 2020-12-02 13:01:43 +00:00
Treehugger Robot b28bd8cd66 Merge "Fix the instructions for regenerating .txt" 2020-12-02 13:01:37 +00:00
Anton Hansson 5e5c48b2b5 Add support for skipping just kati
The existing --skip-make flag disables both the config step and the kati
step in the build. Add support for a --skip-kati flag that skips just
the kati step, and refactor things so that the logic is shared between
these two.

Bug: 174315599
Test: TARGET_PRODUCT=aosp_arm64 soong_ui --make-mode --skip-kati;
      (verify soong.variables is regenerated)
Change-Id: I75b1910fc1c12fcda130e37b7bc4c050131c7b33
2020-12-02 10:39:50 +00:00
Treehugger Robot 3d3b6e7dcb Merge "Minor cleanup of soong.go." am: d74b9c5728
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1511168

Change-Id: Ide4941f26368d1a05c768b94db9286019d841251
2020-12-02 08:56:58 +00:00
Treehugger Robot d74b9c5728 Merge "Minor cleanup of soong.go." 2020-12-02 08:21:59 +00:00
JaeMan Park c11aa53de1 Merge "Add java sdk library enforcement flag" am: a4d314c91c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1475897

Change-Id: Ifb19d9aaa6f1a8b1005eb1f4b45cd6398335d041
2020-12-02 05:22:24 +00:00
JaeMan Park a4d314c91c Merge "Add java sdk library enforcement flag" 2020-12-02 04:39:10 +00:00
Treehugger Robot 9152b273b1 Merge "Minor cleanup of build.go." am: d8c099e12d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1509812

Change-Id: Ia289e0dbbcb39b8e523462804db666c2d78737e5
2020-12-02 03:38:24 +00:00
Kiyoung Kim 4098c7eddf Add linkerconfig to Runtime APEX
Add linkerconfig to Runtime APEX module.

Bug: 165769179
Test: Cuttlefish boot succeeded
Change-Id: I31c4bfa2ce88b64d7100f227ec289416db253b13
2020-12-02 11:33:54 +09:00
Treehugger Robot d8c099e12d Merge "Minor cleanup of build.go." 2020-12-02 02:29:08 +00:00
Jiyong Park 0c5b6caa37 Merge "Remove the arch-based filtering hack in packaging.go" am: f10995b7b6
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1509692

Change-Id: Ic73ff639f06086f70e6949fa65d3fcddb8709fbf
2020-12-02 01:47:47 +00:00
Kiyoung Kim 2edef37163 Merge "Generate system stub library list at build time" am: e76ec1cbeb
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1498485

Change-Id: Id3be94b17dc74f824957c178f8e3cea6968ff594
2020-12-02 01:47:40 +00:00
Jiyong Park d5cea654ff Merge "android_filesystem is installable" am: 33e1763094
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1509548

Change-Id: Iae503d7fc760c323e6d91f2eb02f6774710e1378
2020-12-02 01:46:35 +00:00
Jiyong Park f10995b7b6 Merge "Remove the arch-based filtering hack in packaging.go" 2020-12-02 01:24:17 +00:00
Rupert Shuttleworth b7d971012a Minor cleanup of soong.go.
Test: TH presubmit.
Change-Id: Ic5b263aa1320d9f70a6749ed12cbdc477acd3067
2020-12-02 00:56:35 +00:00
Rupert Shuttleworth eeb5caac78 Minor cleanup of build.go.
Test: TH presubmit.
Change-Id: I3a41130b25d39276162850e417f036f9ce6a2ec0
2020-12-02 00:49:03 +00:00
Kiyoung Kim e76ec1cbeb Merge "Generate system stub library list at build time" 2020-12-02 00:28:19 +00:00
Colin Cross f1a035e6be Pass pctx and ctx to NewRuleBuilder
Enable the RuleBuilder and RuleBuilderCommand methods to access
the BuilderContext by passing it to NewRuleBuilder instead of
RuleBuilder.Build.

Test: genrule_test.go
Test: rule_builder_test.go
Test: m checkbuild
Change-Id: I63e6597e19167393876dc2259d6f521363b7dabc
2020-12-01 16:22:16 -08:00
Jiyong Park 33e1763094 Merge "android_filesystem is installable" 2020-12-01 23:36:28 +00:00
Chris Parsons bf4f55f180 Improve commenting for cc/builer.go, and kill dead code
Test: m nothing
Change-Id: I836c717d3243e901257120be71246e419de4d28e
2020-12-01 18:28:38 -05:00
Treehugger Robot 5ac52e71e5 Merge "Add test suite handling to central androidmk code" am: 464e6c71df
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1513215

Change-Id: Ic663483b0a799793e7eac61f796af3c99a204954
2020-12-01 22:37:46 +00:00
Treehugger Robot 464e6c71df Merge "Add test suite handling to central androidmk code" 2020-12-01 22:19:26 +00:00
Liz Kammer d737d02f16 Add comments/refactor for python.go
Test: all soong tests
Test: m nothing
Change-Id: Ib3b95d7c2831b97026e76a39af515fd51c6cb2c7
2020-12-01 13:18:47 -08:00
Neil Fuller 96d016137f Fix the instructions for regenerating .txt
"make" hasn't worked for a while.

Test: None
Change-Id: Ic1319d32d4cc1b0930829fa6ed4d8d3f31deb351
2020-12-01 21:18:13 +00:00
Liz Kammer 57f5b33ad3 Add test suite handling to central androidmk code
MTS is introducing partial MTS test suites that are per-module, with
names of the format: mts-${MODULE}. By centralizing the code for test
suites, we can automatically add "mts" test suite when an
"mts-${MODULE}" test suite is specified, reducing duplication.

Test: m mts
Bug: 170318013
Change-Id: I8ce9d3c252fcc0a937bb5f2826d21cb6c6932d82
2020-12-01 12:23:56 -08:00
Cindy Zhou d3fe49289d Add arch_variant support for diag
Allow for different arch to specify sanitizer options.

Bug: 158010610
Test: Compiles with build options
Change-Id: I4db72f682e920e3c1a6d55473f316e56567636e6
2020-12-01 11:26:39 -08:00
Jiyong Park 65c49f5979 android_filesystem is installable
Also document about the android_filesystem module type.

Bug: 172414391
Test: m
Change-Id: Iae07af9dd22f34c8e0e4c833333bafdf82dcab2a
2020-12-01 23:47:39 +09:00
Treehugger Robot 2923649606 Merge "Document more functions, minor cleanup" am: 882c042575
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1506452

Change-Id: I27d8481ef947e918fdb03ec6add04d7f1daa451f
2020-12-01 14:35:25 +00:00
Jaewoong Jung 7ef4a900f4 Bolster comments in android/androidmk.go.
Bug: 173398138
Test: N/A
Change-Id: I46048b8398356d658fd5ae0299b59e6e18429198
2020-12-01 06:15:14 -08:00
Treehugger Robot 882c042575 Merge "Document more functions, minor cleanup" 2020-12-01 14:07:35 +00:00
Ivan Lozano 259a07f0d1 Merge "rust: Add support for multiple protos per module." am: 9c3f653207
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1503832

Change-Id: Id97e7b1a7270b992c988cabefe8d6159d133f806
2020-12-01 13:25:51 +00:00
Ivan Lozano 9c3f653207 Merge "rust: Add support for multiple protos per module." 2020-12-01 13:11:57 +00:00
Jiyong Park d630bdd4dd Remove the arch-based filtering hack in packaging.go
aosp/1501613 has landed. The filtering hack is no longer needed.

Also, fixed a bug that the dependency to the dynamic linker is not
treated as install dep.

Bug: N/A
Test: `m hosttar` and compare the built cvd-host_package.tar.gz with and
without this change. There is no removed file.

Change-Id: I19ef64e10d34bc8be2592c5258505cd632c91af9
2020-12-01 19:25:39 +09:00
Ulyana Trafimovich e5b0fb9ee4 Merge changes from topic "soong-fixit-skavdrik" am: 0d18ef42ec
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1507578

Change-Id: Id8ad46f99181aa7ca41fee9cbf8402ff2a2a5483
2020-12-01 10:24:19 +00:00
Ulyana Trafimovich 0d18ef42ec Merge changes from topic "soong-fixit-skavdrik"
* changes:
  Documenting java/dexpreopt_bootjars.go
  Documenting dexpreopt/class_loader_context.go.
2020-12-01 10:01:43 +00:00
Jiyong Park 31fc18441b Reformat comments in packaging.go am: cc1157cd49
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1509691

Change-Id: I25f06182273ed50ad3e610dfe80c37d84b92ee78
2020-12-01 05:51:09 +00:00
Jiyong Park cc1157cd49 Reformat comments in packaging.go
set textwidth=100

Bug: N/A
Test: N/A

Change-Id: I2fb315c9488010d189b7757a4d93be181672b4a6
2020-12-01 05:27:48 +00:00
Kiyoung Kim 24dfc1fbb2 Generate system stub library list at build time
List of stub libraries from system (and bionic APEX) is currently
managed in static file. This change generates the list at build time and
adds to the system config so linkerconfig can use it.

Bug: 172889962
Test: Build cuttlefish and confirmed list is generated in
/system/etc/linker.config.pb

Change-Id: Ie0400e9d1098b0de19c6a7c25f261384aadde0a3
2020-12-01 14:09:03 +09:00
Jiyong Park e989d3269d Merge "Clients of PackagingBase can customize dependency tag to use" am: 493e7ec3ee
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1509690

Change-Id: I5599c23a746cc0056fefe0f063faf35509228748
2020-12-01 04:21:11 +00:00
Jiyong Park 493e7ec3ee Merge "Clients of PackagingBase can customize dependency tag to use" 2020-12-01 03:44:38 +00:00
Jiyong Park 65b6224471 Clients of PackagingBase can customize dependency tag to use
Previously, the dep tag used by PackagingBase was fixed, which prevented
some of its clients (e.g. cvd-host-package) from opting in to
android.InstallAlwaysNeededDependencyTag. Now, PackagingBase.AddDeps
accepts the dependency tag to use.

Also, dependencies toward rust dylib, rlib, and proc_macro are
configured to return true on InstallDepNeeded. This is required to
install shared_lib dependencies of the rust modules when they are
depended on by a rust binary.

Exempt-From-Owner-Approval: a trivial change after +2 from the owner.
This has to land ASAP as many users are affected by acloud being
unavailable.

Bug: N/A
Test: m
Test: acloud create --local-instance --local-image
Change-Id: If22aee7c6f314fcb03b9d4fe6901a2557f1e899c
2020-12-01 03:43:05 +00:00
Treehugger Robot 963d959672 Merge "Allow rust code in device/google/cuttlefish" am: 93bfe6bf76
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1511774

Change-Id: I5b1e10aafae6464d1ea0fc4018010d2df09eb1c6
2020-12-01 01:01:42 +00:00
Treehugger Robot f048eeb107 Merge "Soong: use deterministic temp dir names in sbox" am: 6e25bb9e5f
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1511909

Change-Id: I79f298c95919a9e5c53a9cc964833ea8fe6e99fa
2020-12-01 00:59:57 +00:00
Treehugger Robot 93bfe6bf76 Merge "Allow rust code in device/google/cuttlefish" 2020-12-01 00:16:41 +00:00
Treehugger Robot 6e25bb9e5f Merge "Soong: use deterministic temp dir names in sbox" 2020-12-01 00:00:30 +00:00
Treehugger Robot bc7a7a3156 Merge "Add and update comments in ui/build/upload.go" am: bd8b0d26b2
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1501490

Change-Id: I8cacc40caafd998dffda593acfc28e304d8025ba
2020-11-30 23:22:14 +00:00
Dan Albert b19953d04a Rename __ANDROID_SDK_VERSION__.
__ANDROID_SDK_VERSION__ is ambiguous. Rename it
__ANDROID_APEX_MIN_SDK_VERSION__ so it's clear which SDK version it
refers to.

Note that this is still different from the minSdkVersion of the module
being compiled. This is the max of *all* the minSdkVersions of modules
that this module shares an APEX with.

Test: treehugger
Bug: None
Change-Id: Id9cbd80a6bc99db8227daef4e1db9c893e63ad1e
2020-11-30 14:39:01 -08:00
Jaewoong Jung 60d6d57771 Improve comments in java/aapt2.go
Test: N/A
Change-Id: I4b35a7c8707b9c4b173bb4587f7634e570d78674
2020-11-30 14:16:02 -08:00
Treehugger Robot bd8b0d26b2 Merge "Add and update comments in ui/build/upload.go" 2020-11-30 22:01:38 +00:00
Alex Humesky facd16bb19 Merge "Update comments in genrule.go." am: ff5c9fcf48
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1507121

Change-Id: I60deb48cb71eca0df8af305eb8db98ae3b2f9863
2020-11-30 21:38:09 +00:00