Commit graph

8457 commits

Author SHA1 Message Date
Neil Fuller
0b4800bb38 Merge "Track changes to add core-simple to the boot cp"
am: 573864c015

Change-Id: I538c1410de40a31441fcc653a0fe20933c16dcf6
2018-08-28 11:25:31 -07:00
Chih-hung Hsieh
4b42edbca0 Merge "Define PATH_TO_CLANG_TIDY_SHELL for build/make rules." 2018-08-28 18:18:32 +00:00
Neil Fuller
573864c015 Merge "Track changes to add core-simple to the boot cp" 2018-08-28 17:36:54 +00:00
Jiyong Park
58918f3e69 Merge "link type of recovery variant of a vendor module should not be native:vendor"
am: c842742f5d

Change-Id: I934a5dcb8dfb84d3e1e044ada1d2c2dd25c3fbff
2018-08-28 07:27:46 -07:00
Treehugger Robot
c842742f5d Merge "link type of recovery variant of a vendor module should not be native:vendor" 2018-08-28 14:20:14 +00:00
Neil Fuller
6095259f5b Track changes to add core-simple to the boot cp
See the change in build/make for details.

Bug: 113148576
Test: make checkbuild / Treehugger
Change-Id: I6f7901642c6b907b1e8e9dd31ced3bf1ea6dfd4d
2018-08-28 13:16:19 +01:00
David Brazdil
d5b74996be Support setting android:usesNonSdkApi in manifest_fixer.py
Add new command line flag to manifest_fixer.py which will add
'android:usesNonSdkApi="true"' attribute to the <application> tag.

Bug: 113315999
Test: build/soong/scripts/manifest_fixer.py
Change-Id: If030c90a4ced3f5c5176727c579a87d0ecab6cf8
2018-08-28 12:41:01 +01:00
Anton Hansson
6f8fe47eb3 Merge "Pass extra args from multiproduct_kati to config."
am: 179d89bc5b

Change-Id: Ieb04ce62604c2aeea8b098f3d4acfa8038d79b72
2018-08-28 00:41:15 -07:00
Anton Hansson
179d89bc5b Merge "Pass extra args from multiproduct_kati to config." 2018-08-28 07:27:59 +00:00
Dan Willemsen
7a08bc5467 Add todos to the allowed PATH list
todos is used by development/build/tools/patch_windows_sdk.sh

Test: m win_sdk; check out/soong.log
Change-Id: I5e1a290838cc34261d7f5fc321afe79a8b1a6fbb
2018-08-28 00:18:02 -07:00
Dan Willemsen
6f59a9e561 Merge "Add fuser to allowed PATH tools"
am: 42ff416da3

Change-Id: I1414bf8c23f0fa54aee50f49af9ac51fd9ebc820
2018-08-27 18:38:05 -07:00
Treehugger Robot
42ff416da3 Merge "Add fuser to allowed PATH tools" 2018-08-28 01:31:33 +00:00
Jiyong Park
5baac54d58 link type of recovery variant of a vendor module should not be native:vendor
This CL fixes a bug that when a module is configured as 'vendor: true' &&
'recovery_available: true', the link type of the recovery variant of the
module is incorrectly set to 'native:vendor'. This was because,
androidmk.go emits 'LOCAL_PROPRIETARY_MODULE := true' whenever
Proprietary property is set to true, regardless of whether it is a
recovery variant or not. This in turn makes LOCAL_USE_VNDK := true for
the module which in turn causes the link type to be 'native:vendor'.

Fixing the bug by resetting the properties like Proprietary, Vendor,
Soc_specific, etc. for the recovery variants.

Bug: 113277544
Test: m -j (test added)
Change-Id: I5d6ae76e46ef8fcd9204d386d0809862a7b0ff7e
2018-08-28 10:03:17 +09:00
Dan Willemsen
76237d2df1 Merge "Support turning phony warnings into errors"
am: 15d7f26c4e

Change-Id: I9b7ac9be19dabe6f88a20dbb6aa8a6ca8b9f64b1
2018-08-27 17:41:52 -07:00
Treehugger Robot
15d7f26c4e Merge "Support turning phony warnings into errors" 2018-08-28 00:32:00 +00:00
Dan Willemsen
b4d0144a6f Add fuser to allowed PATH tools
fuser is used by goma

Test: none
Change-Id: I9acf4dd062c3b767a1688e4f236a96d5f2b8a7f6
2018-08-27 16:45:23 -07:00
Chih-Hung Hsieh
b699c43f89 Define PATH_TO_CLANG_TIDY_SHELL for build/make rules.
* PATH_TO_CLANG_TIDY_SHELL is ${config.ClangTidyShellPath},
  wich is "build/soong/scripts/clang-tidy.sh"

Bug: 110538415
Test: build with WITH_TIDY=1
Change-Id: I27d7be095c998583fa9ad4d705aa1332bd018140
2018-08-27 16:19:59 -07:00
Dan Willemsen
d8aa39d1c3 Support turning phony warnings into errors
These still default to warnings, but if a board decides to set
BOARD_BROKEN_PHONY_TARGETS := false, they'll turn into errors. More
likely I'll just be marking the broken targets as broken, then switching
the logic here to be like the dup rules warnings/errors.

Test: On a build with warnings, try <missing>, "false", and "true"
Change-Id: I041e1ff4618c4114ec43015b6c0ae1b49b36b6f8
2018-08-27 15:01:03 -07:00
Colin Cross
3fb29135c6 Merge "Put kotlin classes in header jar"
am: 4bd15d36e7

Change-Id: I43e8958401cdaa5b340a3bf7bc0db6a9295a3bda
2018-08-27 14:23:08 -07:00
Treehugger Robot
4bd15d36e7 Merge "Put kotlin classes in header jar" 2018-08-27 21:16:21 +00:00
Colin Cross
55f63eadbd Put kotlin classes in header jar
If a module has kotlin sources the compiled kotlin clsases must be put
in the header jar for anything that depends on the module to use.

Bug: 113153312
Test: m checkbuild
Change-Id: Ibc44e9a97655937315b03b05e51e09c2954d7008
2018-08-27 13:19:49 -07:00
Søren Gjesse
20d7700075 Merge "Ensure that the R8 minification map (ProGuard dictionary) file exists"
am: 0d91f1727e

Change-Id: I7904bab799407eb81c3d619d2e15663cd02b18c6
2018-08-27 09:13:58 -07:00
Søren Gjesse
0d91f1727e Merge "Ensure that the R8 minification map (ProGuard dictionary) file exists" 2018-08-27 16:06:07 +00:00
Søren Gjesse
0e84935ac4 Ensure that the R8 minification map (ProGuard dictionary) file exists
R8 no longer outputs an empty map file when minification
(obfuscation) is turned off.

Test: m -j PRODUCT-aosp_x86-eng
Change-Id: I317e703597368dc8c16751bcc8d0e43f985614fa
2018-08-27 12:56:16 +02:00
Ryan Prichard
f867f36e2f Merge "NDK sysroot: include each license file only once"
am: 09664bd9a5

Change-Id: I4f84c5adb80b0e368c881ffe53cf0f50bf24e9e4
2018-08-24 15:53:23 -07:00
Treehugger Robot
09664bd9a5 Merge "NDK sysroot: include each license file only once" 2018-08-24 22:40:32 +00:00
Nan Zhang
0964851ddb Merge "Revert "Revert "Make Metalava checkapi a seperate run."""
am: 21aac6b64b

Change-Id: Ibe70195ba170b67616cabef039160eeab465a9ea
2018-08-24 14:45:09 -07:00
Nan Zhang
21aac6b64b Merge "Revert "Revert "Make Metalava checkapi a seperate run.""" 2018-08-24 21:33:15 +00:00
Ryan Prichard
b1c9d40b6f NDK sysroot: include each license file only once
bionic/libc/NOTICE file is 6000 lines long and is referenced by 10
modules in bionic/libc/Android.bp. We're currently including 10 copies of
the license file, which makes it hard to view a "platform prebuilts" CL
in Gerrit.

For example, click "Expand All" on:
https://android-review.googlesource.com/c/platform/prebuilts/ndk/+/730825

Bug: none
Test: m out/soong/ndk.timestamp
Change-Id: I857e70d7d900688532ab988800c98bbd0899cc31
2018-08-24 13:28:04 -07:00
Jeff Gaston
386823bbec Merge "pom2bp support to specify which modules are host modules"
am: 141fe713fa

Change-Id: Iaa4701a04558a88847c5fa4c2ab892fe8b0e6665
2018-08-24 13:04:47 -07:00
Chih-Hung Hsieh
1cc0227af2 Remove flto dependent flags when -flto is removed.
am: 9e88ba9f22

Change-Id: I174a627fe877f66b81ae889a82eefadff8216dc4
2018-08-24 12:53:01 -07:00
Treehugger Robot
141fe713fa Merge "pom2bp support to specify which modules are host modules" 2018-08-24 19:46:17 +00:00
Chih-Hung Hsieh
9e88ba9f22 Remove flto dependent flags when -flto is removed.
* C++ source files could be compiled with "-fwhole-program-vtables"
  in cppflags. We need to filter out those flto dependent flags
  in flags.CppFlags and use flags.toolingCppFlags instead of
  flags.cppFlags.

Test: build with WITH_TIDY=1
Change-Id: Ic2b0f99b95a5f0422f879226e6f6060cab71456a
2018-08-24 18:42:22 +00:00
Nan Zhang
2760dfc03c Revert "Revert "Make Metalava checkapi a seperate run.""
This reverts commit ec716b4151.

Reason for revert:
This is second attempt for Make Metalava checkapi a seperate run.

The first attept didn't work since Metalava also need sources,
classpath, and etc, not like how old Doclava apicheck works.

Test: cherry-pick go/ag/4832335 in internal master, and do 'm clean && m
-j checkapi', it failed with erros which is expected.
Bug: b/113126618, b/113131828

Change-Id: I664b7838d15615905a2e798b1df832218031dfe7
2018-08-24 11:37:33 -07:00
Jeff Gaston
d492853a52 pom2bp support to specify which modules are host modules
Bug: 112804807
Test: cd prebuilts/sdk/current/support && pom2bp -regen Android.bp
Change-Id: Ib816db8274cb05c9d0ed2cb557799ddcf6ee74fd
2018-08-24 14:32:50 -04:00
Nan Zhang
9da0f56261 Merge "Revert "Make Metalava checkapi a seperate run.""
am: cde4e89c27

Change-Id: Ida1f848fc90eb9d1948f92c42ebe4a48d0a43b05
2018-08-24 09:12:36 -07:00
Nan Zhang
cde4e89c27 Merge "Revert "Make Metalava checkapi a seperate run."" 2018-08-24 15:59:59 +00:00
Nan Zhang
ec716b4151 Revert "Make Metalava checkapi a seperate run."
This reverts commit ed0a39dba7.

Reason for revert:
it seems checkapi can be passed successfully even if we didn't do update-api for new changes. roll-back for now and do more investigation.  

Change-Id: Idd54ea8919671d54aa6401233156d6c0bcf5325f
2018-08-24 15:59:17 +00:00
Nan Zhang
40ccfea6f7 Merge "Make Metalava checkapi a seperate run."
am: ea5019a407

Change-Id: I43e041fad339a808333a67661a075a2643f3c1b2
2018-08-23 23:19:36 -07:00
Treehugger Robot
ea5019a407 Merge "Make Metalava checkapi a seperate run." 2018-08-24 06:03:23 +00:00
Nan Zhang
ed0a39dba7 Make Metalava checkapi a seperate run.
We should not squeeze all the args to one Metalava run, especially for
checkapi.

Bug: b/113126618
Test: m -j checkapi, and check out dir api-stubs-docs.
Change-Id: I8d0c75745c7861b6de9070ef69f8e9284473a5d7
2018-08-23 17:30:38 -07:00
Chih-hung Hsieh
f02915fe87 Merge "Use simpler per-file syntax."
am: 9045aa89e5

Change-Id: I1e4138e7122c5d69ed5d247987861a825d9fb58c
2018-08-23 15:35:31 -07:00
Chih-hung Hsieh
5761ca65c6 Merge "Add clang-tidy.sh to filter out troublesome flags."
am: a644fbfa2c

Change-Id: I79f64979576431e85d6196110615450da1c4eea3
2018-08-23 15:34:55 -07:00
Chih-hung Hsieh
9045aa89e5 Merge "Use simpler per-file syntax." 2018-08-23 22:26:13 +00:00
Chih-hung Hsieh
a644fbfa2c Merge "Add clang-tidy.sh to filter out troublesome flags." 2018-08-23 22:23:59 +00:00
Chih-Hung Hsieh
615834ae65 Use simpler per-file syntax.
* Add owners to clang.go and tidy.go.

Test: build/make/tools/checkowners.py -c -v OWNERS
Change-Id: I28e5b1feb89d24cb26c9907368fb5f01533d283e
2018-08-23 12:58:56 -07:00
Tom Cherry
7803a011d1 Add $PRODUCT_OUT/ramdisk to installclean
Bug: 79173823
Test: installclean removes this directory
Change-Id: I56dabba29064709112caad6549af7eacbe8469e8
2018-08-23 11:12:29 -07:00
Nan Zhang
5d7a0505a2 Support API compatibility check in Soong
am: a05ff57f29

Change-Id: I91a69ff4ae638de5f1db3ded4a722d67c242cafe
2018-08-23 02:31:56 -07:00
Nan Zhang
2afc01d3e5 Add support for dumping proguard api file.
am: 66dc236781

Change-Id: Ifc85e843b3cb6b60fbcbfc01678b2268b87e3885
2018-08-22 20:08:25 -07:00
Nan Zhang
a05ff57f29 Support API compatibility check in Soong
Test: m -j api-stubs-docs
Bug: b/78245848
Change-Id: Id88a3e3716f9f07f0dc0071aa56a328c4712fcc9
2018-08-22 18:28:58 -07:00