Commit graph

6513 commits

Author SHA1 Message Date
Stephen Hines
828484cc95 Prebuilt sanitizer libraries should always come from linux-x86. am: 755fe07256 am: 11a27f61e3
am: af0d71c83b

Change-Id: I462fc0542755c59b542c921dee3194dc8b048045
2018-01-25 15:00:05 +00:00
Stephen Hines
af0d71c83b Prebuilt sanitizer libraries should always come from linux-x86. am: 755fe07256
am: 11a27f61e3

Change-Id: Ie0a02d25ee83c5d42a052a7df3f2372f45427323
2018-01-25 14:57:34 +00:00
Stephen Hines
11a27f61e3 Prebuilt sanitizer libraries should always come from linux-x86.
am: 755fe07256

Change-Id: If34b470432858ede8af06dc2d1a6fe970fa16346
2018-01-25 14:55:03 +00:00
Jaekyun Seok
e3e265939f Use product instead of oem for Product specific module am: 5cfbfbb67a am: 2b6236308b
am: be16d5e84f

Change-Id: I6ee908710e7d7b7fe9d3ce7e6c43287e3e8c0835
2018-01-25 04:17:04 +00:00
Jaekyun Seok
be16d5e84f Use product instead of oem for Product specific module am: 5cfbfbb67a
am: 2b6236308b

Change-Id: If550711035e62c0584abcc41cf5e9ea8be45c997
2018-01-25 04:11:53 +00:00
Jaekyun Seok
2b6236308b Use product instead of oem for Product specific module
am: 5cfbfbb67a

Change-Id: I3db5f0036c271d9e0b9e86ba139eec689dcac16d
2018-01-25 04:04:04 +00:00
Stephen Hines
755fe07256 Prebuilt sanitizer libraries should always come from linux-x86.
Bug: http://b/68397894
Test: Build on darwin with new toolchain.
Change-Id: I4d81efdc84d0b6f07482206430252ea63a4b081b
2018-01-24 19:58:36 -08:00
Jaekyun Seok
5cfbfbb67a Use product instead of oem for Product specific module
Bug: 64195575
Test: succeeded building product.img with BOARD_PRODUCTIMAGE_PARTITION_SIZE,
BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE and PRODUCT_PRODUCT_VERITY_PARTITION.
Change-Id: Icc4f8c16bc389fe20db680849f311d02df1299c3
2018-01-25 07:50:35 +09:00
Andreas Gampe
57c391b61b Merge "Soong: support Errorprone javacflags" am: fdc2b3bebe am: 1b1936c487
am: 4cba2cae61

Change-Id: I54d57b4e0872cb9927f4aeee97c16c141bf0bee7
2018-01-24 20:14:32 +00:00
Andreas Gampe
4cba2cae61 Merge "Soong: support Errorprone javacflags" am: fdc2b3bebe
am: 1b1936c487

Change-Id: Ic695e451d51e36ef81bcb0f46845a0361f44cc1d
2018-01-24 20:04:12 +00:00
Andreas Gampe
1b1936c487 Merge "Soong: support Errorprone javacflags"
am: fdc2b3bebe

Change-Id: I67b78c4620c14eb0b3b2f7d03dc3a7afae4f68e1
2018-01-24 19:54:11 +00:00
Treehugger Robot
fdc2b3bebe Merge "Soong: support Errorprone javacflags" 2018-01-24 19:30:02 +00:00
Dan Willemsen
2f24766d8b Make GOROOT consistent am: e7945d76ac am: d4b4154ee3
am: a1df46e11c

Change-Id: I6215b38f62e5b69f7765be315c20cbd3501699c5
2018-01-24 17:47:17 +00:00
Dan Willemsen
a1df46e11c Make GOROOT consistent am: e7945d76ac
am: d4b4154ee3

Change-Id: I7cef3ada4cde72509447eccf57567f942b85f743
2018-01-24 17:44:46 +00:00
Dan Willemsen
d4b4154ee3 Make GOROOT consistent
am: e7945d76ac

Change-Id: I823de19497ce5fdcde74b330ada8ab37ef1c2783
2018-01-24 17:42:47 +00:00
Dan Willemsen
e7945d76ac Make GOROOT consistent
We were previously setting GOROOT to "prebuilts/go/linux-x86" during the
ninja executions when we were running Soong. But we can also run Soong
during the main ninja execution, were GOROOT was unset. When the GOROOT
was unset, the default GOROOT in our Go installation is
"./prebuilts/go/linux-x86" (note the extra ./).

This would cause g.bootstrap.goRoot to change between some soong runs,
causing us to rebuild all go programs (and anything depending on them)
more often than necessary.

So instead, keep GOROOT undefined when running Soong. Everything that
matters is using runtime.GOROOT(), which will fall back to the default.

Continue setting $GOROOT for bootstrap.bash, otherwise it fails when
there is no system provided go binary. What we give bootstrap.bash
doesn't really matter, since we don't actually use the blueprint wrapper
in Android.

Test: m blueprint_tools; touch bionic/libc/tzcode/new.c;
      m blueprint_tools <doesn't rebuild everything>
Change-Id: I82f30c7c3b5d25e5cbf28fe37a97fdb776c4a164
2018-01-23 22:56:17 -08:00
Andreas Gampe
f3e5b558e7 Soong: support Errorprone javacflags
Add support for an errorprone block in Java modules that accepts
additional javacflags for the errorprone build.

Sample:

    errorprone: {
        javacflags: ["-Xep:EqualsNaN:WARN"],
    },

Bug: 72004718
Test: m RUN_ERROR_PRONE=true
Test: manual - add block with ERROR to a project
Test: androidmk_test
Change-Id: I502248fe76c26aa19102f413af72a7324c35b7f4
2018-01-23 20:30:01 -08:00
Justin Yun
91c448abe2 Skip installing the VNDK prebuilt if arch does not match am: 312ccb974f am: 04e36e89df
am: 27fa6a5ca8

Change-Id: I4f4596c8aee34a404f8a91ba9a6063543d3d0696
2018-01-23 23:12:08 +00:00
Justin Yun
27fa6a5ca8 Skip installing the VNDK prebuilt if arch does not match am: 312ccb974f
am: 04e36e89df

Change-Id: Ib5679d3295a8ee74bc2af17f26c1e0b20aab35ce
2018-01-23 23:07:09 +00:00
Justin Yun
04e36e89df Skip installing the VNDK prebuilt if arch does not match
am: 312ccb974f

Change-Id: If3e8194feb7ab337ef16fd6a30d1408a36194059
2018-01-23 23:03:35 +00:00
Justin Yun
312ccb974f Skip installing the VNDK prebuilt if arch does not match
For the VNDK prebuilt modules that does not match the target arch,
skip installing the module instead of marking the module to prevent
installing.

Bug: 72310137
Bug: 71787263
Test: Install VNDK snapshot v27
      lunch aosp_arm64_ab-userdebug; m vndk_v27_arm64
      - vndk libs must be installed
      m vndk_v27_arm
      - no vndk libs must be installed because target does not match
      OUT_DIR=out_clean m --skip-make

Change-Id: I9df25d90c276ce5e0d94ec7f9bee32f9ce7231df
2018-01-24 07:52:47 +09:00
Pirama Arumuga Nainar
cbc06ef5f3 Add only compiler-flag dependencies as implicit am: f231b19017 am: aaa3e473e9
am: 33fd287631

Change-Id: I20e15d2ae08d568331e78ce066650aac2221628f
2018-01-23 22:14:52 +00:00
Pirama Arumuga Nainar
33fd287631 Add only compiler-flag dependencies as implicit am: f231b19017
am: aaa3e473e9

Change-Id: I05ed494e3268e362ba551827a53eab6bccd5e0de
2018-01-23 22:11:23 +00:00
Pirama Arumuga Nainar
aaa3e473e9 Add only compiler-flag dependencies as implicit
am: f231b19017

Change-Id: Iee9cea01fc419c9a4df0b0ff5d2e82fa45f48390
2018-01-23 22:08:48 +00:00
Pirama Arumuga Nainar
f231b19017 Add only compiler-flag dependencies as implicit
Bug: http://b/72343691

Change https://android-review.googlesource.com/c/572758, in addition to
dependencies from the compiler flags, also marked all exported
dependencies as implicit.  This can cause lots of unnecessary
recompiles.  This change moves exported dependencies back as order-only
dependencies.

Test: 1. mma in art after changing profile_compilation_info.h triggers
         only a limited number of recompiles.
      2. verify that changes to PGO profile files trigger recompiles.

Change-Id: Icb0f4cd2b6da0add3b6e5206661e6aa7a577602f
2018-01-23 11:24:33 -08:00
Jiyong Park
596229feb4 Merge "Add PLATFORM_SYSTEMSDK_VERSIONS and BOARD_SYSTEMSDK_VERSIONS" am: d89f6621ae am: ee33e88111
am: a64cc46798

Change-Id: Ic3ea155a5f5dda891d59da2b9921f3cd5af96ddc
2018-01-23 19:00:09 +00:00
Jiyong Park
a64cc46798 Merge "Add PLATFORM_SYSTEMSDK_VERSIONS and BOARD_SYSTEMSDK_VERSIONS" am: d89f6621ae
am: ee33e88111

Change-Id: I617285c03082a27417815942f51b417f2f51a569
2018-01-23 18:47:27 +00:00
Jiyong Park
ee33e88111 Merge "Add PLATFORM_SYSTEMSDK_VERSIONS and BOARD_SYSTEMSDK_VERSIONS"
am: d89f6621ae

Change-Id: I1e5f9cca5412ad95c8d0e74a539408a5ea47258b
2018-01-23 18:38:16 +00:00
Treehugger Robot
d89f6621ae Merge "Add PLATFORM_SYSTEMSDK_VERSIONS and BOARD_SYSTEMSDK_VERSIONS" 2018-01-23 03:35:19 +00:00
Logan Chien
f14ee20a45 Support VNDK extensions am: f351174107 am: aef07f2351
am: e2b6f7bad2

Change-Id: Ia92be07756abdd322a7464bdd5b100ad1d265ed7
2018-01-23 02:44:31 +00:00
Logan Chien
e2b6f7bad2 Support VNDK extensions am: f351174107
am: aef07f2351

Change-Id: I9e062bdb3b81194c1c52576d5da282c439e1878a
2018-01-23 02:29:53 +00:00
Logan Chien
aef07f2351 Support VNDK extensions
am: f351174107

Change-Id: Ic8694308013e535da7431da1520e5ea023f5f0e1
2018-01-23 02:19:20 +00:00
Logan Chien
f351174107 Support VNDK extensions
This commit adds `extends: "name"` property and provides basic support
to VNDK extensions.  This is the simplest example:

```
cc_library {
    name: "libvndk",
    vendor_available: true,
    vndk {
        enabled: true,
    },
}

cc_library {
    name: "libvndk_ext",
    vendor: true,
    vndk: {
        enabled: true,
        extends: "libvndk",
    },
}
```

A vndk extension library must extend an existing vndk library which has
`vendor_available: true`.  These two libraries must have the same
`support_system_process` property.

VNDK-ext libraries are installed to `/vendor/lib[64]/vndk` and
VNDK-SP-ext libraries are installed to `/vendor/lib[64]/vndk-sp` by
default.

If there is a matching abi-dumps in `prebuilts/abi-dumps`,
`header-abi-diff` will be invoked to check for ABI breakages.

Bug: 38340960

Test: lunch aosp_walleye-userdebug && make -j8   # runs unit tests

Test: lunch aosp_arm-userdebug && make -j8  # build a target w/o VNDK

Test: Create a lsdump for a vndk lib, add an exported API to vndk lib,
and build fails as expected.

Test: Create a lsdump for a vndk lib, create an vndk extension lib with
extra API, and build succeeds as expected.

Test: Create libutils_ext, add an extra function to libutils_ext, and
call it from a HIDL service.

Change-Id: Iba90e08848ee99814405457f047321e6b52b2df0
2018-01-23 01:40:54 +00:00
Dan Willemsen
12f06eb14b Merge "Normalize LANG / LC_* environment" am: a167e3ba42 am: 6dd0600225
am: 281af4413e

Change-Id: I03c7dcf8baa436266418a077bb08cd32624c109c
2018-01-23 00:38:36 +00:00
Dan Willemsen
281af4413e Merge "Normalize LANG / LC_* environment" am: a167e3ba42
am: 6dd0600225

Change-Id: I16d1f23b7b5ce3d8f68da9051a04cc15053d3c87
2018-01-23 00:33:36 +00:00
Dan Willemsen
6dd0600225 Merge "Normalize LANG / LC_* environment"
am: a167e3ba42

Change-Id: I4a3a05923dc486911e9597db2fdc49a4ea9e133a
2018-01-23 00:28:32 +00:00
Treehugger Robot
a167e3ba42 Merge "Normalize LANG / LC_* environment" 2018-01-23 00:15:29 +00:00
Dan Albert
866ee8be39 Fix static_ndk_lib for sanitized libraries. am: 7d1eecf3cc am: bc341ee329
am: 9c9ddf04ec

Change-Id: I2f7763422aafa67bf2fcedae2e08a5ddd7c6458a
2018-01-22 20:55:23 +00:00
Dan Albert
9c9ddf04ec Fix static_ndk_lib for sanitized libraries. am: 7d1eecf3cc
am: bc341ee329

Change-Id: I8585ce8ca0829af847cb3a429b02a9359a85b49a
2018-01-22 20:52:44 +00:00
Dan Albert
bc341ee329 Fix static_ndk_lib for sanitized libraries.
am: 7d1eecf3cc

Change-Id: I41e9aeb072f8c5b5acb9485c99758ce39b514ae7
2018-01-22 20:50:09 +00:00
Dan Albert
7d1eecf3cc Fix static_ndk_lib for sanitized libraries.
Test: build-ndk-prebuilts.sh with libc/libm included in the NDK
Bug: https://github.com/android-ndk/ndk/issues/272
Change-Id: Ic398f541036f6c16f7dc58b9af984c60ed948495
2018-01-22 12:40:13 -08:00
Ivan Lozano
8704d606cb Merge "Revert "Support enabling overflow sanitization by path."" am: e021b0405d am: a8388ac9e6
am: 0370b8c419

Change-Id: I04330526423727b61697734c3cf160e93a6ccfc4
2018-01-20 04:05:46 +00:00
Ivan Lozano
0370b8c419 Merge "Revert "Support enabling overflow sanitization by path."" am: e021b0405d
am: a8388ac9e6

Change-Id: I19f71e6471308d32768148ddafbb84daa9d9ebad
2018-01-20 04:03:08 +00:00
Ivan Lozano
a8388ac9e6 Merge "Revert "Support enabling overflow sanitization by path.""
am: e021b0405d

Change-Id: Iaeceb0c8afece1ac7f2664e92de40f624da156ab
2018-01-20 04:00:31 +00:00
Treehugger Robot
e021b0405d Merge "Revert "Support enabling overflow sanitization by path."" 2018-01-20 03:54:23 +00:00
Dan Willemsen
3ca37c8471 Merge "Add Nan to OWNERS" am: af71ddfe28 am: 51bb0698ec
am: 4ebbb3f804

Change-Id: Ie4795f4337a1f7e7475666506aea695258aa5479
2018-01-20 02:11:30 +00:00
Dan Willemsen
4ebbb3f804 Merge "Add Nan to OWNERS" am: af71ddfe28
am: 51bb0698ec

Change-Id: If46959e23fd8b30054f3abc8f69c5f49190249f8
2018-01-20 02:08:01 +00:00
Dan Willemsen
51bb0698ec Merge "Add Nan to OWNERS"
am: af71ddfe28

Change-Id: I3134df47d72875661efbfd43c7155eb47035ac10
2018-01-20 02:04:59 +00:00
Treehugger Robot
af71ddfe28 Merge "Add Nan to OWNERS" 2018-01-20 01:59:37 +00:00
Ivan Lozano
b7d0f52337 Revert "Support enabling overflow sanitization by path."
This reverts commit 17df3c1b76.

Change-Id: Id5dab777da591c24113c3048b8606547a661afdd
2018-01-20 01:44:38 +00:00