Commit Graph

16841 Commits

Author SHA1 Message Date
Treehugger Robot 0fb92346ac Merge "Update paths for libnative{bridge,loader}" 2019-11-07 10:15:31 +00:00
Jooyung Han 39edb6c6c1 VNDK APEX contains related *.libraries.txt files
These files were highly coupled with vndk version, so having them inside
the corresponding VNDK APEX is reasonable.

These files are used by linkerconfig and libnativeloader. In the future,
they reference these files from and VNDK APEX.

Bug: 141450808
Test: m com.android.vndk.current
Change-Id: I055a979d2636ddd8844a0afff81f6ba441f7965e
2019-11-07 16:47:38 +09:00
Jooyung Han 2216fb1f51 Make vndk*.libraries.txt as soong modules
Migrating from Make to Soong.

These files are generated by singleton and had to be defined as PREBUILT
modules in Make (system/core/rootdir/Android.mk)

Now, they are converted as soong modules.

To make things easier, a special kind of module 'vndk_libraries_txt' is
added which works like prebuilt_etc but its src file is generated by
soong.

Bug: 141450808
Test: m llndk.libraries.txt
Change-Id: Ia77e6af73f760fcd77020218c5bc37892b2cda1f
2019-11-07 15:12:03 +09:00
Jiyong Park 232e785b98 SDK snapshot is dist'ed
`m module_sdk dist` produces snapshots of all SDKs in the source tree.
A snapshot is a zip file consists of Android.bp, exported headers,
exported AIDL files, stubs for native libs and jars. The zip file is
expected to be downloaded from the build server and extracted to a
directory (which probably will be
/prebuilts/module_sdks/<module_name>/current).

Bug: 138182343
Test: m (sdk_test.go updated)

Change-Id: Idbe4bc24795fe08f26fc1cf7497028f9d162053a
2019-11-07 12:24:48 +09:00
Jiyong Park f28fc281a5 Merge "sdk modules are by default compile_multilib: "both""
am: b9a80a0716

Change-Id: Ida1b000a484594b9f64378be34b89a7bdf9617fd
2019-11-06 18:40:40 -08:00
Treehugger Robot b9a80a0716 Merge "sdk modules are by default compile_multilib: "both"" 2019-11-07 02:16:29 +00:00
Colin Cross c2557d1d56 Fix turbine classpath arguments
We were passing "--classpath foo.jar --classpath bar.jar" to turbine,
it now wants (and may always have expected?)
"--classpath foo.jar bar.jar".

Test: m checkbuild
Change-Id: Ib7e0ca64a34e236110f7b785d6a0fb51ed75567e
2019-11-07 02:05:06 +00:00
Dan Willemsen 0fa2f749f6 Merge "Add python3 embedded launcher support"
am: c48ea97c9c

Change-Id: I8fe0b9217c23291ab74ff1eff6f0d87d0a8d4feb
2019-11-06 17:02:25 -08:00
Steven Moreland 0c38dc0b44 Merge "bpfix: remove empty HIDL libs"
am: 8a70579037

Change-Id: Ie2e00be658543a73567d681f2ed9e31c4a9309fb
2019-11-06 16:57:01 -08:00
Treehugger Robot c48ea97c9c Merge "Add python3 embedded launcher support" 2019-11-07 00:54:38 +00:00
Treehugger Robot 8a70579037 Merge "bpfix: remove empty HIDL libs" 2019-11-07 00:42:28 +00:00
Colin Cross c228a7046f Silence dep-ann warnings
Silence the dep-ann warnings until there is an effort to do
something about them.

Test: m framework-minus-apex doesn't print dep-ann warnings.
Change-Id: Ic172e840dded4564fecfb91e96cba0c54358e20a
2019-11-07 00:19:54 +00:00
Fabien Sanglard eeb9ad6415 Merge "Fix Soong CMakeLists.txt generator"
am: 267e406830

Change-Id: I39e322d71930bc772be77f55ba493c8a38cd6cb0
2019-11-06 15:48:38 -08:00
Fabien Sanglard 267e406830 Merge "Fix Soong CMakeLists.txt generator" 2019-11-06 23:41:28 +00:00
Jaewoong Jung b711f5c058 Merge "Call shouldEmbedJnis only when needed."
am: c6f22282ff

Change-Id: I9d34336bb4d0c3b70c4685aede1a783f3718800c
2019-11-06 14:24:19 -08:00
Jaewoong Jung c6f22282ff Merge "Call shouldEmbedJnis only when needed." 2019-11-06 21:50:05 +00:00
Steven Moreland c0647eb9ee bpfix: remove empty HIDL libs
libhidltransport/libhwbinder are empty and disallowed in Android.bp
(motivation is ~4kb per empty library per process overhead).

Bug: 135686713
Test: bpfix
Change-Id: I964215ad35068465217af74c5ef1322b43476428
2019-11-06 11:35:55 -08:00
Ramy Medhat a64d8aecff Merge "Run non-RBE supported actions in the local pool when USE_RBE is set."
am: 75c82fb518

Change-Id: Idd880638a2cea475ee370deeea617da3d10c3b5d
2019-11-06 11:07:54 -08:00
Ramy Medhat 75c82fb518 Merge "Run non-RBE supported actions in the local pool when USE_RBE is set." 2019-11-06 18:36:18 +00:00
Adrian Roos 52974a500e Merge "API Lint: Archive lint errors"
am: 109f64766e

Change-Id: Ic16d058065fcc7a1b7aed0b828b0a462c84773ce
2019-11-06 07:08:14 -08:00
Orion Hodson 6341f01ed6 Update paths for libnative{bridge,loader}
Directories moved from system/core/ to art/.

Bug: 137364733
Test: m
Change-Id: I5ecf464dedeba0777ea3f465d133235bac9c7481
2019-11-06 13:39:46 +00:00
Adrian Roos 109f64766e Merge "API Lint: Archive lint errors" 2019-11-06 12:35:55 +00:00
Jeongik Cha 2cc570dc63 Enforce hidden apis usage in product(soong)
Only if PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE is set,
every app and java library in product cannot use hidden APIs anymore.

checkSdkVersion() checks if sdk_version of app and library is narrow enough,
checkLinkType() checks every library that app links agianst

Bug: 132780927
Test: m
Test: set PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE, and check whether build
error occurs.
Change-Id: Ic630503b875040f730feda4fef826ed6d71da111
2019-11-06 19:42:42 +09:00
Jiyong Park 100f3fd118 sdk modules are by default compile_multilib: "both"
Bug: 143948100
Test: m (sdk_test.go amended)
Change-Id: I7df1b96af49a6569012e44eeb3c0722fac63fa51
2019-11-06 16:34:15 +09:00
Jaewoong Jung 9a9d0361bf Call shouldEmbedJnis only when needed.
Test: app_test.go
Change-Id: I4351b0ba5e1e7c89f16b4c891fcfbabb5c90c8c8
2019-11-05 20:13:26 -08:00
Fabien Sanglard 33ca8080e5 Fix Soong CMakeLists.txt generator
Problem: Soong does not guarantee that the list of parameters will
be in individual strings. This means the CMakeLists generator can
receive as input:

  params = {"-isystem", "path/to/system"}

or it could receive:

  params = {"-isystem path/to/system"}

Solution: Normalize the list of parameters into a flattened list
of parameters where each parameters is in an individual string.

Fixes: 143378093
Test: None
Change-Id: I9bd1a2006a1cf0ba383f467748b6fd4eadef6866
2019-11-05 16:26:37 -08:00
Martin Stjernholm f4ed8df84d Recognize libdl_android as a Bionic library.
Necessary to create the symlinks from /system/lib{,64} to the Runtime APEX.

Test: build & boot
Bug: 135753770
Change-Id: I231b4ec48869843de233ebb7c2e4fc5a49e7288a
2019-11-06 00:22:37 +00:00
Ramy Medhat dd0418a4d4 Run non-RBE supported actions in the local pool when USE_RBE is set.
Bug: 143938974
Test: ran CTS build at -j500 successfully.
Change-Id: I55074bd67308cd716972e24fb56a20bc393d5d9d
2019-11-05 22:57:35 +00:00
Ivan Lozano b2df9f88eb Soong Rust source clean up.
Break up some of the longer lines in the Rust source and refactor the
TransformSrcto* functions to take fewer arguments.

Bug: N/A
Test: m -j crosvm.experimental
Change-Id: Ia0deb8bfe3e1bfd07ef35633e9a7e6f5e799b3a3
2019-11-05 12:16:46 -08:00
Pete Gillin abbcddaaf4 Switch to an OpenJDK 11 toolchain by default.
Prior to this change, the default was to use and OpenJDK 9 toolchain,
with the EXPERIMENTAL_USE_OPENJDK11_TOOLCHAIN=true environment
variable available to opt into OpenJDK 11. After this change, the
default is to use OpenJDK 11, with
EXPERIMENTAL_USE_OPENJDK11_TOOLCHAIN=false available to opt out.

This change affects:
 - The version of javac used.
 - The version of javadoc used.
 - The version of other tools used during the build process (e.g. jar,
   jmod, and jlink).
 - For Java bytecode executed on the host, the version of the java
   executable used, and so the versions of the JVM and the OpenJDK
   libraries in the system module (or bootclasspath).

This change does not affect:
 - The Java language level, i.e. the version of Java expected in
   source code (the -source option to javac) or the version of Java
   bytecode produced (the -target option to javac).
 - Anything to do with code execution on the device.

Bug: 131683177
Test: make java droid docs cts tests
Test: zcat out/verbose.log.gz | grep 'prebuilts/jdk/jdk[0-9]*'
Test: make RunBluetoothRoboTests RunCarSettingsLibRoboTests
Test: cts-tradefed help
Test: atest CtsHostTzDataTests
Test: atest CtsLibcoreTestCases
Change-Id: I09dc22f1af4d1f2d7d3b85c08cb0ed9a1105aaca
Merged-In: Iaae89ef25c92ec099575c026fc50e41da4e143e8
2019-11-05 11:33:58 +00:00
Sasha Smundak 4f34c7c160 Merge "Make the changes to emitXrefRule matching those in aosp/1145829"
am: af60d490ff

Change-Id: I8f0714bf0c35ae388d1d7456e344245402d4258e
2019-11-04 20:14:47 -08:00
Inseob Kim 44df62da53 Merge "Fix and generate vndk snapshot entirely in Soong"
am: fe0c50e0d0

Change-Id: I1e1c5238214bd39ee4ebfa78f80903ce6ba8a5cb
2019-11-04 20:12:52 -08:00
Treehugger Robot af60d490ff Merge "Make the changes to emitXrefRule matching those in aosp/1145829" 2019-11-05 03:50:28 +00:00
Treehugger Robot fe0c50e0d0 Merge "Fix and generate vndk snapshot entirely in Soong" 2019-11-05 03:48:51 +00:00
Dan Willemsen 8d4d7bee6d Add python3 embedded launcher support
Test: m par_test{,3}; build/soong/python/tests/runtest.sh
Change-Id: I9c0fac9e2947616fdeedbfc55026dc3065966e71
2019-11-04 19:48:19 -08:00
Jiyong Park 8dabf70ec2 Merge "-l option soong_zip can accept a file having space separated list"
am: f66a280354

Change-Id: Ide7209e520012eaa60c912fb20ffc4fefedd707b
2019-11-04 18:21:02 -08:00
Treehugger Robot f66a280354 Merge "-l option soong_zip can accept a file having space separated list" 2019-11-05 02:14:48 +00:00
Ivan Lozano 4a66bfdb7a Merge "Enforce correct rust library file names."
am: 5a4b36499d

Change-Id: I0c65096e878642454b0f111ce72f64de183be963
2019-11-04 18:07:00 -08:00
Treehugger Robot 5a4b36499d Merge "Enforce correct rust library file names." 2019-11-05 01:54:21 +00:00
Sasha Smundak 09950a4f4f Make the changes to emitXrefRule matching those in aosp/1145829
Test: build kzip
Bug: 121267023
Change-Id: Id3a70d113dd7c24071cbb7cbfbf138527991cb77
2019-11-04 16:35:32 -08:00
Colin Cross 8177ad2932 Add GlobWithDeps to MakeVarsContext
It is safe to use GlobWithDeps in MakeVarsContext, the globSingleton
is registered in boostrap.Main, which runs after all the Soong
singletons (including makeVarsSingleton) are registered.

Bug: 143324390
Test: m checkbuild
Change-Id: I2edf915c666bd5db535c761bb645a48c4f573a65
2019-11-04 10:27:48 -08:00
Adrian Roos 3b8f1cda45 API Lint: Archive lint errors
Adds reported lint errors to dist. This lets us track them and
build tooling on top.

Bug: 138440867
Test: make dist droid; ls -l out/dist/apilint
Change-Id: I75629e3d9e1a53d161d844dfac121a5998429e04
2019-11-04 19:04:52 +01:00
Ivan Lozano ad8b18b872 Enforce correct rust library file names.
rustc expects libraries and proc_macro filenames to conform to
a particular format, alphanumeric with underscores and lib${crate_name}.*.
Enforce this with a check when getStem() is called.

This makes the crate_name property required for proc_macros and
libraries. This also removes the notion of a default crate name derived
from the module name. It's not needed for binaries, so this won't impact
them.

Bug: 143579265
Test: m -j crosvm.experimental
Change-Id: I2770cf7d02dd4291c3d240d58d242b940098dcee
2019-11-04 09:20:08 -08:00
Ulyana Trafimovich 2bbb569b08 Merge "Disable dexpreopt on targets that do not include default ART config."
am: 940ef19f77

Change-Id: I4981e09708b328b3d6f5fbc61907dea39c4dcba6
2019-11-04 04:20:02 -08:00
Jiyong Park 29081e311a Merge "stem property of java modules are propagated to Make"
am: 5622d5351d

Change-Id: Ib952ed36c96b814ed5ca983ea93cdde65d5f3ffd
2019-11-04 04:08:28 -08:00
Ulyana Trafimovich 940ef19f77 Merge "Disable dexpreopt on targets that do not include default ART config." 2019-11-04 12:04:04 +00:00
Jiyong Park 5622d5351d Merge "stem property of java modules are propagated to Make" 2019-11-04 09:46:42 +00:00
Inseob Kim 242ef0c4de Fix and generate vndk snapshot entirely in Soong
- VNDK snapshot now respects stem and suffix.
- ld.config.txt is removed from snapshot as linkerconfig has become default.
- Soong builds entire snapshot, and make just calls dist-for-goals.

Bug: 142589718
Test: build and install snapshot
Test: development/vndk/snapshot/update.py with past version of snapshot
Change-Id: Id1ed658c22bb2e41c0ee50d1fe2a97924a76d7dc
2019-11-04 17:03:25 +09:00
Jiyong Park 04bbf98e06 -l option soong_zip can accept a file having space separated list
-l option of soong_zip is used to specify the list of input files that
should be zipped. However, it only accepted newline-separated list in the
file. This prevented us from using a rspfile as paths in rspfile are
space-separated in a single line. Fixing the problem by splitting the
file content by any unicode whitespace character including newline and
space.

Test: zip_test
Change-Id: Iba572109e30c01540eacf20bd2794ba60c870fa3
2019-11-04 14:23:07 +09:00
Inseob Kim 3af01a3fc9 Merge "Fix vendor variants generation of vndk"
am: f68f98eeb6

Change-Id: I619ac38162fafdd300902a3deccfc5eaa9dabd8a
2019-11-03 18:10:52 -08:00