Commit Graph

11379 Commits

Author SHA1 Message Date
Inseob Kim
165bafc1ce Merge "Refine error messages in case of missing api files" am: 03a471a853
am: 1c033c09d8

Change-Id: If09250611b93fcc245fe3d545efac2a80684eb54
2019-03-20 10:42:35 -07:00
Yi Kong
776181534e [automerger skipped] Merge "Add -faddrsig to ClangExtraCflags" am: dd346af218 -s ours
am: 9053416151

Change-Id: I64bb21e3d4c7c3648eff68bc9ba6991cd582735c
2019-03-20 10:42:10 -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
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
09d120a7c9 Fix the symbol file paths for files in APEXes am: 05e70ddc60
am: 735ec296ea

Change-Id: I0872761bd6b99bad4f269e04bd5973390f61d6eb
2019-03-19 21:24:34 -07:00
Colin Cross
318c318f97 Merge "Support go 1.12" am: bb3deefa9d
am: 930ae2f702

Change-Id: I19f6307e417a7d25ec4ac195e29770b6bae41a3b
2019-03-19 21:24:11 -07: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
2f1a8b7d9f Merge "Rename test description" am: bb3fe2fc85
am: d23fc10137

Change-Id: Ia33dd3be333b88e7077e77ac22442dc6fe079472
2019-03-19 17:15:28 -07: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
425c3ad0dc Merge "respect relative_install_path for binaries in APEXes" am: 1b7a4b0074
am: b6195afa0d

Change-Id: Ied4dbf864557723a24b55d2e4567ea1efaf7f68b
2019-03-19 15:18:52 -07: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
e0036d8b4a Merge "Support test_suite and test_config with sh_test" am: 8c84e60f38
am: 542c4cb03f

Change-Id: Id3546a4e65d6933e3e1a85ed4029ad705be1f94e
2019-03-19 14:16:27 -07: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
894c80f511 Merge "Skip obsolete JACK flags" am: 734879bc6a
am: ed071c5856

Change-Id: I2e024e73a98e157afa8dc562c1ffb2b516cd7c71
2019-03-19 10:57:35 -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
0612d8431b Merge "Don't add dependencies on modules referenced in unused arch variants" am: 1f74135f97
am: 577ef51ca7

Change-Id: Id3e4820a1bd9a64e96bbf405f7ddedddd3e241b2
2019-03-19 01:22:06 -07: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
d182fd4f26 Merge "Switch clang to r353983" am: bdb1ed828d
am: cc6ac6647f

Change-Id: Ifd943b560e640d00d4452d92cd62196204722209
2019-03-18 21:33:36 -07: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
0c0a3194b6 Merge "Install symlink to the runtime APEX only for device" am: c743c37e92
am: 467fc4afa1

Change-Id: I7e93fe938bbcf5a509c7dba28cc13056de7dc6f4
2019-03-18 15:44:59 -07: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
c8351c6af8 Merge "Add stoney ridge x86 variant" am: cd2e52870a
am: 5473e3fbdf

Change-Id: I632dcc3c918b7c5bc3c1f6c43f7b0e844510f306
2019-03-15 15:40:16 -07: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
cac49960eb Merge "product_specific support for apex_key" am: f1c1006eca
am: 5701388a86

Change-Id: Iff0c80a361c8492fddfa31801c5c2cb6fd38828c
2019-03-15 10:27:01 -07: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