Commit Graph

7616 Commits

Author SHA1 Message Date
Colin Cross
fca70ee9af Add core-lambda-stubs to classpath am: 86a60ae6fa
am: d4ef9dd148

Change-Id: I30d8fe073e9956725d91b239138016adc52d4f0a
2018-05-30 16:00:01 -07:00
Colin Cross
d4ef9dd148 Add core-lambda-stubs to classpath
am: 86a60ae6fa

Change-Id: If6db07e1f33e35015f13b443c9619f34f03552b5
2018-05-30 15:55:56 -07:00
Colin Cross
86a60ae6fa Add core-lambda-stubs to classpath
Add core-lambda-stubs to the bootclasspath for modules with no
sdk_version or with sdk_version: "current", and to the classpath
for modules that specify a specific sdk_version number.  Use the
prebuilt sdk-core-lambda-stubs when using a prebuilt SDK.

Fixes compiling modules with lambdas against the SDK.

This reapplies I5e700f2dd86f1a6b84b7a55dd9bfe21a448d3fb6 with fixes
and tests for unbundled builds.

Bug: 80428539
Test: java_test.go
Change-Id: Ib7aaeebb93137270d7336a7293a08ed7064a3184
2018-05-30 16:47:00 +00:00
Colin Cross
7588ddcfca Merge "Revert "Add core-lambda-stubs to classpath"" am: 6c2e97364e
am: 0668619db7

Change-Id: I95d37c8cc23d5079e4348d176c2206c38773de57
2018-05-30 00:35:23 -07:00
Colin Cross
0668619db7 Merge "Revert "Add core-lambda-stubs to classpath""
am: 6c2e97364e

Change-Id: I4085c7fccfdcb0cf79f1300d53bd3f83d8b781b7
2018-05-30 00:30:50 -07:00
Treehugger Robot
6c2e97364e Merge "Revert "Add core-lambda-stubs to classpath"" 2018-05-30 07:23:09 +00:00
Colin Cross
7cdc22edb9 Revert "Add core-lambda-stubs to classpath"
This reverts commit d9d7be0617.

Reason for revert: Broke unbundled builds.

Bug: 80428539
Change-Id: I2279dbd2b11a2f63e70ad89d0b3bc42bca2b676b
2018-05-30 05:45:09 +00:00
Jiyong Park
311086ab68 Merge "LOCAL_SDK_VERSION is not emitted for recovery variant" am: f3c251c5de
am: 28f6db54f4

Change-Id: I075e5c50ccad4059a309db554a117831a8f7e9ff
2018-05-29 21:20:50 -07:00
Jiyong Park
28f6db54f4 Merge "LOCAL_SDK_VERSION is not emitted for recovery variant"
am: f3c251c5de

Change-Id: I33be9c99077e1ca2903e3dbda5860c1e90799e7d
2018-05-29 21:18:47 -07:00
Colin Cross
f9036f139c [automerger skipped] Merge "Add bpf module type" am: 9c75391168
am: 8df5d463fb  -s ours

Change-Id: I5d2e2139fcd28e2e451e1e19f65ff1c4971efc7d
2018-05-29 20:46:06 -07:00
Sundong Ahn
1b24d8ed16 Merge "Add aidl properties" am: c550ed5833
am: d7d90f89c2

Change-Id: I67e8ac37694389b5701b62f3d306cb8c3280adab
2018-05-29 20:40:01 -07:00
Colin Cross
9781882d24 Add core-lambda-stubs to classpath am: d9d7be0617
am: 417824868d

Change-Id: Ia01d156c82c29042b160e844b34e70a4450de071
2018-05-29 20:30:26 -07:00
Treehugger Robot
f3c251c5de Merge "LOCAL_SDK_VERSION is not emitted for recovery variant" 2018-05-30 03:29:51 +00:00
Colin Cross
8df5d463fb Merge "Add bpf module type"
am: 9c75391168

Change-Id: I0c62f6c11b11229446a081d7b6be0a7a934cabfc
2018-05-29 19:52:13 -07:00
Treehugger Robot
9c75391168 Merge "Add bpf module type" 2018-05-30 02:43:03 +00:00
Sundong Ahn
d7d90f89c2 Merge "Add aidl properties"
am: c550ed5833

Change-Id: I1f0f746bafbc7a18f328b446dbcef6d436211109
2018-05-29 19:07:03 -07:00
Colin Cross
417824868d Add core-lambda-stubs to classpath
am: d9d7be0617

Change-Id: Id7870967a7c39855beb880ce27d792f80630dd96
2018-05-29 19:06:49 -07:00
Treehugger Robot
c550ed5833 Merge "Add aidl properties" 2018-05-30 01:52:57 +00:00
Jiyong Park
97686288dd LOCAL_SDK_VERSION is not emitted for recovery variant
recovery variants are not built with NDK (useSdk() is false for
recovery). So LOCAL_SDK_VERSION shouldn't be emitted for the recovery
variants as well.

Test: m -j liblzma.recovery does not show any link type check error

Change-Id: Icb6c4fc766060e3f1555c405d5785ef5a015c629
2018-05-30 10:37:25 +09:00
Colin Cross
3840659243 Add bpf module type
Add a module type for compiling .c to .o using clang --target=bpf.

Bug: 72981744
Test: m
Change-Id: Ie5712bfabe34901a84ed33737053306ca56ebeb4
Merged-In: Ie5712bfabe34901a84ed33737053306ca56ebeb4
(cherry picked from commit 3ba736a7e1)
2018-05-29 17:05:23 -07:00
Colin Cross
d9d7be0617 Add core-lambda-stubs to classpath
Add core-lambda-stubs to the bootclasspath for modules with no
sdk_version or with sdk_version: "current", and to the classpath
for modules that specify a specific sdk_version number.

Fixes compiling modules with lambdas against the SDK.

Bug: 80428539
Test: java_test.go
Change-Id: I5e700f2dd86f1a6b84b7a55dd9bfe21a448d3fb6
2018-05-29 23:47:50 +00:00
Vishwath Mohan
4cac067ca1 Disable CFI for vendor variants of all components
am: 9ccbba0200

Change-Id: I6a6a839475f58f92180bfd391035dd538df71a50
2018-05-29 16:36:13 -07:00
Sundong Ahn
1b92c824f3 Add aidl properties
The aidl files are allowed when creating the droiddoc module in
java_sdk_library. But The properties of AIDL, local_include_dir
and include_dir, are not passed to the droiddoc module.
These properties are add because they are needed to generate the
java files.

Bug: 77575606
Test: build && java_test.go
Change-Id: I1006c9ce7a5c7e424416d39fb921c27a3fa86afa
2018-05-29 04:25:02 +00:00
Vishwath Mohan
9ccbba0200 Disable CFI for vendor variants of all components
The current VNDK ABI snapshot expects that CFI is disabled for
components that either in the include paths (from cfi-common.mk) OR
enabled directly in the makefile/blueprint. However, on non-arm64
architectures, the build system was only disabling CFI for vendor
components in the include paths.

This topic corrects it by (a) removing the include paths check to
disable CFI for vendor variants (this CL), and (b) inheriting the CFI
include paths in all product configs to ensure that when we update the
ABI we're able to move to relying exclusively
on (PRODUCT_)CFI_INCLUDE_PATHS.

Bug: 66301104
Test: ABI matches for all architectures.
Change-Id: I648edf13346b18fd88b623682e8590ed44709e0d
2018-05-28 13:57:48 -07:00
Dan Willemsen
d65b2cc72d Merge "Revert "Revert "Revert "Add path interposer"""" am: 4a789b1c3d
am: d91898e4f1

Change-Id: I40df1ee9448ee52ff53f5536d61c8a7d9247f3bb
2018-05-25 16:40:31 -07:00
Dan Willemsen
d91898e4f1 Merge "Revert "Revert "Revert "Add path interposer""""
am: 4a789b1c3d

Change-Id: I354232c27f14ebc71c862019934f3f3dcc449cbe
2018-05-25 16:35:28 -07:00
Jiyong Park
6c1f5e4196 Merge "droiddoc accepts aidl files as inputs" am: 516e580f94
am: c67315876d

Change-Id: I6121ffaab515c8dafe94522c3034145dfbb12a13
2018-05-25 16:32:34 -07:00
Dan Willemsen
4a789b1c3d Merge "Revert "Revert "Revert "Add path interposer"""" 2018-05-25 23:27:20 +00:00
Jiyong Park
c67315876d Merge "droiddoc accepts aidl files as inputs"
am: 516e580f94

Change-Id: I41bd2b9e4aff5a04d908b26138ccc876fc816544
2018-05-25 16:26:48 -07:00
Dan Willemsen
09f4540d66 Revert "Revert "Revert "Add path interposer"""
This reverts commit c59a92cb1a.

Reason for revert: tests are broken with long OUT_DIRs
They're directly calling net.Listen, and not using the fallback
for long socket names.

Change-Id: Id14cbd499fd9b36c6926b7552d3554340cb0916c
2018-05-25 23:26:00 +00:00
Treehugger Robot
516e580f94 Merge "droiddoc accepts aidl files as inputs" 2018-05-25 23:19:24 +00:00
Dan Willemsen
b176c02e04 Merge "Revert "Revert "Add path interposer""" am: bfb2b7e877
am: ce70f5a30a

Change-Id: I199fdcef88f11db01e40a725bb9914a52174b7b3
2018-05-25 16:04:36 -07:00
Dan Willemsen
34ec95cea8 Merge "Use new flex binary" am: 523cef04cb
am: da6bd163e2

Change-Id: Idd8eff00ced0e082e8d8f25469e25271630a614a
2018-05-25 16:02:12 -07:00
Dan Willemsen
ce70f5a30a Merge "Revert "Revert "Add path interposer"""
am: bfb2b7e877

Change-Id: I7ff85caee9db9a1a0c854835b491f7fe02a36beb
2018-05-25 16:01:19 -07:00
Dan Willemsen
bfb2b7e877 Merge "Revert "Revert "Add path interposer""" 2018-05-25 22:57:59 +00:00
Dan Willemsen
da6bd163e2 Merge "Use new flex binary"
am: 523cef04cb

Change-Id: I3b0a9aba6ccf2e21cbbcbea78291bb4590cd7ced
2018-05-25 15:57:19 -07:00
Treehugger Robot
523cef04cb Merge "Use new flex binary" 2018-05-25 22:44:35 +00:00
Dan Willemsen
c59a92cb1a Revert "Revert "Add path interposer""
This reverts commit 96c957ae20.

Fixes issues on some machines where the socket in TMPDIR ended up with a
unix domain socket pathname over 107 characters long, which Go will
reject due to underlying limitations in the system calls. If this
happens, we'll fall back to opening the directory, then using
/proc/self/fd/#/<file>, or manually creating a similar symlink in /tmp.

Also fixes some issues on Mac where os.Executable returns the symlink
instead of the underlying file, sending a message over a unix domain
socket will block if the reader isn't reading, and sandboxing was
preventing us from running `ps`.

Test: m blueprint_tools
Test: m blueprint_tools on mac
Change-Id: Ib19ccfe10cb0a79f1476fb1d5cd20ed0495be367
2018-05-25 14:07:00 -07:00
Vishwath Mohan
40aaea2321 Restrict CFI_INCLUDE_PATHS to Arm64
am: 1c54f66bd5

Change-Id: I379932454f8f18d7029f3fa3eb1654f4f36997c1
2018-05-25 00:24:53 -07:00
Jiyong Park
777a29f71a Merge changes from topic "recovery_available" am: c8036c17ab
am: 3936b21565

Change-Id: I9e50134baf4f7a3bf59c34e488d61bddd17e4dac
2018-05-24 23:15:49 -07:00
Jiyong Park
eebab40b19 Mark as recovery_available:true am: 6caa21aa82
am: e9ff1887fa

Change-Id: I96c6d3843197299f75062780c04a2a8b87d78c1b
2018-05-24 23:15:42 -07:00
Jiyong Park
7fbe82540d Add recovery_available to cc_genrule am: 3f736c9661
am: f1e8411c2a

Change-Id: I7ff0a6a08293024161e307171776d988eea10ec7
2018-05-24 23:15:37 -07:00
Jiyong Park
3936b21565 Merge changes from topic "recovery_available"
am: c8036c17ab

Change-Id: I12cf112514126080c52d966b6f61683319a03213
2018-05-24 23:07:25 -07:00
Jiyong Park
e9ff1887fa Mark as recovery_available:true
am: 6caa21aa82

Change-Id: I1e1246b5c921c3cdea1ff8a6ea9dc7659e1fce82
2018-05-24 23:07:16 -07:00
Jiyong Park
f1e8411c2a Add recovery_available to cc_genrule
am: 3f736c9661

Change-Id: I88d3a144e56ef090ffce41e28339a24bb665f89a
2018-05-24 23:07:04 -07:00
Treehugger Robot
c8036c17ab Merge changes from topic "recovery_available"
* changes:
  fix: recovery.cflags now works
  Mark as recovery_available:true
  Add recovery_available to cc_genrule
2018-05-25 05:58:01 +00:00
Colin Cross
cf680bc55e Merge changes I47b9def5,I16661701,I194aeeb8 am: 9d0940c7a7
am: 3eef5574ae

Change-Id: Ie0bfbce4e479d8012fd71a319ea2605747bbd74d
2018-05-24 18:42:38 -07:00
Colin Cross
3eef5574ae Merge changes I47b9def5,I16661701,I194aeeb8
am: 9d0940c7a7

Change-Id: Iafb715b684e25c389d2561673142b4b6b882d2a2
2018-05-24 18:39:41 -07:00
Vishwath Mohan
1c54f66bd5 Restrict CFI_INCLUDE_PATHS to Arm64
This CL restricts CFI_INCLUDE_PATHS and PRODUCT_CFI_INCLUDE_PATHS to
Arm64 only.

Bug: 66301104
Test: x86 targets do not respect the include paths variables
Change-Id: I66ec2fb05435535aaf5d59fdfc7a170a4fdd4f26
2018-05-24 18:36:18 -07:00
Colin Cross
9d0940c7a7 Merge changes I47b9def5,I16661701,I194aeeb8
* changes:
  Export manifest to Make
  Add support for android_test modules
  Reduce boilerplate around bpfix passes
2018-05-25 01:34:11 +00:00