Commit Graph

20549 Commits

Author SHA1 Message Date
Ulyana Trafimovich
6d69cfa4a8 Merge "Share vdex files in the ART apex between architectures (via symlinks)." am: 5d2449efe4 am: f985044e23
Change-Id: I01fb1eee33776c09903bd558c0a1cb98d430089b
2020-03-18 14:17:24 +00:00
Ulyana Trafimovich
f985044e23 Merge "Share vdex files in the ART apex between architectures (via symlinks)." am: 5d2449efe4
Change-Id: Ieefba9f352f4ec74629c623b997e934c4d0e6433
2020-03-18 14:01:38 +00:00
Ulyana Trafimovich
5d2449efe4 Merge "Share vdex files in the ART apex between architectures (via symlinks)." 2020-03-18 13:46:06 +00:00
Paul Duffin
3aaae1273d Clean up the main module creation loop am: b44b33a621 am: ebbb19f145
Change-Id: I2d695605f9da44857eae917e4ddae6476df1f795
2020-03-18 12:07:37 +00:00
Paul Duffin
ebbb19f145 Clean up the main module creation loop am: b44b33a621
Change-Id: Idf4c646486af5944e1e1a74e2c13450dd45e2938
2020-03-18 11:47:39 +00:00
Paul Duffin
b44b33a621 Clean up the main module creation loop
This change reorganizes the code within the main module creation loop
in preparation for delegating the work to separate types. It has been
split out into its own change to make it easier to review by keeping
the functional changes localized.

Renames the osTypeSpecificInfo archTypes field to archInfos as the
latter is more accurate.

Cleans up the arch variants handling:
1) Groups them by arch type to make them easier to process.
2) Fails fast when there is not exactly one variant per arch type as
   otherwise it results in a confusing failure later on.
3) Removes the commonArch flags and instead uses the fact that
   osInfo.archInfos is empty when the common architecture variant is
   available.

Cleans up the arch type specific property set handling.
1) Adds new archPropertySet variable to allow the choice of where the
   arch specific properties are added to be made alongside the choice
   of where the os specific properties are to be added.
2) Removes unnecessary check for commonArch around the loop to add
   properties from archInfos as the archInfos will be empty when the
   common architecture is present.

A number of other changes to make it easier to extract the code into
their own methods.

Test: m nothing
Bug: 142918168
Change-Id: I16a5fa79efff0d08c22916449eb46a5bd910723a
2020-03-18 11:02:24 +00:00
Jiyong Park
8684509163 [automerger skipped] track static deps when gatherint notices for apex am: 162e844c40 -s ours
am skip reason: Change-Id I38655da62b590b669ab4649815b61a5a8e314154 with SHA-1 9918e1afd7 is in history

Change-Id: Ife54971b180377ad179f221659d8de90fea22eb6
2020-03-18 07:09:47 +00:00
Jiyong Park
162e844c40 track static deps when gatherint notices for apex
This change fixes a bug that license info for statically linked
libraries are absent in the merged notice for APEX. The problem was that
we were iterating over the apexFiles list that represents actual files
(not Soong modules) that are included in the APEX. The problem is now
fixed by iterarting the all the modules that directly or indirectly
contribute to the APEX using walkPayloadDeps() function.

Bug: 149455933
Test: m
Merged-In: I38655da62b590b669ab4649815b61a5a8e314154
(cherry picked from commit 9918e1afd7)
Change-Id: I38655da62b590b669ab4649815b61a5a8e314154
2020-03-18 12:45:50 +09:00
Treehugger Robot
befbbf8b58 Merge "track static deps when gatherint notices for apex" am: d21a743f73 am: ea55321af5
Change-Id: Ib7ac9a227e68c6a5f239b27e233e1cec4da1cbff
2020-03-18 01:46:19 +00:00
Treehugger Robot
ea55321af5 Merge "track static deps when gatherint notices for apex" am: d21a743f73
Change-Id: I9f025cea4e9e55ed5a4ef2a6de91e9da334d90d0
2020-03-18 01:30:36 +00:00
Treehugger Robot
d21a743f73 Merge "track static deps when gatherint notices for apex" 2020-03-18 01:19:26 +00:00
Automerger Merge Worker
342bfc5480 Merge "Rename ART dump-oat rules." am: fde5912660 am: 00903a8d66
Change-Id: I31e27fb54a033f70f21232682315d361d66d8e28
2020-03-17 15:05:27 +00:00
Automerger Merge Worker
00903a8d66 Merge "Rename ART dump-oat rules." am: fde5912660
Change-Id: I1fde0ecf46c0d38f9b1c45f5be7c03da00b7270a
2020-03-17 14:46:35 +00:00
David Srbecky
fde5912660 Merge "Rename ART dump-oat rules." 2020-03-17 14:34:45 +00:00
Ulya Trafimovich
5b88fe36b5 Share vdex files in the ART apex between architectures (via symlinks).
Test: aosp_walleye-userdebug boots.

Test: Check symlinks to *.vdex files in the ART apex:
$ adb shell 'find /apex/com.android.art -name '*.vdex' | xargs ls -l'
  lrw-r--r-- 1 system system   23 1970-01-01 01:00 /apex/com.android.art/javalib/arm/boot-apache-xml.vdex -> ../boot-apache-xml.vdex
  lrw-r--r-- 1 system system   25 1970-01-01 01:00 /apex/com.android.art/javalib/arm/boot-bouncycastle.vdex -> ../boot-bouncycastle.vdex
  lrw-r--r-- 1 system system   23 1970-01-01 01:00 /apex/com.android.art/javalib/arm/boot-core-icu4j.vdex -> ../boot-core-icu4j.vdex
  lrw-r--r-- 1 system system   24 1970-01-01 01:00 /apex/com.android.art/javalib/arm/boot-core-libart.vdex -> ../boot-core-libart.vdex
  lrw-r--r-- 1 system system   19 1970-01-01 01:00 /apex/com.android.art/javalib/arm/boot-okhttp.vdex -> ../boot-okhttp.vdex
  lrw-r--r-- 1 system system   12 1970-01-01 01:00 /apex/com.android.art/javalib/arm/boot.vdex -> ../boot.vdex
  lrw-r--r-- 1 system system   23 1970-01-01 01:00 /apex/com.android.art/javalib/arm64/boot-apache-xml.vdex -> ../boot-apache-xml.vdex
  lrw-r--r-- 1 system system   25 1970-01-01 01:00 /apex/com.android.art/javalib/arm64/boot-bouncycastle.vdex -> ../boot-bouncycastle.vdex
  lrw-r--r-- 1 system system   23 1970-01-01 01:00 /apex/com.android.art/javalib/arm64/boot-core-icu4j.vdex -> ../boot-core-icu4j.vdex
  lrw-r--r-- 1 system system   24 1970-01-01 01:00 /apex/com.android.art/javalib/arm64/boot-core-libart.vdex -> ../boot-core-libart.vdex
  lrw-r--r-- 1 system system   19 1970-01-01 01:00 /apex/com.android.art/javalib/arm64/boot-okhttp.vdex -> ../boot-okhttp.vdex
  lrw-r--r-- 1 system system   12 1970-01-01 01:00 /apex/com.android.art/javalib/arm64/boot.vdex -> ../boot.vdex
  -rw-r--r-- 1 system system 1229 1970-01-01 01:00 /apex/com.android.art/javalib/boot-apache-xml.vdex
  -rw-r--r-- 1 system system 2043 1970-01-01 01:00 /apex/com.android.art/javalib/boot-bouncycastle.vdex
  -rw-r--r-- 1 system system 2883 1970-01-01 01:00 /apex/com.android.art/javalib/boot-core-icu4j.vdex
  -rw-r--r-- 1 system system  865 1970-01-01 01:00 /apex/com.android.art/javalib/boot-core-libart.vdex
  -rw-r--r-- 1 system system  395 1970-01-01 01:00 /apex/com.android.art/javalib/boot-okhttp.vdex
  -rw-r--r-- 1 system system 7125 1970-01-01 01:00 /apex/com.android.art/javalib/boot.vdex

Bug: 150934453

Change-Id: Ifbceb845749f4c218693f4118e8b35b59ff26de1
2020-03-17 13:36:06 +00:00
David Srbecky
46672321e4 Rename ART dump-oat rules.
Follow-up to CL/1235086 which renamed the rules.

Preserve the name for target since ART tests depends on it.

Test: m dump-oat-boot-x86
Change-Id: I67c7ea9e99fea24f089d38856811bfa320258b54
2020-03-17 11:00:46 +00:00
Automerger Merge Worker
859c9c6d8d Merge "Add support for cc_prebuilt_library" am: 28e28ed2f6 am: e2d6b4586b
Change-Id: I68b6339bb08cdd1ba951e7382961de1cbf8d8405
2020-03-17 10:28:50 +00:00
Automerger Merge Worker
b6e2dd9022 Merge "Refactor prebuilt to use srcs supplier function" am: 175ef303a3 am: 0155813cc3
Change-Id: I7f1a8479b2b6197bcd9370da5b1997cbac094f28
2020-03-17 10:28:39 +00:00
Jiyong Park
9918e1afd7 track static deps when gatherint notices for apex
This change fixes a bug that license info for statically linked
libraries are absent in the merged notice for APEX. The problem was that
we were iterating over the apexFiles list that represents actual files
(not Soong modules) that are included in the APEX. The problem is now
fixed by iterarting the all the modules that directly or indirectly
contribute to the APEX using walkPayloadDeps() function.

Bug: 149455933
Test: m
Change-Id: I38655da62b590b669ab4649815b61a5a8e314154
2020-03-17 19:16:40 +09:00
Automerger Merge Worker
e2d6b4586b Merge "Add support for cc_prebuilt_library" am: 28e28ed2f6
Change-Id: I4a53b80294187421f76837a570d296f52570734c
2020-03-17 10:15:56 +00:00
Automerger Merge Worker
0155813cc3 Merge "Refactor prebuilt to use srcs supplier function" am: 175ef303a3
Change-Id: I830bd1de9078a403d720376a518ec95ef4bdd261
2020-03-17 10:15:48 +00:00
Paul Duffin
28e28ed2f6 Merge "Add support for cc_prebuilt_library" 2020-03-17 09:56:29 +00:00
Paul Duffin
175ef303a3 Merge "Refactor prebuilt to use srcs supplier function" 2020-03-17 09:55:58 +00:00
Automerger Merge Worker
463747df29 [automerger skipped] Merge "Remove libselinux from the apex_available whitelist" into rvc-dev am: 79505fbf22 -s ours
am skip reason: Change-Id Id4fb933141ad32ff5217a58f1c7d689cc657e9ea with SHA-1 1731f6ae3f is in history

Change-Id: I9c2fb5dc6910e20951e8bf95732438a4b63667b3
2020-03-17 08:52:33 +00:00
Jiyong Park
79505fbf22 Merge "Remove libselinux from the apex_available whitelist" into rvc-dev 2020-03-17 08:29:46 +00:00
Automerger Merge Worker
260eb4c63f [automerger skipped] Allow for overriding container packagename for an Apex. am: cb6aa122d8 -s ours
am skip reason: Change-Id If49042a7acbf9f0dcb505664863d97805902e459 with SHA-1 5b57dbad86 is in history

Change-Id: Ica4b3d2fb7ea4933fe63dd1d481c0b07bbae8c38
2020-03-17 05:37:43 +00:00
Automerger Merge Worker
0fdd1a61da Merge "Remove libselinux from the apex_available whitelist" am: 4f65ea2992 am: 8f93c7e4a8
Change-Id: Ic2b571ba51a6b6b63143e95cacdb74eb4b69361f
2020-03-17 05:31:20 +00:00
Jiyong Park
7e5576a7b1 Remove libselinux from the apex_available whitelist
libselinux no longer is included in any APEX. Only the platform variant
of it (/system/lib/libselinux.so) exists and APEXes link to it.

Removing the lib name from the whitelist to make it clear that the
library is not available to any APEX.

Bug: 151053366
Bug: 150999716
Test: m

Exempt-From-Owner-Approval: cherry-pick from aosp

Merged-In: Id4fb933141ad32ff5217a58f1c7d689cc657e9ea
(cherry picked from commit 1731f6ae3f)
Change-Id: Id4fb933141ad32ff5217a58f1c7d689cc657e9ea
2020-03-17 05:25:31 +00:00
Automerger Merge Worker
8f93c7e4a8 Merge "Remove libselinux from the apex_available whitelist" am: 4f65ea2992
Change-Id: I19494dfd7176fa7497945ae54f636597857f204a
2020-03-17 05:19:01 +00:00
Treehugger Robot
4f65ea2992 Merge "Remove libselinux from the apex_available whitelist" 2020-03-17 04:55:02 +00:00
Automerger Merge Worker
51cd78cfdd [cc_fuzz] Don't build infra-disable targets in m haiku. am: 18e6719e9f am: a94c76dae4
Change-Id: Ib291897d9db485bebe05910bf0db1ff69c9f04df
2020-03-17 00:34:30 +00:00
Automerger Merge Worker
a94c76dae4 [cc_fuzz] Don't build infra-disable targets in m haiku. am: 18e6719e9f
Change-Id: I3b1584f65bc27fee3e1919fc8bcbe8cec07280fb
2020-03-17 00:18:34 +00:00
Automerger Merge Worker
78c5fa002b Merge "Allow for overriding container packagename for an Apex." am: c822818147 am: 5b88818470
Change-Id: Ic41a6ec13f3d8dbceda05fb3c330ac5cee01aca5
2020-03-16 23:42:50 +00:00
Baligh Uddin
cb6aa122d8 Allow for overriding container packagename for an Apex.
Test: go test ./... -test.v -run TestOverrideApex
BUG: 148198056
Merged-In: If49042a7acbf9f0dcb505664863d97805902e459
Change-Id: If49042a7acbf9f0dcb505664863d97805902e459
2020-03-16 16:41:11 -07:00
Automerger Merge Worker
5b88818470 Merge "Allow for overriding container packagename for an Apex." am: c822818147
Change-Id: Id0eb48f4b6eeb6940bfd53b87ccd3737a3c0d018
2020-03-16 23:25:40 +00:00
Mitch Phillips
18e6719e9f [cc_fuzz] Don't build infra-disable targets in m haiku.
`make haiku` shouldn't build fuzz targets that are disabled on the
continuous fuzzing infra. This should reduce pressure on the repackager.

Bug: N/A
Test: make haiku && verify that example_fuzzer isn't there.
Change-Id: I6a687a3ab8cbb1eb75113e96aba2c4f9f8058010
2020-03-16 23:25:17 +00:00
Baligh Uddin
c822818147 Merge "Allow for overriding container packagename for an Apex." 2020-03-16 23:07:31 +00:00
Automerger Merge Worker
733a358893 Merge "Remove unused mips workarounds." am: cc868de8a7 am: dab9b68d96
Change-Id: I81f2fe56c70541bd0ae1953112382595215b57ed
2020-03-16 21:38:09 +00:00
Automerger Merge Worker
dab9b68d96 Merge "Remove unused mips workarounds." am: cc868de8a7
Change-Id: I75092918edca932d39b7b072338b26c51be6f1ca
2020-03-16 21:25:20 +00:00
Elliott Hughes
cc868de8a7 Merge "Remove unused mips workarounds." 2020-03-16 21:06:13 +00:00
Baligh Uddin
5b57dbad86 Allow for overriding container packagename for an Apex.
Test: go test ./... -test.v -run TestOverrideApex
BUG: 148198056
Change-Id: If49042a7acbf9f0dcb505664863d97805902e459
2020-03-16 12:38:06 -07:00
Paul Duffin
bce90daf45 Add support for cc_prebuilt_library
Test: m nothing
Bug: 142918168
Change-Id: I8aacc0052812208e1892ef533545ae53bb387a0d
2020-03-16 19:27:16 +00:00
Paul Duffin
dcb4bd6fb4 Refactor prebuilt to use srcs supplier function
Previously, prebuilt had two ways to provide the src value, as a
pointer to an []string and using reflection. That meant that any code
that needed to check the src to use had to understand the two ways of
accessing it.

This change refactors the code to abstract the origin of the src values
being a supplier function. That insulates the callers from having to
know the details and makes it easy to add new suppliers in future.

Test: m nothing
Bug: 142918168
Change-Id: I5cc7517c46cce96924c9f34ba1b046b468f7684a
2020-03-16 19:27:11 +00:00
Automerger Merge Worker
eb86255995 [automerger skipped] Merge "Add __ANDROID_SDK_VERSION__=<ver> macro" into rvc-dev am: e989a8cb42 -s ours
am skip reason: Change-Id I5102ab0c5086b5ad29d16ac45af55d32062167b4 with SHA-1 ccce2f2c23 is in history

Change-Id: Ied0ab92cb78c6213d6327111cff2e3a0551c4d83
2020-03-16 16:21:40 +00:00
Automerger Merge Worker
3965d79319 [automerger skipped] Merge "Make __ANDROID_APEX_<NAME>__ macro optional" into rvc-dev am: e1ededc88f -s ours
am skip reason: Change-Id Iec3ada4a97c7b228f2818563fa0e81b407f2715a with SHA-1 c87a059c88 is in history

Change-Id: I679a4ef6db1e5cde18bf2456c82707b8e1af43ab
2020-03-16 16:21:31 +00:00
TreeHugger Robot
e989a8cb42 Merge "Add __ANDROID_SDK_VERSION__=<ver> macro" into rvc-dev 2020-03-16 16:07:17 +00:00
Jooyung Han
61c4154ca6 Add __ANDROID_SDK_VERSION__=<ver> macro
sdk_version is passed for relevant variants.
If not specified or "current",
it maps to "10000" for platform variants, and
"min_sdk_version" of the apex for apex variants.

Bug: 150860940
Test: m (soong test)
      manually check build.ninja
Merged-In: I5102ab0c5086b5ad29d16ac45af55d32062167b4
Change-Id: I5102ab0c5086b5ad29d16ac45af55d32062167b4
(cherry picked from commit ccce2f2c23)

Exempt-From-Owner-Approval: cp from aosp
2020-03-16 16:07:07 +00:00
TreeHugger Robot
e1ededc88f Merge "Make __ANDROID_APEX_<NAME>__ macro optional" into rvc-dev 2020-03-16 16:06:49 +00:00
Jooyung Han
68e511e4fd Make __ANDROID_APEX_<NAME>__ macro optional
This is rarely used feature but cost alot for the local build and build
inra.

Bug: 150506627
Test: m
Merged-In: Iec3ada4a97c7b228f2818563fa0e81b407f2715a
Change-Id: Iec3ada4a97c7b228f2818563fa0e81b407f2715a
(cherry picked from commit c87a059c88)

Exempt-From-Owner-Approval: cp from aosp
2020-03-16 16:06:31 +00:00
Automerger Merge Worker
365043aeca [automerger skipped] apex: Deprecate legacy_android10_support prop am: 23b0adf4ce -s ours
am skip reason: Change-Id Iad90a239898f59456900ae7816b90379b1b43406 with SHA-1 5417f775e5 is in history

Change-Id: I34de470db197236b5f19ec68c9d905d44e1247a6
2020-03-16 13:33:09 +00:00