Commit Graph

2576 Commits

Author SHA1 Message Date
Bob Badour
74fab31712 Export soong license data to make.
See: http://go/android-license-checking-in-soong-v2-design

Bug: 151953481
Bug: 151177513
Bug: 67772237

Change-Id: If9d661dfcaa732c459d38d8ad7ec4a0e540846b8
2021-01-05 08:42:48 -08:00
Jiyong Park
4da079732d Add TARGET_FORCE_APEX_SYMLINK_OPTIMIZATION
The APEX symlink optimization is a build-time trick to save the
storage/RAM usage of APEX by replacing some files in APEX with symlinks
to the files in the system partition. The optimization however is
automatically turned off for 'updatable: true' APEXes because doing the
optimization for them will hide the sys-health implication until when
the APEXes are built unbundled (i.e. prebuilt) and thus the
optimization is impossible.

TARGET_FORCE_APEX_SYMLINK_OPTIMIZATION forcibly disables the safety net.
When it is set to true, the symlink optimization is done regardless of
the 'updatable' property. This is useful for some of the devices like Go
where most APEXes (even the 'updatable: true' ones) should be
effectively non-updatable.

Bug: 175630508
Test: TARGET_FORCE_APEX_SYMLINK_OPTIMIZATION=true m and check that
updatable APEXes have symlinks to system libs

Change-Id: I26f72e5d5ebccc2d1e09c2a2f743db14937eb39a
2021-01-05 21:01:11 +09:00
Justin Yun
8a2600cfc9 Create vndkproduct.libraries.txt
Some VNDKs will be available to product modules by adding
'product_available' property. These VNDK libs will be listed in
vndkproduct.libraries.txt and tracked by the build system for the
changes. The product available VNDK list will be frozen by the
release process.

Bug: 174323911
Test: build
Change-Id: Ie1b085851413a8f2273925fefdc14fec3bfc7892
2021-01-05 20:05:39 +09:00
Anton Hansson
880109bd68 Allow-list libderive_sdk
This is an apex-safe library.

Bug: 176574970
Bug: 173188089
Test: m apex-allowed-deps-check
Change-Id: Ia789ca673a43339c95551dc6fbff1c4ca8e2ec16
Merged-In: Ia789ca673a43339c95551dc6fbff1c4ca8e2ec16
2021-01-01 16:55:06 +00:00
Anton Hansson
953545ff89 [automerge] Allow-list libderive_sdk 2p: ccf013df91
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/soong/+/13271688

Change-Id: Ic4cca7ae4ea2dc56553f4e939267c1b3ca3da473
2020-12-31 12:10:27 +00:00
Anton Hansson
ccf013df91 Allow-list libderive_sdk
This is an apex-safe library.

Bug: 176574970
Bug: 173188089
Test: m apex-allowed-deps-check
Change-Id: Ia789ca673a43339c95551dc6fbff1c4ca8e2ec16
(cherry picked from commit a899365faff54afc352114ca4c51fccf634d75d8)
2020-12-31 12:10:00 +00:00
Anton Hansson
c729d352ac Add native modules build utils to allow list
This is a backward-compatible library.

Test: m with dep
Merged-In: Id68a00efe8973e7660ce2e53d42b7741c9f22a5c
Change-Id: Id68a00efe8973e7660ce2e53d42b7741c9f22a5c
(cherry picked from commit 1e1e823895)
2020-12-30 13:57:45 +00:00
Cindy Zhou
e0f80df81f Skip apex dep check when sanitizer diag is enabled am: 18417cbd72 am: 262139d285 am: c8680d0691
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1523578

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4bb1c055b4e7da0ebe1ff02d2eeb9df593cc3472
2020-12-29 18:12:50 +00:00
Cindy Zhou
c8680d0691 Skip apex dep check when sanitizer diag is enabled am: 18417cbd72 am: 262139d285
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1523578

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8bf285bc3841f204941cf1d9c45203991cd40294
2020-12-29 17:59:10 +00:00
Cindy Zhou
18417cbd72 Skip apex dep check when sanitizer diag is enabled
To avoid adding ubsan to the apex allowed_dep list, this commit adds a
check on depedency tags to see if apex check should be skipped.
The check is only used on sharedLib dependencies when diag mode are enabled
for sanitizers.

Bug: 158010610

Test: make build for aosp-sargo and aosp_cf_x86_phone-userdebug

Change-Id: I3d7dbb70d8c80ffae1854819cf8cf9e6b0b15c00
2020-12-29 14:48:37 +00:00
Jaewoong Jung
a375fe863a Merge "Break up app.go." am: 8bfb63c5a9 am: 1863d9abf8 am: 9aded01f3a
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1533144

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3fee391a2dcb19cffea855b44de33a9ecb329a26
2020-12-28 19:11:58 +00:00
Jaewoong Jung
9aded01f3a Merge "Break up app.go." am: 8bfb63c5a9 am: 1863d9abf8
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1533144

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I85fe91320bfcf57af66ec375da732625d20aaf91
2020-12-28 18:57:12 +00:00
Jaewoong Jung
8bfb63c5a9 Merge "Break up app.go." 2020-12-28 17:50:44 +00:00
lucaslin
38e1dc9171 Add netd-client for tethering apex and update allowed-deps.txt
Split some code from Tethering apex to frameworks/libs/net and
have a new library(netd-client) for it. So basically, netd-client
contains code which was already in Tethering apex.
netd-client also links to netd_event_listener_interface-java, so
netd_event_listener_interface-java is also added into
allowed-deps.txt.

Bug: 174837473
Test: Manual test and check the log.
Change-Id: I31a467f02a8f3049e005d771d61f3d990ac9b8ba
2020-12-25 16:39:33 +08:00
Anton Hansson
496ea93244 Merge "Add attribute to disable last-api compat tracking" am: 74c8436ce0 am: 325936250d am: de5d8fb877
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1534344

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I77051ff3d3608e69284d707cb8353ba530dbc957
2020-12-23 10:19:04 +00:00
Anton Hansson
de5d8fb877 Merge "Add attribute to disable last-api compat tracking" am: 74c8436ce0 am: 325936250d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1534344

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic3bd507f68636d3cd41c747ab22b6121417f1970
2020-12-23 09:45:00 +00:00
Anton Hansson
74c8436ce0 Merge "Add attribute to disable last-api compat tracking" 2020-12-23 09:05:46 +00:00
Chong Zhang
e971fdec9a Merge "Allow transcoding libs in apex" 2020-12-23 03:28:08 +00:00
TreeHugger Robot
5f57688498 Merge "Remove libstagefright_bufferqueue_help from apex.go" 2020-12-23 03:15:23 +00:00
Jaewoong Jung
de6671062a Merge "Remove unnecessary snake case variables." am: e794b1e302 am: ce131b6fcf am: e3ec6f723e
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1533880

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2e481c45e9fcc2e0023c03aed89320c49678dc86
2020-12-23 02:15:09 +00:00
Jaewoong Jung
e3ec6f723e Merge "Remove unnecessary snake case variables." am: e794b1e302 am: ce131b6fcf
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1533880

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I26021fd6bd84ccf36b877eec0a35667446e3ebd4
2020-12-23 02:01:15 +00:00
Jaewoong Jung
18aefc1977 Remove unnecessary snake case variables.
Test: m nothing + TreeHugger
Change-Id: I99f7162944daa6c57c6ae4763261e108bb5cb6b1
2020-12-22 12:38:35 -08:00
Colin Cross
091e094210 Merge changes from topic "llndk_cc_library" am: 1f8c272984 am: f0dee605eb am: 4ee7ea6517
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1532861

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Icdaf99352b87880777e36ec8c1a3a3479b03c715
2020-12-22 20:07:50 +00:00
Colin Cross
4ee7ea6517 Merge changes from topic "llndk_cc_library" am: 1f8c272984 am: f0dee605eb
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1532861

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iba16d4c832f6daa38bb93510f46c9915cb23dc42
2020-12-22 19:43:10 +00:00
Colin Cross
1f8c272984 Merge changes from topic "llndk_cc_library"
* changes:
  Don't rewrite LLNDK dependencies with .llndk suffix
  Don't strip stub libraries
2020-12-22 18:55:34 +00:00
Mohammad Samiul Islam
a8008f9595 Add property to apex soong modules to forcefully compress an APEX
This makes creating compressed APEX artifacts for testing simpler.

Bug: 172911820
Test: atest apex_compression_platform_tests
Change-Id: I77b8bea4662c273420e7b37d5fde181b86c9cb78
2020-12-22 10:47:50 +00:00
Colin Cross
127bb8b9f6 Don't rewrite LLNDK dependencies with .llndk suffix
Rewriting LLNDK dependencies with .llndk suffix requries referencing
a global data structure to determine if a given library is an LLNDK
library and therefore needs the .llndk suffix.  References to
global data structures from mutators must be removed to support
incremental Soong analysis.  Instead, move the LLNDK stubs rules
into the vendor variant of the implementing cc_library so that
the original name can be used.

As an incremental step, the llndk_library modules are left in
place, and the properties are copied into the cc_library via
the dependency specified by the llndk_stub property.  A followup
will move the LLNDK properties directly into the cc_library and
delete the llndk_library modules.

The global list of LLNDK libraries is kept for now as it is used
to generate the vndk.libraries.txt file.

Bug: 170784825
Test: m checkbuild
Test: compare Soong outputs
Test: all Soong tests
Change-Id: I2a942b21c162541a49e27b2e5833c9aebccff1d0
2020-12-21 17:53:30 -08:00
Jaewoong Jung
f9b44657c8 Break up app.go.
Test: m nothing + TreeHugger
Change-Id: I64c6d7f10530c424bc282d8111dfaf9159426f00
2020-12-21 12:31:51 -08:00
Anton Hansson
dff2c78a20 Add attribute to disable last-api compat tracking
Setting this to true by default is dangerous as it can mask bugs. Create
a dedicated attribute for java_sdk_library to enable this behavior
instead. The default will be flipped in a future CL when all the current
offenders have been fixed.

Fix all the tests to have the right API files.

Bug: 176092454
Test: m nothing
Change-Id: Ieab94bcb74abf8d018365a56fb447fe3dbd46957
2020-12-21 17:25:30 +00:00
Colin Cross
6b26116774 Merge "Fix NDK build in downstream branches" am: bad07a2fb9 am: 1f31a3e61b am: cba3514b6e
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1532267

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7e88681f3f74d264d906ea09ef6667fb48c1045b
2020-12-20 06:33:48 +00:00
Colin Cross
cba3514b6e Merge "Fix NDK build in downstream branches" am: bad07a2fb9 am: 1f31a3e61b
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1532267

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie8358d59d1807c56930d4938ab26067afd0a5172
2020-12-20 06:20:51 +00:00
Colin Cross
e6a83e65d1 Fix NDK build in downstream branches
The NDK build in downstream branches with prebuilt apexes break
with multiple rules to copy the apex after
I8038ed5c6f05c989ac21ec06c4552fb3136b9a7a renamed SkipInstall to
HideFromMake, which is shadowed by an existing HideFromMake method.
Call through from the existing HideFromMake as a quick-fix for the
build.

Fixes: 175911330
Test: NDK build
Change-Id: Id475671d5dad888913bfb1af2e4be1f2454c3211
2020-12-17 18:22:34 -08:00
TreeHugger Robot
8616749acd Merge "Add audiopolicy-aidl-unstable-cpp to media Apex" 2020-12-17 23:48:27 +00:00
Colin Cross
088fc71a70 Merge changes from topic "sbox_tools" am: 97a1be6e7b am: 62bc8d2316 am: cc288ca3f4
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1531944

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Icc640676d59a71e70fec6124fd8a4af42bd1be26
2020-12-17 23:30:16 +00:00
Colin Cross
cc288ca3f4 Merge changes from topic "sbox_tools" am: 97a1be6e7b am: 62bc8d2316
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1531944

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1788ff6407a03242902d572eb747abfa538d9578
2020-12-17 23:16:31 +00:00
Colin Cross
a9c8c9f145 Call ctx.InstallFile for uninstallable cc modules
SkipInstall is actually primarily used to prevent making a module
visible to Make, rename it and add new SkipInstall that actually
skips installation without affecting Make.

Call c.SkipInstall() for uninstallable cc modules to allow calling
c.installer.install, which will collect PackagingSpecs for
uninstallable cc modules, allowing them to be used by genrules.

Bug: 124313442
Test: m checkbuild
Change-Id: I8038ed5c6f05c989ac21ec06c4552fb3136b9a7a
2020-12-17 10:02:18 -08:00
Orion Hodson
d43a767496 apex/allowed_deps: add libnetjniutils
Bug: 158749603
Test: m
Change-Id: I00a8d61eebba5ae43f2338822854264dfabad4af
Merged-In: I00a8d61eebba5ae43f2338822854264dfabad4af
2020-12-17 09:58:38 +00:00
Treehugger Robot
7b08e1cab5 Merge "arch specific dependencies are supported for apex" am: f1c48afc31 am: 502066e794 am: 0596c78a7e
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1527546

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I577ba1ea4f0d9a2ee9e91e60291aa8b1b9702826
2020-12-17 02:02:52 +00:00
Treehugger Robot
0596c78a7e Merge "arch specific dependencies are supported for apex" am: f1c48afc31 am: 502066e794
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1527546

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iac527a34246fd30461f70e82202b22d78a079252
2020-12-17 01:24:14 +00:00
TreeHugger Robot
e9cebc231c Merge "Revert "Revert "Update minSdkVersion for libstagefright_bufferqu..."" 2020-12-17 00:41:03 +00:00
Treehugger Robot
f1c48afc31 Merge "arch specific dependencies are supported for apex" 2020-12-17 00:15:26 +00:00
Chavi Weingarten
1466d28516 Merge "Added dependant libaries to apex for ExtServices" 2020-12-16 19:46:46 +00:00
Chong Zhang
9a7b28b7c4 Revert "Revert "Update minSdkVersion for libstagefright_bufferqu..."
Revert submission 13221664-revert-12527722-use_vendor_false-OGKZQWDHHF

Reason for revert: reland with fix
Reverted Changes:
I00340dbd8:Revert "Remove libbinder from apex build"
I04e62a389:Revert "Set use_vendor to false for media apex"
Idda752838:Revert "Update minSdkVersion for libstagefright_bu...

Change-Id: Ic6003a405c34ec3242b55f5e20b571f3c128c07b
2020-12-16 18:16:09 +00:00
Treehugger Robot
4f7c2886d2 Merge "Always track transitive dependencies for host." am: abada78f05 am: dc6328e6f1 am: 431e41e3b8
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1531398

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If01116425e7e5baeb81766d8540c8a44e8fd1674
2020-12-16 14:12:49 +00:00
Treehugger Robot
431e41e3b8 Merge "Always track transitive dependencies for host." am: abada78f05 am: dc6328e6f1
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1531398

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I83c971512e228e8b2742fbad566cb946774f1565
2020-12-16 13:53:29 +00:00
Treehugger Robot
abada78f05 Merge "Always track transitive dependencies for host." 2020-12-16 13:14:28 +00:00
Treehugger Robot
2778154a44 Merge "versioning macro is exported from prebuilt stubs as well" am: 6a8c18a89b am: a781b0a384 am: 7a162fecb3
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1527540

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4e4ca257dc6b58f34dc42a918d3af44f46238456
2020-12-16 03:20:56 +00:00
Treehugger Robot
7a162fecb3 Merge "versioning macro is exported from prebuilt stubs as well" am: 6a8c18a89b am: a781b0a384
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1527540

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iaa46646bb30f94b53281d29849e12d2c1ccba038
2020-12-16 02:33:34 +00:00
Martin Stjernholm
f2635ec434 Always track transitive dependencies for host.
This fixes a regression in https://r.android.com/1515154 when building
the host ART APEX (com.android.art.host).

Test: art/build/apex/runtests.sh
Bug: 166468760
Change-Id: I39a00019b7bfa77a865e7287c66add3566b34d87
2020-12-16 01:34:43 +00:00
Treehugger Robot
6a8c18a89b Merge "versioning macro is exported from prebuilt stubs as well" 2020-12-16 01:31:10 +00:00