Commit Graph

3345 Commits

Author SHA1 Message Date
Yi Kong
908b3fa509 Merge "Use no_libcrt property instead of hard coding projects to exclude"
am: 02e4b568dc

Change-Id: I7e143026e60cb2263ce2a37b5bd856ea133ac128
2019-02-13 14:59:10 -08:00
Jiyong Park
abda0eb76b Remove prefer_sanitize.* properties
The properties are no longer required as an APEX module is mutated with
required sanitizers which are gathered by scanning the sanitizers that
are enabled for its direct dependencies.

Bug: 124128094
Test: m on marlin
The extractor libs are found under /system/apex/com.android.media

Change-Id: I55961d400dcbac067a5c0dcecb90e399d4991a70
2019-02-13 20:54:25 +09:00
Yi Kong
19408a3aaa Use no_libcrt property instead of hard coding projects to exclude
Test: m checkbuild
Change-Id: Id4d3605a5cd45dd43b752a9d270df0a20024dbd0
2019-02-12 09:41:18 -08:00
Jiyong Park
004e8d00fe Merge "Static variant of a stubs lib is correctly tracked" am: eebdf43337 am: d563bc7b92
am: 5c16c31be5

Change-Id: I4ce6595041cf9f57ae01235b51b90f018010977d
2019-02-08 21:16:08 -08:00
Jiyong Park
5c16c31be5 Merge "Static variant of a stubs lib is correctly tracked" am: eebdf43337
am: d563bc7b92

Change-Id: I26d23ed0e19fc0ca40c28c70a14deab2ed0ea044
2019-02-08 21:12:05 -08:00
Jiyong Park
d563bc7b92 Merge "Static variant of a stubs lib is correctly tracked"
am: eebdf43337

Change-Id: I431341b18a2601b25fa459c0fb108ce9ae36b860
2019-02-08 21:08:03 -08:00
Treehugger Robot
eebdf43337 Merge "Static variant of a stubs lib is correctly tracked" 2019-02-09 04:56:07 +00:00
Jiyong Park
b32e622293 Merge "Handle the case when a symbol is annotated with "# apex vndk"" am: 3415780021 am: 11e6e5c76c
am: afdb54813e

Change-Id: Ic63b1ee87e9f3d958ea67945a517a2aba64a2b60
2019-02-08 11:05:39 -08:00
Jiyong Park
afdb54813e Merge "Handle the case when a symbol is annotated with "# apex vndk"" am: 3415780021
am: 11e6e5c76c

Change-Id: I91c072425b69efbc96b49235c3b4f7e7d3846218
2019-02-08 11:01:39 -08:00
Jiyong Park
11e6e5c76c Merge "Handle the case when a symbol is annotated with "# apex vndk""
am: 3415780021

Change-Id: I2567afe4afab0f9a71d87f3cafffb21f35fdf0a0
2019-02-08 10:57:34 -08:00
Treehugger Robot
3415780021 Merge "Handle the case when a symbol is annotated with "# apex vndk"" 2019-02-08 18:46:44 +00:00
Jiyong Park
1431765f8d Handle the case when a symbol is annotated with "# apex vndk"
This change fixes a bug that a symbol is omitted for apex (or vndk) when
it is annotated with "# vndk apex" (or "# apex vndk).

Bug: 123349183
Test: python3 test_gen_stub_libs.py

Change-Id: I344d6e70732bae8877cb16bbe881edb79fe90670
2019-02-08 20:36:26 +09:00
Colin Cross
32fd5947ca Make MakeVarsContext a PathContext am: 65494b962b am: e5bc0d6253
am: 1c15057b94

Change-Id: I3521fec124f35017812ed2c3faf9fb7e46f73a3a
2019-02-07 18:21:45 -08:00
Colin Cross
1c15057b94 Make MakeVarsContext a PathContext am: 65494b962b
am: e5bc0d6253

Change-Id: I0c2daaefb69f8b9bcbb2e4a3ce68858d85e64baa
2019-02-07 18:04:19 -08:00
Colin Cross
e5bc0d6253 Make MakeVarsContext a PathContext
am: 65494b962b

Change-Id: I1a2eab146c5f5327591c44faf224b562aac86610
2019-02-07 17:45:24 -08:00
Colin Cross
65494b962b Make MakeVarsContext a PathContext
Expose all of SingletonContext to makeVarsContext, and then export
the subset of it that is used through MakeVarsContext.SingletonContext,
plus what is necessary for PathContext, directly through
MakeVarsContext.

Test: m checkbuild
Change-Id: Ie00f36e577fe110b6fa03b901da489d8547773c6
2019-02-07 22:31:04 +00:00
Aurimas Liutikas
b74157dfb3 Merge "Update NDK library list" am: 7cf14099b7 am: aa6f7adb24
am: 812dde86dd

Change-Id: I0e03ab3ce27746fcc362c2773a81b96370b8d8a7
2019-02-07 13:05:20 -08:00
Aurimas Liutikas
812dde86dd Merge "Update NDK library list" am: 7cf14099b7
am: aa6f7adb24

Change-Id: Ibe65dc99dde67305087b6410715a40bc52bd6c55
2019-02-07 13:01:16 -08:00
Aurimas Liutikas
aa6f7adb24 Merge "Update NDK library list"
am: 7cf14099b7

Change-Id: I2963a3359f1e20f67990ba0473340ad70bbcecbe
2019-02-07 12:57:13 -08:00
Jiyong Park
e4bb986106 Static variant of a stubs lib is correctly tracked
cc.Module.staticVariant is used to track the corresponding static
variant of a shared variant. This change fixes a problem that the
staticVariant field is not correctly set when the lib is with stubs:
{...}. This was happening because the staticVariant was set by adding
dependency from shared variant to static variant to reuse object files.
However, for a lib with stubs, the dependency was not created because it
does not make sense to share object files for stubs lib where source
code is auto-generated.

Fixing the issue by adding dependency to the static variant with a
different dependency tag whose only purpose is to set staticVariant
field.

Bug: 122885634
Test: m (cc_test amended)
Change-Id: I7f97cbb4c4a28bf9a93839d3b91ee140835aa6af
2019-02-08 00:47:46 +09:00
Dan Willemsen
7b515764c7 Return early after NDK->non-NDK library link error am: 155d17c1da am: 63833a3882
am: 71c27ff72b

Change-Id: I3d167340cefe4c67ff1efcc3be8ac7b4047c4f0a
2019-02-06 23:06:39 -08:00
Dan Willemsen
71c27ff72b Return early after NDK->non-NDK library link error am: 155d17c1da
am: 63833a3882

Change-Id: Ib83cad7611db8800e2cbee32c4a6126de8c1f472
2019-02-06 23:02:37 -08:00
Dan Willemsen
63833a3882 Return early after NDK->non-NDK library link error
am: 155d17c1da

Change-Id: I8d11bf8c71a3df036e5545f6d796ce970813e123
2019-02-06 22:58:33 -08:00
Dan Willemsen
62b9cf952c Update NDK library list
Apparently this isn't autogenerated based on the list of ndk_library
modules?

Fixes: 124019854
Test: try to use libsync from a cc_library with sdk_version: "current"
Change-Id: I5016e1b7d77ed9255bf4b185c168efe8d0b73d12
2019-02-06 18:41:27 -08:00
Dan Willemsen
155d17c1da Return early after NDK->non-NDK library link error
Otherwise the code after this assumes that the "to" library is an NDK
library and panics when it isn't.

Bug: 124019854
Test: trigger error, no longer see panic
Change-Id: I88d10e8d882285e24b4f42d0cf85c2d658348617
2019-02-06 18:30:02 -08:00
Jiyong Park
c6e05cb4dc Don't emit symbol for stubs libraries am: 47e4fcb6d3 am: 8893e6af05
am: 5db763406b

Change-Id: I3ce1a62c241f640ad235a25df6b832266f2be3f2
2019-02-06 05:59:21 -08:00
Jiyong Park
5db763406b Don't emit symbol for stubs libraries am: 47e4fcb6d3
am: 8893e6af05

Change-Id: Id2936354ab538814e6e0d6e23b24f01134eb523d
2019-02-06 05:55:18 -08:00
Jiyong Park
8893e6af05 Don't emit symbol for stubs libraries
am: 47e4fcb6d3

Change-Id: I1a3eb5401c79881469d290c5bc959ef96be725a3
2019-02-06 05:51:18 -08:00
Jiyong Park
47e4fcb6d3 Don't emit symbol for stubs libraries
The stubs libraries are buildtime-only artifacts. Since they are not
used at runtime, no need to emit symbol files for them

Test: m
Change-Id: I54410e9289b4bf61e23581386b56ade8fba18dfa
2019-02-06 22:40:29 +09:00
Colin Cross
23db3437ec Merge changes Ifcb338e6,Ie509ed80,I270fed60,Id825cb75,I92a963bd am: cc2d11961c am: 9053375b93
am: 31cabeea1c

Change-Id: I3abcc60539de84d3365df989de341b4bb3e1db09
2019-02-05 21:26:50 -08:00
Colin Cross
31cabeea1c Merge changes Ifcb338e6,Ie509ed80,I270fed60,Id825cb75,I92a963bd am: cc2d11961c
am: 9053375b93

Change-Id: Icb5045465df7ec4fd82583b125f8c40883ec1c70
2019-02-05 21:22:47 -08:00
Colin Cross
9053375b93 Merge changes Ifcb338e6,Ie509ed80,I270fed60,Id825cb75,I92a963bd
am: cc2d11961c

Change-Id: Iede0d74591eb60148ddd7c187b403ece2fc8dde5
2019-02-05 21:19:03 -08:00
Colin Cross
571cccfcbc Prepare for a type-safe OnceKey
Add an opaque OnceKey type and use it for all calls to Once in
build/soong.  A future patch will convert the arguments to
Once* to OnceKey once users outside build/soong have been updated.

Test: onceper_test.go
Change-Id: Ifcb338e6e603e804e507203c9508d30ffb2df966
2019-02-06 01:52:41 +00:00
Dan Willemsen
747ccbccf5 Merge "Stop exporting the windows toolchain to Make" am: a55b12bec2 am: 959223fdb1
am: 14cda277e3

Change-Id: I7f8103ff5a4adb749eee19eaebf018ce9f4780b3
2019-02-05 13:24:36 -08:00
Dan Willemsen
14cda277e3 Merge "Stop exporting the windows toolchain to Make" am: a55b12bec2
am: 959223fdb1

Change-Id: I36d69ff9c13492e8c83335d2381020409e7e579d
2019-02-05 13:19:29 -08:00
Dan Willemsen
959223fdb1 Merge "Stop exporting the windows toolchain to Make"
am: a55b12bec2

Change-Id: I1ffb84b75a0916124ae161a0863994c90d97d522
2019-02-05 13:11:11 -08:00
Dan Willemsen
a55b12bec2 Merge "Stop exporting the windows toolchain to Make" 2019-02-05 20:45:27 +00:00
Kostya Kortchinsky
2d569efc59 Merge "Add option to disable Scudo globally [Soong]" am: 66b1193d55
am: ff2fe20afc

Change-Id: Ifb7900ca08e0791ca80534467c63c2a27567c7be
2019-02-05 06:59:40 -08:00
Kostya Kortchinsky
ff2fe20afc Merge "Add option to disable Scudo globally [Soong]"
am: 66b1193d55

Change-Id: I38866e353d0a66eea0b73f13b43d593946775d39
2019-02-05 06:55:29 -08:00
Kostya Kortchinsky
66b1193d55 Merge "Add option to disable Scudo globally [Soong]" 2019-02-05 14:45:39 +00:00
Jiyong Park
41e60c7c1e APEX respects relative_install_path am: b7c24df220 am: 2121073534
am: 4b0fb137e9

Change-Id: I5bb6d1115d8cd54700f7e3b40f8d1d2b4eaf952e
2019-02-05 04:25:26 -08:00
Jiyong Park
4b0fb137e9 APEX respects relative_install_path am: b7c24df220
am: 2121073534

Change-Id: Ia3c1044025970900c541f3810ad125bba22699e8
2019-02-05 04:19:13 -08:00
Jiyong Park
2121073534 APEX respects relative_install_path
am: b7c24df220

Change-Id: I78a018e6116ddb88025b98d66f442ce36776a4c0
2019-02-05 04:14:58 -08:00
Jiyong Park
b7c24df220 APEX respects relative_install_path
relative_install_path for cc_library is respected by APEX.

relative_install_path for cc_binary is not yet respected because doing
it will break the path to the dynamic linker in the runtime APEX.
That change should be done along with changes in init, bionic, etc.

Bug: 123721777
Test: m (apex_test.go amended)
Change-Id: I855f8eda0d4255d563861ac96d0d3e2c669e9a2a
2019-02-05 21:00:41 +09:00
Stephen Hines
316d57ee4f Merge "Use llvm-{strip,objcopy} by default" am: 363cab0bea am: 1d24874e86
am: 12c2a219a9

Change-Id: I45b2b435afc0b8a258dbbbc34dd8f8a68a25c6fe
2019-02-04 21:32:43 -08:00
Stephen Hines
12c2a219a9 Merge "Use llvm-{strip,objcopy} by default" am: 363cab0bea
am: 1d24874e86

Change-Id: Id0d5d60e9e24a578720453ff8c8267a3ea11d0bc
2019-02-04 21:06:30 -08:00
Stephen Hines
1d24874e86 Merge "Use llvm-{strip,objcopy} by default"
am: 363cab0bea

Change-Id: I313eb1919e524d31cd470791fee0ef2ea29ad86f
2019-02-04 19:19:38 -08:00
Stephen Hines
363cab0bea Merge "Use llvm-{strip,objcopy} by default" 2019-02-05 03:13:14 +00:00
Kostya Kortchinsky
d5275c8657 Add option to disable Scudo globally [Soong]
This adds an option in Soong to turn off Scudo globally.

Bug: 123228023
Test: enable Scudo for tombstoned, lunch marlin_svelte-eng && m -j, and
make sure that Scudo is not linked in
out/target/product/marlin/system/bin/tombstoned
Test: enable Scudo for tombstoned, lunch marlin-userdebug && m -j, and
make sure that Scudo is linked in
out/target/product/marlin/system/bin/tombstoned

Change-Id: I0b0992446953fc4074bde94507b66f92764c8143
Merged-In: I0b0992446953fc4074bde94507b66f92764c8143
2019-02-04 12:29:17 -08:00
Colin Cross
5e24ba9886 resolve merge conflicts of dec157bd6c to master
Bug: None
Test: treehugger
Change-Id: I701d7a4ee893eb4113a48eaee9930eceec478a29
2019-02-04 10:09:01 -08:00