Commit Graph

6383 Commits

Author SHA1 Message Date
Dan Willemsen
fe3f651a8c Merge "Allow more PATH tools, expose HOST_STRIP"
am: 1d2318d6cd

Change-Id: I59018ba782bff3cad74eaacd6306c77c4953a40c
2018-06-01 17:09:17 -07:00
Treehugger Robot
1d2318d6cd Merge "Allow more PATH tools, expose HOST_STRIP" 2018-06-01 23:58:15 +00:00
Chih-hung Hsieh
7bc0f8dbd6 Merge "Handle pack_relocations in linker.cc"
am: a4181126ee

Change-Id: I207d0761ca6d90208911fb838a7b8038e87b291b
2018-06-01 13:55:21 -07:00
Chih-hung Hsieh
a4181126ee Merge "Handle pack_relocations in linker.cc" 2018-06-01 20:43:11 +00:00
Dan Willemsen
f6d300662e Allow more PATH tools, expose HOST_STRIP
atree was using the host's strip tool during sdk generation, so expose
the prebuilt for use instead.

`id` was used with a test running minijail0 during the build

`sha1sum` is used by development/build/tools/mk_sdk_repo_xml.sh

`rmdir` was being used to remove some tmp files

Test: m PRODUCT-sdk_arm64-sdk dist sdk_repo
Test: Run other builds through forrest
Change-Id: I49c756a3e9497c0bbd9030754e6aa193a2d989a4
2018-06-01 12:48:41 -07:00
Dan Willemsen
a1e8f9a15d Merge "Revert "Revert "Revert "Revert "Add path interposer"""""
am: 4972f88699

Change-Id: Icd3ad3f445ffb03cad53f27c39fa5e4d82d78297
2018-05-31 23:45:15 -07:00
Dan Willemsen
4972f88699 Merge "Revert "Revert "Revert "Revert "Add path interposer""""" 2018-06-01 02:14:44 +00:00
Dan Willemsen
184901135c Revert "Revert "Revert "Revert "Add path interposer""""
This reverts commit 09f4540d66.

Fixes the raw call to net.Listen in the tests to go through the listen()
helper and use the long socket path fallbacks.

Removes the use of timeouts from the tests -- the behaviors being tested
did not rely on timeouts, so removing them will reduce the flakiness if
the build is heavily loading the machine at the same time the test is
running.

Also fixes some potential nil pointer dereferences.

Test: OUT_DIR=<really long> m blueprint_tools
Test: `while .../soong-ui-build-paths/test/test; do sleep 0.01; done` with a build running
Change-Id: I16d44be7517bc415f1c808284088f4ba40df3bfa
2018-05-31 14:59:33 -07:00
Vishwath Mohan
dc55e621bb Don't enable diagnostics for CFI when setting the CFI sanitizer.
am: 05b002dea0

Change-Id: I7eb2785678d4706e0da8cf22da2479ce512852ac
2018-05-31 10:20:06 -07:00
Vishwath Mohan
05b002dea0 Don't enable diagnostics for CFI when setting the CFI sanitizer.
The SetSanitizer() method in cc/sanitize.go was also enabling
diagnostics for CFI when invoked from the sanitizer mutator. We
shouldn't be doing this, so this CL disables that.

Bug: 79785496
Test: strings libziparchive.so | grep 'ubsan'
Change-Id: Iffe0d4e9c333ac5dfbec3f48e381c232ce5d4463
2018-05-30 20:52:39 -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
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
28f6db54f4 Merge "LOCAL_SDK_VERSION is not emitted for recovery variant"
am: f3c251c5de

Change-Id: I33be9c99077e1ca2903e3dbda5860c1e90799e7d
2018-05-29 21:18:47 -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
Chih-Hung Hsieh
8681471e70 Handle pack_relocations in linker.cc
When pack_relocations is false and clang lld is used,
pass --pack-dyn-relocs=none to lld.

Bug: 80093890
Test: build and boot with USE_CLANG_LLD=true
Change-Id: I0ffe77a111d7fbab5afaa1395d09734a8a390e09
2018-05-29 15:39:47 -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
Dan Willemsen
d91898e4f1 Merge "Revert "Revert "Revert "Add path interposer""""
am: 4a789b1c3d

Change-Id: I354232c27f14ebc71c862019934f3f3dcc449cbe
2018-05-25 16:35:28 -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
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
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
3eef5574ae Merge changes I47b9def5,I16661701,I194aeeb8
am: 9d0940c7a7

Change-Id: Iafb715b684e25c389d2561673142b4b6b882d2a2
2018-05-24 18:39:41 -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
Dan Albert
7435738d53 Merge changes from topic "preprocessed_ndk_headers"
am: 5ae3652d99

Change-Id: I7a62352e763b29d36133ebd3b3cc46b8268d2f01
2018-05-24 17:01:40 -07:00
Treehugger Robot
5ae3652d99 Merge changes from topic "preprocessed_ndk_headers"
* changes:
  Rename preprocessed_ndk_headers to versioned_ndk_headers.
  Add exclude_srcs property to ndk_headers modules.
  Fix typo. Properies -> Properties.
2018-05-24 23:47:57 +00:00
Jiyong Park
4a2dcb5c4b fix: recovery.cflags now works
There was a bug that recovery.cflags is ignored. Respect the property
when building for recovery.

Bug: 79146551
Test: m -j
Change-Id: I24c1c1b593c83eb1992721571c6d5c42483a41a0
2018-05-25 08:43:50 +09:00
Dan Willemsen
b7adae8aaf Use new flex binary
Test: treehugger
Change-Id: Ie1d41a3ee223a80b6f471b7b1cbede63cc7051f5
2018-05-24 15:45:21 -07:00
Colin Cross
10f7c4a268 Export manifest to Make
I5d439353d46ba6659ec8d16967693d2b9e62ab5a will need the manifests
from android libraries to merge into modules that reference them
with LOCAL_STATIC_ANDROID_LIBRARIES.

Bug: 3434784
Test: m checkbuild
Change-Id: I47b9def5b9c2ecc423550eb8a988cce96038a81e
2018-05-24 15:24:12 -07:00
Dan Albert
97f9c963ad Rename preprocessed_ndk_headers to versioned_ndk_headers.
The current rule runs a specific preprocessor over the source files,
and I'm adding support for generic preprocessed headers in a follow
up patch.

Test: make checkbuild
Bug: None
Change-Id: I1f3193cd595f151309e6321e1b41d8d16085379d
2018-05-24 15:12:51 -07:00
Dan Albert
19ff8b4662 Add exclude_srcs property to ndk_headers modules.
Test: make checkbuild
Bug: None
Change-Id: I2778c1140ab50abc0f7dee66da35ebacef77ea72
2018-05-24 15:12:26 -07:00