Commit graph

2605 commits

Author SHA1 Message Date
Dan Willemsen
38220c5554 Merge "Support Make rewriting APP-*"
am: 977fd8f1fa

Change-Id: If48e81cd099868d856f0b67820f7571c8fe4854a
2017-05-26 19:56:52 +00:00
Dan Willemsen
977fd8f1fa Merge "Support Make rewriting APP-*" 2017-05-26 19:51:56 +00:00
Colin Cross
8a328382bf Merge "Add pdk product variable"
am: e5598169b3

Change-Id: I1248463d9d500d36bc327ca75cffe4a44790d7b1
2017-05-26 19:39:57 +00:00
Colin Cross
e5598169b3 Merge "Add pdk product variable" 2017-05-26 19:34:32 +00:00
Elliott Hughes
b5ed0ba503 Merge "Add bionic's scsi headers to the include path."
am: 5800668001

Change-Id: Ib20a70dca7e223a5752ff5f0f486366be56e0728
2017-05-26 18:08:24 +00:00
Elliott Hughes
5800668001 Merge "Add bionic's scsi headers to the include path." 2017-05-26 18:04:28 +00:00
Tobias Thierer
d4174a1f76 Merge "Allow version 9 toolchains for EXPERIMENTAL_USE_OPENJDK9"
am: 9847add454

Change-Id: Ia65d378ca7355b0fbbe29daf889a005f5dd0cb80
2017-05-26 12:14:04 +00:00
Tobias Thierer
9847add454 Merge "Allow version 9 toolchains for EXPERIMENTAL_USE_OPENJDK9" 2017-05-26 12:08:38 +00:00
Tobias Thierer
849bb6bf99 Allow version 9 toolchains for EXPERIMENTAL_USE_OPENJDK9
By default, the Android build enforces an OpenJDK 8 toolchain,
whose name contains the strings "openjdk" and "1.8".

After this CL, the check can be changed to enforce a toolchain
name starting with "9" and without the need for "openjdk" having
to occur in the name.

This experimental new check can be enabled by running:
  export EXPERIMENTAL_USE_OPENJDK9=true
To switch back to the standard check, run:
  unset EXPERIMENTAL_USE_OPENJDK9

Test: make ANDROID_COMPILE_WITH_JACK=false checkbuild tests \
      && make checkbuild tests
      (with OpenJDK 8u45 toolchain on the PATH)
Test: make EXPERIMENTAL_USE_OPENJDK9=true \
      ANDROID_COMPILE_WITH_JACK=false checkbuild
      (with jdk 9-ea+170 toolchain on the PATH)
Bug: 38177295

Change-Id: I75de3e23fe0b7f41eb6dd3f55dadd3fa3c3383bd
2017-05-26 12:45:25 +01:00
Dan Willemsen
04a16c7dcf Support Make rewriting APP-*
Test: ALLOW_MISSING_DEPENDENCIES=true m -j APP-Calculator
Change-Id: If5a0b60a0dbc615b6f47ea222616f8d34950ba0c
2017-05-25 22:18:57 -07:00
Jeff Gaston
2b78696f1c Merge "Revert "Initial implementation of bpfix""
am: 99f64d439c

Change-Id: Ib9433fc757174a1bcf4452990bf471e7f238e51e
2017-05-26 00:41:44 +00:00
Jeff Gaston
f60e71cf22 Merge "Revert "Run bpfix at the end of androidmk""
am: ee765dc4ab

Change-Id: I40536af1a4a98ee26058ce2cac3b710c910a9010
2017-05-26 00:41:32 +00:00
Jeff Gaston
99f64d439c Merge "Revert "Initial implementation of bpfix"" 2017-05-26 00:33:02 +00:00
Jeff Gaston
ee765dc4ab Merge "Revert "Run bpfix at the end of androidmk"" 2017-05-26 00:32:38 +00:00
Jeff Gaston
eb3186abbe Revert "Run bpfix at the end of androidmk"
This reverts commit 7fd905ae26.

Reason for revert: postsubmit build broken

Change-Id: Iddff17616c7307918380e15c1ed69ee5625a6c8e
2017-05-26 00:30:01 +00:00
Jeff Gaston
a8cc9c53fa Revert "Initial implementation of bpfix"
This reverts commit de4b0463f2.

Reason for revert: postsubmit build broken

Change-Id: If68a4af22e517b7be0876343a81c1319fa4d7046
2017-05-26 00:29:26 +00:00
Elliott Hughes
98418a0e33 Add bionic's scsi headers to the include path.
Bug: N/A (hit while upgrading strace to 4.17)
Test: builds
Change-Id: Ia98daf9563a788588827d43c17573896e4ec6f5a
2017-05-25 17:16:10 -07:00
Jayant Chowdhary
87e5bd425c Merge "Optimizations to abi checking."
am: 4e87d89066

Change-Id: I4fa9f85c997a3832f18b81f0ecc782e7091566f0
2017-05-25 23:45:31 +00:00
Treehugger Robot
4e87d89066 Merge "Optimizations to abi checking." 2017-05-25 23:37:36 +00:00
Jeff Gaston
4aa62c71f4 Merge changes Iefcae1b0,Ia94602f9
am: 7bde480e2c

Change-Id: If854c160b867487aa45fc31e2fb165a48639bc18
2017-05-25 23:26:39 +00:00
Jeff Gaston
c1d01e7206 Revert "Revert "Disallow multiple build executions in parallel""
am: 3615fe8665

Change-Id: I591dc705d6edbff6aa26cde22371f6f032608a6c
2017-05-25 23:26:28 +00:00
Treehugger Robot
7bde480e2c Merge changes Iefcae1b0,Ia94602f9
* changes:
  Run bpfix at the end of androidmk
  Initial implementation of bpfix
2017-05-25 23:18:28 +00:00
Jayant Chowdhary
715cac3971 Optimizations to abi checking.
We now add export_static_lib_headers, export_generated_headers to the
filters while dumping the abi of a library using header-abi-dumper
(through -I<dir> additions to the invocation of header-abi-dumper and
header-abi-linker)

Also add support for zipped reference source based abi dumps.

Test: mm -j64 in hardware/interfaces/nfc/default/1.0 produces
android.hardware.nfc@1.0.so.lsdump with abi filtered out using generated
headers.

Test: Copied the linked abi dumps produced by mm -j64 in bionic/libc to
prebuilts/abi-dumps/ndk and gzipped them. Ran mm -j64 again in
bionic/libc and verified header-abi-diff getting invoked.

Bug: 32750600

Change-Id: I26210af908c87a6143e39fa25f50307acb68a387
2017-05-25 14:46:58 -07:00
Colin Cross
dab550d68b Add pdk product variable
The pdk product variable will be set by make when TARGET_BUILD_PDK
is set, and can be used to disable modules that won't build in the
PDK.

Test: builds
Bug: 62086238
Change-Id: I2191a57b9b06680fd741308e7464275a89773530
2017-05-25 10:18:24 -07:00
Jeff Gaston
3615fe8665 Revert "Revert "Disallow multiple build executions in parallel""
Bug: 36698966
Test: m -j & m -j # (run two builds at once)

This reverts commit be9cd1192b.

Change-Id: Ia15c0bf156a6de54da054eab8134f36bae0823ca
2017-05-24 13:22:19 -07:00
Jeff Gaston
7fd905ae26 Run bpfix at the end of androidmk
Bug: 38351765
Test: androidmk Android.mk > Android.bp
Change-Id: Iefcae1b01f4e915ec20782b302ba4350a20d0f1a
2017-05-24 13:06:35 -07:00
Jeff Gaston
de4b0463f2 Initial implementation of bpfix
Bug: 38351765
Test: bpfix Android.bp

Change-Id: Ia94602f93bc40db3d006174c39102ac5fd29a64c
2017-05-24 13:06:35 -07:00
Tobias Thierer
ce18bd5a63 Merge "Drop build support for LEGACY_USE_JAVA7."
am: 442b7e6dc9

Change-Id: I479a556358416448d4cb670e4db0a7ffd9122d3b
2017-05-24 10:28:06 +00:00
Tobias Thierer
442b7e6dc9 Merge "Drop build support for LEGACY_USE_JAVA7." 2017-05-24 10:24:53 +00:00
Dan Willemsen
0c8cc10874 Merge "Export cc_benchmark as NATIVE_TESTS to Make"
am: ad086267e3

Change-Id: Idfbb32917c8e833978c71bd7bbae7fe32a744af6
2017-05-24 00:30:47 +00:00
Treehugger Robot
ad086267e3 Merge "Export cc_benchmark as NATIVE_TESTS to Make" 2017-05-24 00:28:11 +00:00
Dan Willemsen
58a5c8b206 Export cc_benchmark as NATIVE_TESTS to Make
This fixes some warnings on internal master where the compatibility
suite logic didn't look at EXECUTABLES (it was checking for
LOCAL_MODULE_CLASS == NATIVE_BENCHMARK, which doesn't exist).

Test: Compare out/soong/Android-aosp_arm64.mk
Test: Compare out/build-aosp_arm64.ninja
Change-Id: Ibe3c40e81e26f4c4cb9fd5bea1619b94181764fb
2017-05-23 15:55:12 -07:00
Dan Willemsen
0567918b3c Merge "Move dataclean and installclean to soong_ui"
am: 5b2e720b46

Change-Id: I097f3827a1db7e7ebd3e318fb94f322bc1cfc318
2017-05-23 22:41:09 +00:00
Treehugger Robot
5b2e720b46 Merge "Move dataclean and installclean to soong_ui" 2017-05-23 22:32:34 +00:00
Steven Moreland
d719150b24 Merge "Add all packages under packages/apps to root.bp"
am: d7cbea9990

Change-Id: I975824043691850956e37816868014c7cafe78e6
2017-05-23 17:57:17 +00:00
Treehugger Robot
d7cbea9990 Merge "Add all packages under packages/apps to root.bp" 2017-05-23 17:51:17 +00:00
Tobias Thierer
8b4319c3aa Drop build support for LEGACY_USE_JAVA7.
This flag allowed for building with an OpenJDK 7 toolchain. It was
used for build bot builds that now work with an OpenJDK 8 toolchain.
Hence, this feature is no longer required. This CL drops it.

Bug: 27583810
Test: Treehugger build succeeds.
Change-Id: Iba9cf12cff2597fa70aa9999e8a6bda190f29f3c
2017-05-23 14:20:03 +01:00
Dan Willemsen
1ab3460d0d Merge "Prepare multiproduct_kati to run on the build servers"
am: e2eaf9acf8

Change-Id: I1b43a052304bea50070b61fcaa7e65f1c2d5c573
2017-05-23 02:19:41 +00:00
Treehugger Robot
e2eaf9acf8 Merge "Prepare multiproduct_kati to run on the build servers" 2017-05-23 02:13:58 +00:00
Jayant Chowdhary
a28b3aff1d Merge "Add arch, lib name to header-abi-diff invocation."
am: 9156330ded

Change-Id: Ic50aee94f09d73d4ec669643c2b0772dc352a07c
2017-05-23 00:06:04 +00:00
Jayant Chowdhary
9156330ded Merge "Add arch, lib name to header-abi-diff invocation." 2017-05-22 23:47:15 +00:00
Dan Willemsen
f624fb92f6 Prepare multiproduct_kati to run on the build servers
Adds a -dist argument that will use DIST_DIR to save logs.

Also writes a summary of each std.log to stderr on errors, so that the
error is more likely to show up in the error reporting. This output is
prefixed with "> " to differentiate it from the progress reports from
multiproduct_kati itself.

Test: multiproduct_kati -only-config
Test: DIST_DIR=dist build/soong/build_test.bash -dist (introducing errors)
Change-Id: I5005b5f3f200c876bc004dd9b0e01e7b6edf5be2
2017-05-22 16:37:38 -07:00
Goran Jakovljevic
ea6ce26b46 Merge "Fix mips32r2-fp-xburst build"
am: 6b8eb63fc2

Change-Id: I1564e19eea37a1ce2e6eda991fd4264b5080d3d0
2017-05-22 23:08:29 +00:00
Treehugger Robot
6b8eb63fc2 Merge "Fix mips32r2-fp-xburst build" 2017-05-22 22:54:11 +00:00
Jayant Chowdhary
f54e0a79e2 Add arch, lib name to header-abi-diff invocation.
Test: mm -j64 in platform/bionic, platform/system/core/liblog.

Bug: 38325544

Change-Id: Ia2098c1facf2999ef51d55212acc1317e2bf98c1
2017-05-22 10:54:23 -07:00
Steven Moreland
8fc756987e Merge "Add Treble as soong variable."
am: a9ec71f54f

Change-Id: I50eb0ba541a40244582b2e30d01e6595a65ad3be
2017-05-20 00:13:09 +00:00
Treehugger Robot
a9ec71f54f Merge "Add Treble as soong variable." 2017-05-20 00:05:51 +00:00
Steven Moreland
e24bc204c9 Add Treble as soong variable.
This exposes PRODUCT_FULL_TREBLE.

This is required so that we can add sane defaults to Treble code.

Test: manual
Bug: 38415912
Change-Id: Ia3ea4aeee799b998380a1600026075dab66286a3
2017-05-19 15:19:57 -07:00
Dan Willemsen
f052f78b40 Move dataclean and installclean to soong_ui
This speeds things up a little bit, but the major win is that we don't
need to recursively call into the build during the auto installclean.

Test: m -j installclean
Test: m -j dataclean
Change-Id: I09ded8dbd8a2015c7848bc0042dfd3adad1b31c9
2017-05-18 15:48:25 -07:00
Leo Li
c36e13ca3b Merge "Make factory functions in cc/prebuilt.go public. Test: refactoring CL."
am: 454fcd429d

Change-Id: I020f30fc556c3283aeddf1db8b91d16c832204c8
2017-05-18 19:05:38 +00:00