Commit graph

32120 commits

Author SHA1 Message Date
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
Alex Humesky
ff5c9fcf48 Merge "Update comments in genrule.go." 2020-11-30 21:16:29 +00:00
Treehugger Robot
1b639537e3 Merge "droidstubs: Remove unnecessary setting of DistFiles" am: 2f53f61d59
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1511917

Change-Id: I875da57a0ba28b3666c8a7a6c995af4349138bf2
2020-11-30 21:09:41 +00:00
Treehugger Robot
58ab27473d Merge "Add 'lo-prio' tag to temp blocklist." am: fd9fdec18e
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1513211

Change-Id: Ia37a2695662da924238f97abfc005084c11ef4ce
2020-11-30 21:06:38 +00:00
Treehugger Robot
2f53f61d59 Merge "droidstubs: Remove unnecessary setting of DistFiles" 2020-11-30 20:49:17 +00:00
Treehugger Robot
fd9fdec18e Merge "Add 'lo-prio' tag to temp blocklist." 2020-11-30 20:37:47 +00:00
Alex Humesky
29e3bbe8b8 Update comments in genrule.go.
Test: Noop
Change-Id: Ib341899ea0f04e059d5471ee6e5bff8ebba82583
2020-11-30 12:30:20 -05:00
Paul Duffin
d8aed4b275 droidstubs: Remove unnecessary setting of DistFiles
Instead of setting DistFiles to use the api stub (if present) as the
default dist file this simply makes OutputFiles(tag) return the api
stub file for the DefaultDistTag.

Test: m nothing
      m dist sdk - before and after this change, compare result to
      make sure that there are no significant differences.
Bug: 174226317
Change-Id: I39d615c5bf8d20d59db7eeb98d942210ec0aa8ba
2020-11-30 17:20:09 +00:00
Sasha Smundak
1e53392425 Document more functions, minor cleanup
Fixes: 173745248
Test: treehugger
Change-Id: I075cc5197fff79179ea976927701290078e4d9ac
2020-11-30 08:53:58 -08:00
Jiyong Park
88365d1894 Merge "rust modules can be included in apex" am: fdea25781f
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1508096

Change-Id: I0e33459ce8207779367bdf6b3abee79718f8adba
2020-11-30 16:36:39 +00:00
Jiyong Park
fdea25781f Merge "rust modules can be included in apex" 2020-11-30 15:41:28 +00:00