Commit graph

11084 commits

Author SHA1 Message Date
Yi Kong
7e8b47b313 Add -faddrsig to ClangExtraCflags
Emit address-significance table which allows linker to perform safe ICF.
Clang does not emit the table by default on Android since NDK still uses
GNU binutils.

With the flag, binary size is decreased. For Marlin:
               -fno-addrsig  -faddrsig  diff
/system/bin    28012K        27108K     -3.33%
/system/lib    88220K        86964K     -1.44%
/system/lib64  151936K       148108K    -2.58%

Test: m checkbuild
Bug: 128940110
Change-Id: I99511f038a6d4b88b5c849a0f8943c24731ab6ea
Merged-In: I99511f038a6d4b88b5c849a0f8943c24731ab6ea
(cherry picked from commit a32b5e6a6b)
2019-03-20 10:40:44 -07:00
Adam Vartanian
cecf06a088 Merge "Add Conscrypt to coverage"
am: 36c70bcfcb

Change-Id: I0bc5434716f7986f973ff16c77c649cde0cf88fc
2019-03-20 10:39:23 -07:00
Inseob Kim
1c033c09d8 Merge "Refine error messages in case of missing api files"
am: 03a471a853

Change-Id: I3ba37c61837bce1cd70562409ab1ebaed5d35723
2019-03-20 10:38:57 -07:00
Yi Kong
9053416151 [automerger skipped] Merge "Add -faddrsig to ClangExtraCflags"
am: dd346af218 -s ours
am skip reason: SHA1 dd346af218 skipped by user yikong

Change-Id: I79281f2b9a944a13ff6b967490d7b8aaf8255e15
2019-03-20 10:37:55 -07:00
Treehugger Robot
36c70bcfcb Merge "Add Conscrypt to coverage" 2019-03-20 14:52:06 +00:00
Treehugger Robot
03a471a853 Merge "Refine error messages in case of missing api files" 2019-03-20 09:47:15 +00:00
Yi Kong
dd346af218 Merge "Add -faddrsig to ClangExtraCflags" 2019-03-20 07:57:01 +00:00
Inseob Kim
8098faad9f Refine error messages in case of missing api files
Some non-interpretable error messages has been shown in case of missing
current api files. Instead of that messy errors, This clearly tells
users what is the problem and how to fix it.

Bug: 126259114
Test: 1) try to build a sysprop_library and a java_sdk_library without
creating txt files under api/, and see it fails.
Test: 2) Copy and paste the emitted command, and try to build again.

Change-Id: I986781cc710475647c2b996b0f1c51a6f50c0ba2
2019-03-20 15:33:06 +09:00
Jiyong Park
735ec296ea Fix the symbol file paths for files in APEXes
am: 05e70ddc60

Change-Id: I11420262e3f4fc67a38ac78632bdfa2b2e75a51a
2019-03-19 21:18:12 -07:00
Colin Cross
930ae2f702 Merge "Support go 1.12"
am: bb3deefa9d

Change-Id: I7dd228e6bc91632ddd59acb9b6c9329d627ef3fb
2019-03-19 21:17:48 -07:00
Yi Kong
a32b5e6a6b Add -faddrsig to ClangExtraCflags
Emit address-significance table which allows linker to perform safe ICF.
Clang does not emit the table by default on Android since NDK still uses
GNU binutils.

With the flag, binary size is decreased. For Marlin:
               -fno-addrsig  -faddrsig  diff
/system/bin    28012K        27108K     -3.33%
/system/lib    88220K        86964K     -1.44%
/system/lib64  151936K       148108K    -2.58%

Test: m checkbuild
Bug: 128940110
Change-Id: I99511f038a6d4b88b5c849a0f8943c24731ab6ea
2019-03-20 03:21:10 +00:00
Jiyong Park
05e70ddc60 Fix the symbol file paths for files in APEXes
This change fixes the problem that symbol files for APEXes are installed to
incorrect path when TARGET_FLATTEN_APEX is set to true or the canonical
name of an APEX is different fro the module name of the APEX.

For the case when TARGET_FLATTEN_APEX is true, LOCAL_SOONG_SYMBOL_PATH
is set to point to the runtime path of a file (e.g. /apex/<name>/*).

For the case of the different canonical and module names, apex_name
property is added to explicitly specify the canonical name

Bug: 120846816
Test: m and inspect that symbol files exist under
$(PRODUCT_OUT)/symbols/apex/com.android.runtime/

Change-Id: Idfec88d6a30a18c225b0d87b868b9f1e0a617e38
2019-03-20 11:55:04 +09:00
Treehugger Robot
bb3deefa9d Merge "Support go 1.12" 2019-03-20 02:33:28 +00:00
Ng Zhi An
d23fc10137 Merge "Rename test description"
am: bb3fe2fc85

Change-Id: I14555fde8abbe041696b096f1e5a9424af32a5a4
2019-03-19 17:12:14 -07:00
Treehugger Robot
bb3fe2fc85 Merge "Rename test description" 2019-03-19 23:55:26 +00:00
Colin Cross
3020fee889 Support go 1.12
go 1.12 changed the stack trace of a function call during global
variable initialization to contain a function called
"PKG.init.ializers".  Fix callerName to split the package path
and function name on the first "." after the last "/", and look
for functions called "init.ializers" or functions with the
prefix "init."

Test: Soong tests with go 1.12
Change-Id: I25f1ba989ef2d65ca85cb7c9d84454cca230ff86
2019-03-19 23:47:22 +00:00
Jiyong Park
b6195afa0d Merge "respect relative_install_path for binaries in APEXes"
am: 1b7a4b0074

Change-Id: Iea11f82e57d44f4df30348412f520c3e32f2e109
2019-03-19 15:02:41 -07:00
Treehugger Robot
1b7a4b0074 Merge "respect relative_install_path for binaries in APEXes" 2019-03-19 21:47:18 +00:00
Julien Desprez
542c4cb03f Merge "Support test_suite and test_config with sh_test"
am: 8c84e60f38

Change-Id: If173efcf86a77d4855c3e9a07515cb824bddd2a5
2019-03-19 14:12:24 -07:00
Julien Desprez
8c84e60f38 Merge "Support test_suite and test_config with sh_test" 2019-03-19 21:05:13 +00:00
Ng Zhi An
2935b409fc Rename test description
Bug: 127712304
Test: m androidmk
Change-Id: I1ffb07c2bce0c3890d8e8d8a5661ba351bcadd68
2019-03-19 12:50:13 -07:00
Ng Zhi An
ed071c5856 Merge "Skip obsolete JACK flags"
am: 734879bc6a

Change-Id: I52e701de25d40b676f36d23abb6628433075bb01
2019-03-19 10:53:36 -07:00
Treehugger Robot
734879bc6a Merge "Skip obsolete JACK flags" 2019-03-19 17:40:34 +00:00
Colin Cross
577ef51ca7 Merge "Don't add dependencies on modules referenced in unused arch variants"
am: 1f74135f97

Change-Id: Id27103a3513985e325fca47215ca85b77aaf8c52
2019-03-19 01:17:57 -07:00
Treehugger Robot
1f74135f97 Merge "Don't add dependencies on modules referenced in unused arch variants" 2019-03-19 08:03:36 +00:00
Yi Kong
cc6ac6647f Merge "Switch clang to r353983"
am: bdb1ed828d

Change-Id: I1852d1b722211a2bb2ba8425e4e91fe19ad66811
2019-03-18 21:29:33 -07:00
Yi Kong
bdb1ed828d Merge "Switch clang to r353983" 2019-03-19 04:21:20 +00:00
Yi Kong
6925d2b300 Switch clang to r353983
Bug: 126457671
Bug: 123638879
Bug: 128878287
Test: go/clang-r353983-testing
Change-Id: I7f16e68f0f521ff55587084932d175b704e452c9
2019-03-19 04:20:52 +00:00
Jiyong Park
467fc4afa1 Merge "Install symlink to the runtime APEX only for device"
am: c743c37e92

Change-Id: I5e38fde29caa769286455729d24fe2cbf66c56ab
2019-03-18 15:40:52 -07:00
Treehugger Robot
c743c37e92 Merge "Install symlink to the runtime APEX only for device" 2019-03-18 22:23:06 +00:00
Julien Desprez
9e7fc1407d Support test_suite and test_config with sh_test
Start basic suite support for sh_test so we can
include them in suites.

Test: make adb-remount-sh
Bug: 127959519
Change-Id: If73541d614a2d809e4f94e4fee4c660840631cc1
2019-03-18 14:35:21 -07:00
Colin Cross
a3a97415d3 Don't add dependencies on modules referenced in unused arch variants
When extracting dependencies from properties tagged with
`android:"path"`, only look at the general property structs
and not the arch-specific ones.  The necessary arch-specific
values will be appended into the general property structs.

Fixes: 128377112
Test: path_properties_test.go
Change-Id: I35e35555d5b15473229a7458fcfc2c7dacaec889
2019-03-18 12:49:14 -07:00
Jiyong Park
bd13e44610 respect relative_install_path for binaries in APEXes
Bug: 123721777
Test: m (apex_test.go has the test)
Change-Id: I89bc83d4bc6fe8dc374cf36e06e795c75b290844
2019-03-18 14:49:21 +09:00
Benjamin Gordon
5473e3fbdf Merge "Add stoney ridge x86 variant"
am: cd2e52870a

Change-Id: I8c08245cc45cc4ed91a016058fb043a299fa95cf
2019-03-15 15:33:53 -07:00
Ng Zhi An
e02e41a9ea Skip obsolete JACK flags
Fixes: 127712304
Test: m androidmk
Change-Id: Ia2f0ccd184151c691563779d1828c111800ed382
2019-03-15 15:03:49 -07:00
Treehugger Robot
cd2e52870a Merge "Add stoney ridge x86 variant" 2019-03-15 21:41:32 +00:00
Jiyong Park
5701388a86 Merge "product_specific support for apex_key"
am: f1c1006eca

Change-Id: Ic718deef39d8e86af0781f3887a362892566b27a
2019-03-15 10:22:57 -07:00
Jiyong Park
c3e2c86caf Install symlink to the runtime APEX only for device
Host does not need the symlink. It also broke master-art-host targets.

Test: ALLOW_MISSING_DEPENDENCIES=true
DIST_DIR=~/temp
./art/tools/dist_linux_bionic.sh -j50 showcommands
com.android.runtime.host

Change-Id: Ie8e02553c5a1b6cd5afebd73a64268d2950fc18e
2019-03-16 02:13:46 +09:00
Treehugger Robot
f1c1006eca Merge "product_specific support for apex_key" 2019-03-15 17:10:49 +00:00
Benjamin Gordon
87e7f2f685 Add stoney ridge x86 variant
Bug: 124445930
Test: compile and deploy to grunt
Change-Id: Ie63217c7c68f5688bf070cbabf9ea5a1b82d3acc
2019-03-15 11:04:48 -06:00
Jiyong Park
f0fceb2cbf Merge "Create symlink for bionic files"
am: 7487fb54fe

Change-Id: Ic87176738eeb92a2de8345a67d80ac224b1d3091
2019-03-15 02:15:49 -07:00
Treehugger Robot
7487fb54fe Merge "Create symlink for bionic files" 2019-03-15 09:02:18 +00:00
Patrice Arruda
826a11f6ec Merge "Soong: update the synopsis of vts_config module."
am: 6f933e5528

Change-Id: Id1437f4c66b67a9ebb1bf1829a6e3b71e2e4b240
2019-03-14 18:31:06 -07:00
Treehugger Robot
6f933e5528 Merge "Soong: update the synopsis of vts_config module." 2019-03-15 01:22:27 +00:00
Stephen Hines
3c9be84a21 Merge "Add AVX/AVX2 supported archs in build system"
am: 5971f50a22

Change-Id: I674453855cd1527aca39c90eac706deec91a4006
2019-03-14 18:02:03 -07:00
Stephen Hines
5971f50a22 Merge "Add AVX/AVX2 supported archs in build system" 2019-03-15 00:55:04 +00:00
Patrice Arruda
3cec272c94 Soong: update the synopsis of vts_config module.
Added more details on the vts_config synopsis.

Bug: b/128337482
Test: Ran the doc generation command and verified that the synopsis
was updated in vts_config module.

Change-Id: I1d29a7f800b5dd4e6f1719af5d0d3b723202f33d
2019-03-14 12:05:02 -07:00
Jiyong Park
f11943527d Create symlink for bionic files
This change creates following symlinks for bionic files.

/system/lib/libc.so -> /apex/com.android.runtime/lib/bionic/libc.so
/system/lib/libm.so -> /apex/com.android.runtime/lib/bionic/libm.so
/system/lib/libdl.so -> /apex/com.android.runtime/lib/bionic/libdl.so
/system/bin/linker -> /apex/com.android.runtime/bin/linker
...

This allows us to not have mountpoints under /bionic.

Bug: 125549215
Test: m and inspect the symlinks in the system partition.
Change-Id: I3a58bf4f88c967862dbf06065a1af8fc4700dda3
2019-03-15 03:04:52 +09:00
Jiyong Park
d1e293d11e product_specific support for apex_key
apex_key, when with product_specific: true, is installed to
/product/etc/security/apex.

Bug: 128519063
Test: m (apex_test.go amended)
Change-Id: I39e8ac1c486c734dfe0555cd1874468d75e71f34
2019-03-15 02:15:39 +09:00
Patrice Arruda
afb11048e4 Merge "Soong: Update the filegroup's synopsis documentation."
am: 33548f07a8

Change-Id: I609ccd5aed86e12431fa553982f706b5958e6dbc
2019-03-13 14:02:30 -07:00