OSDN Git Service

android-x86/build.git
9 years agoam 2e4dd9ab: Merge "Fix the permission in common.ZipWriteStr()."
Tao Bao [Sat, 11 Jul 2015 01:11:43 +0000 (01:11 +0000)]
am 2e4dd9ab: Merge "Fix the permission in common.ZipWriteStr()."

* commit '2e4dd9ab2635f6a22df407ae1ee4dc16e0601102':
  Fix the permission in common.ZipWriteStr().

9 years agoMerge "Fix the permission in common.ZipWriteStr()."
Tao Bao [Sat, 11 Jul 2015 00:58:32 +0000 (00:58 +0000)]
Merge "Fix the permission in common.ZipWriteStr()."

9 years agoFix the permission in common.ZipWriteStr().
Tao Bao [Sat, 11 Jul 2015 00:18:23 +0000 (17:18 -0700)]
Fix the permission in common.ZipWriteStr().

common.ZipWriteStr() should set a default file permission to 0o100644
instead of 0o644.

Change-Id: I8c89d8442b095b56ad3a0d47afdfa73ce55ad0c8

9 years agoam c8812493: Merge "Pack file_contexts into target_files zip."
Tao Bao [Fri, 10 Jul 2015 21:41:12 +0000 (21:41 +0000)]
am c8812493: Merge "Pack file_contexts into target_files zip."

* commit 'c881249354d9a847b09d314fd1a64bbab122f0fa':
  Pack file_contexts into target_files zip.

9 years agoMerge "Pack file_contexts into target_files zip."
Tao Bao [Fri, 10 Jul 2015 21:21:53 +0000 (21:21 +0000)]
Merge "Pack file_contexts into target_files zip."

9 years agoPack file_contexts into target_files zip.
Tao Bao [Thu, 9 Jul 2015 18:51:16 +0000 (11:51 -0700)]
Pack file_contexts into target_files zip.

file_contexts (specified by SELINUX_FC) is needed both when building
and (re)packaging. We used to use the copy in out/ when building, and
looked for the copy in BOOT/RAMDISK/ when packaging from target_files
zip. With system_root_image enabled, the file_contexts needed for
building and packaging might be different from the one on device. So
we explicitly pack the file as META/file_contexts in target_files zip.

Also refactor out the overriding of selinux_fc property into
common.LoadInfoDict().

Change-Id: I94f9ea6671b3792c12c1c21573840743d63da39a
(cherry picked from commit aa7318c3849095aeb3bea00efbf303c0c40a089d)

9 years agoam da724f7a: Merge "Zero out blocks that may be touched by dm-verity."
Tao Bao [Fri, 10 Jul 2015 21:01:54 +0000 (21:01 +0000)]
am da724f7a: Merge "Zero out blocks that may be touched by dm-verity."

* commit 'da724f7a630abc122f8eae042264ee81cf1450c4':
  Zero out blocks that may be touched by dm-verity.

9 years agoMerge "Zero out blocks that may be touched by dm-verity."
Tao Bao [Fri, 10 Jul 2015 20:51:34 +0000 (20:51 +0000)]
Merge "Zero out blocks that may be touched by dm-verity."

9 years agoZero out blocks that may be touched by dm-verity.
Tao Bao [Fri, 10 Jul 2015 00:37:49 +0000 (17:37 -0700)]
Zero out blocks that may be touched by dm-verity.

dm-verity may touch some blocks that are not in the care_map due to
block device read-ahead. It will fail if such blocks contain
non-zeroes. As a workaround, we mark them as extended blocks and
zero out explicitly to avoid dm-verity failures.

Bug: 20881595
Change-Id: Id097138bfd065c84eac088b3ad49758010b2927b
(cherry picked from commit 2fd2c9bfd6c9beeaeccb4632b785227fe56c6006)

9 years agoam 76eaa968: Merge "Remove HAVE_WIN32_IPC."
Elliott Hughes [Thu, 9 Jul 2015 17:50:52 +0000 (17:50 +0000)]
am 76eaa968: Merge "Remove HAVE_WIN32_IPC."

* commit '76eaa96875d5aac8d5141095e9e345a9ff84d814':
  Remove HAVE_WIN32_IPC.

9 years agoMerge "Remove HAVE_WIN32_IPC."
Elliott Hughes [Thu, 9 Jul 2015 17:30:16 +0000 (17:30 +0000)]
Merge "Remove HAVE_WIN32_IPC."

9 years agoRemove HAVE_WIN32_IPC.
Elliott Hughes [Thu, 9 Jul 2015 17:20:13 +0000 (10:20 -0700)]
Remove HAVE_WIN32_IPC.

Change-Id: I6c01ed5b059c230d7382dc6158103f31d4bf9dbb

9 years agoam 60dda9c4: Merge "Remove mkbootimg from the pathmap."
Elliott Hughes [Wed, 8 Jul 2015 23:22:45 +0000 (23:22 +0000)]
am 60dda9c4: Merge "Remove mkbootimg from the pathmap."

* commit '60dda9c44dfef577d8f95784c1554696882d83f7':
  Remove mkbootimg from the pathmap.

9 years agoam fd5692b3: Merge "Stop polluting the namespace with HAVE_MALLOC_H in AndroidConfig.h."
Elliott Hughes [Wed, 8 Jul 2015 23:22:44 +0000 (23:22 +0000)]
am fd5692b3: Merge "Stop polluting the namespace with HAVE_MALLOC_H in AndroidConfig.h."

* commit 'fd5692b32c88306cfc800bdffb10a277d9cb080a':
  Stop polluting the namespace with HAVE_MALLOC_H in AndroidConfig.h.

9 years agoMerge "Remove mkbootimg from the pathmap."
Elliott Hughes [Wed, 8 Jul 2015 23:13:31 +0000 (23:13 +0000)]
Merge "Remove mkbootimg from the pathmap."

9 years agoMerge "Stop polluting the namespace with HAVE_MALLOC_H in AndroidConfig.h."
Elliott Hughes [Wed, 8 Jul 2015 23:11:17 +0000 (23:11 +0000)]
Merge "Stop polluting the namespace with HAVE_MALLOC_H in AndroidConfig.h."

9 years agoRemove mkbootimg from the pathmap.
Elliott Hughes [Wed, 8 Jul 2015 23:05:17 +0000 (16:05 -0700)]
Remove mkbootimg from the pathmap.

It's only ever referred to directly. (Should probably move to
system/core/include, but that's orthogonal to this change.)

Change-Id: I353afff031a29206aaa5a0991fe0ccb39e4731e2

9 years agoam 8f548f35: Merge "Remove pathmap.mk entries for libc."
Elliott Hughes [Wed, 8 Jul 2015 21:34:53 +0000 (21:34 +0000)]
am 8f548f35: Merge "Remove pathmap.mk entries for libc."

* commit '8f548f35d6c01c9dea76da885165e40aa10151f9':
  Remove pathmap.mk entries for libc.

9 years agoMerge "Remove pathmap.mk entries for libc."
Elliott Hughes [Wed, 8 Jul 2015 21:19:59 +0000 (21:19 +0000)]
Merge "Remove pathmap.mk entries for libc."

9 years agoRemove pathmap.mk entries for libc.
Elliott Hughes [Wed, 8 Jul 2015 20:13:37 +0000 (13:13 -0700)]
Remove pathmap.mk entries for libc.

Change-Id: I9f4ce70696dd7df5922b3c80501fac9c7d4b7149

9 years agoStop polluting the namespace with HAVE_MALLOC_H in AndroidConfig.h.
Elliott Hughes [Wed, 8 Jul 2015 20:12:38 +0000 (13:12 -0700)]
Stop polluting the namespace with HAVE_MALLOC_H in AndroidConfig.h.

Change-Id: If1cd88ee14bf9cbb4a0a1f608b0d015c9181c2c2

9 years agoam e246964b: Merge "Scan all init.*.rc files for flash_recovery service."
Tao Bao [Wed, 8 Jul 2015 17:39:02 +0000 (17:39 +0000)]
am e246964b: Merge "Scan all init.*.rc files for flash_recovery service."

* commit 'e246964b8f73056015379ff37ff746f549c0f20d':
  Scan all init.*.rc files for flash_recovery service.

9 years agoMerge "Scan all init.*.rc files for flash_recovery service."
Tao Bao [Wed, 8 Jul 2015 17:22:35 +0000 (17:22 +0000)]
Merge "Scan all init.*.rc files for flash_recovery service."

9 years agoScan all init.*.rc files for flash_recovery service.
Tao Bao [Wed, 8 Jul 2015 01:31:47 +0000 (18:31 -0700)]
Scan all init.*.rc files for flash_recovery service.

Clockwork builds may rename init.rc to init.core.rc. Change the OTA
script to scan all init.*.rc files to determine the proper location for
install-recovery.sh.

Bug: 22128990
Change-Id: Icad3497d1663e074b938919b40fc239c84fbeb2b
(cherry picked from commit 610754e5ad84b2e65358d85dd38a4e0c86dc9342)

9 years agoam a0021026: Merge "fix up ota_from_target_files symlink detection."
Tao Bao [Tue, 7 Jul 2015 17:02:47 +0000 (17:02 +0000)]
am a0021026: Merge "fix up ota_from_target_files symlink detection."

* commit 'a00210263efdce91c8035e34e062c67e8828c4a5':
  fix up ota_from_target_files symlink detection.

9 years agoMerge "fix up ota_from_target_files symlink detection."
Tao Bao [Tue, 7 Jul 2015 16:48:50 +0000 (16:48 +0000)]
Merge "fix up ota_from_target_files symlink detection."

9 years agofix up ota_from_target_files symlink detection.
Ying Wang [Mon, 6 Jul 2015 21:02:01 +0000 (14:02 -0700)]
fix up ota_from_target_files symlink detection.

Change-Id: I10b668096d4e61e75473dd805f96387049f29b79

9 years agoam 48a27bcb: Merge "Fix OTA scripts to generate incremental BBOTA with OEM property."
Tao Bao [Mon, 6 Jul 2015 16:40:49 +0000 (16:40 +0000)]
am 48a27bcb: Merge "Fix OTA scripts to generate incremental BBOTA with OEM property."

* commit '48a27bcbb15774d0360fa344420a53cc72cd6708':
  Fix OTA scripts to generate incremental BBOTA with OEM property.

9 years agoMerge "Fix OTA scripts to generate incremental BBOTA with OEM property."
Tao Bao [Mon, 6 Jul 2015 16:31:50 +0000 (16:31 +0000)]
Merge "Fix OTA scripts to generate incremental BBOTA with OEM property."

9 years agoFix OTA scripts to generate incremental BBOTA with OEM property.
Tao Bao [Mon, 6 Jul 2015 04:08:33 +0000 (21:08 -0700)]
Fix OTA scripts to generate incremental BBOTA with OEM property.

Bug: 21803136
Change-Id: I3a45e8aea0b4f4f4f2acb4c9c8a7fad7a014680c

9 years agoam 2e26f896: Merge "Simplify LOCAL_NO_CRT."
Ying Wang [Thu, 2 Jul 2015 23:06:54 +0000 (23:06 +0000)]
am 2e26f896: Merge "Simplify LOCAL_NO_CRT."

* commit '2e26f896a65563f750f2d459d13cc8edfa705d95':
  Simplify LOCAL_NO_CRT.

9 years agoMerge "Simplify LOCAL_NO_CRT."
Ying Wang [Thu, 2 Jul 2015 22:59:37 +0000 (22:59 +0000)]
Merge "Simplify LOCAL_NO_CRT."

9 years agoSimplify LOCAL_NO_CRT.
Ying Wang [Thu, 2 Jul 2015 22:57:45 +0000 (15:57 -0700)]
Simplify LOCAL_NO_CRT.

Change-Id: If2486e4861071df6b225fe7f387530a38f554484

9 years agoam cd26a2dd: Merge "Remove HAVE_STDINT_H namespace pollution."
Elliott Hughes [Thu, 2 Jul 2015 18:58:41 +0000 (18:58 +0000)]
am cd26a2dd: Merge "Remove HAVE_STDINT_H namespace pollution."

* commit 'cd26a2dd7e2be499c9eb8b3e907cb3d31b1ed5be':
  Remove HAVE_STDINT_H namespace pollution.

9 years agoMerge "Remove HAVE_STDINT_H namespace pollution."
Elliott Hughes [Thu, 2 Jul 2015 18:50:25 +0000 (18:50 +0000)]
Merge "Remove HAVE_STDINT_H namespace pollution."

9 years agoam b2275868: Merge "Add LOCAL_NO_LIBGCC."
Stephen Hines [Thu, 2 Jul 2015 18:45:45 +0000 (18:45 +0000)]
am b2275868: Merge "Add LOCAL_NO_LIBGCC."

* commit 'b2275868e15caef2a04f0530749cc06415ef10f6':
  Add LOCAL_NO_LIBGCC.

9 years agoMerge "Add LOCAL_NO_LIBGCC."
Stephen Hines [Thu, 2 Jul 2015 18:38:31 +0000 (18:38 +0000)]
Merge "Add LOCAL_NO_LIBGCC."

9 years agoAdd LOCAL_NO_LIBGCC.
Ying Wang [Thu, 2 Jul 2015 18:05:27 +0000 (11:05 -0700)]
Add LOCAL_NO_LIBGCC.

This can be used to compile independent libraries without the need for
libgcc.a.

Change-Id: I924200995569d9a978ddbaa6ec321d80734f1374

9 years agoRemove HAVE_STDINT_H namespace pollution.
Elliott Hughes [Thu, 2 Jul 2015 17:26:53 +0000 (10:26 -0700)]
Remove HAVE_STDINT_H namespace pollution.

Change-Id: I1e42d1616da0f3a90f8da189d2e919f781c4eb5a

9 years agoam bbaeaa58: Merge "Configure synci generation explicitly"
Ying Wang [Thu, 2 Jul 2015 00:38:53 +0000 (00:38 +0000)]
am bbaeaa58: Merge "Configure synci generation explicitly"

* commit 'bbaeaa5879c5ab380c024bd20f35e927f4d19c87':
  Configure synci generation explicitly

9 years agoMerge "Configure synci generation explicitly"
Ying Wang [Wed, 1 Jul 2015 18:58:51 +0000 (18:58 +0000)]
Merge "Configure synci generation explicitly"

9 years agoam 473dfdf7: Merge "Move sanitized vendor libraries to /data/vendor/lib(|64)."
Evgenii Stepanov [Tue, 30 Jun 2015 21:48:40 +0000 (21:48 +0000)]
am 473dfdf7: Merge "Move sanitized vendor libraries to /data/vendor/lib(|64)."

* commit '473dfdf71b984fb04ae8f60b8941d89ef5c76710':
  Move sanitized vendor libraries to /data/vendor/lib(|64).

9 years agoMerge "Move sanitized vendor libraries to /data/vendor/lib(|64)."
Evgenii Stepanov [Tue, 30 Jun 2015 21:30:29 +0000 (21:30 +0000)]
Merge "Move sanitized vendor libraries to /data/vendor/lib(|64)."

9 years agoMove sanitized vendor libraries to /data/vendor/lib(|64).
Evgenii Stepanov [Tue, 30 Jun 2015 21:02:02 +0000 (14:02 -0700)]
Move sanitized vendor libraries to /data/vendor/lib(|64).

Sanitized RPATH now mentions /system/vendor/lib to preserve overlay
in the case when a sanitized version of a vendor library can not be
built.

Bug: 22199458
Change-Id: I3222d2e1d6c08fdd1e0404fcb7db347aa4a92bb7

9 years agoam f40a34fd: Merge "Retry adjusting the size computation for reserved blocks."
Tao Bao [Tue, 30 Jun 2015 19:31:09 +0000 (19:31 +0000)]
am f40a34fd: Merge "Retry adjusting the size computation for reserved blocks."

* commit 'f40a34fd23e737b14067308700b3eef27e42d3b1':
  Retry adjusting the size computation for reserved blocks.

9 years agoMerge "Retry adjusting the size computation for reserved blocks."
Tao Bao [Tue, 30 Jun 2015 19:19:40 +0000 (19:19 +0000)]
Merge "Retry adjusting the size computation for reserved blocks."

9 years agoRetry adjusting the size computation for reserved blocks.
Tao Bao [Tue, 23 Jun 2015 18:16:05 +0000 (11:16 -0700)]
Retry adjusting the size computation for reserved blocks.

Due to the change in https://lwn.net/Articles/546473/, kernel reserves a
few extra blocks (lesser of 2% and 4096 blocks) on ext4 FS which leads to
OTA update failures. Adjust the size computation if the device has
BOARD_HAS_EXT4_RESERVED_BLOCKS := true.

It amends the last attemp in [1]. Now it computes the used blocks from the
make_ext4fs output, instead of altering its argument.

[1]: commit efbb5d2e692283be32069e808b88522727c7fe98.

Bug: 21522719
Bug: 22023465
Bug: 22174684
Change-Id: Iaae6507f6de68a5892f2e3035d330039287b4492
(cherry picked from commit c7a6f1e4f8ff504bf617a0415b2c43ab3d339294)

9 years agoam 5df6b5c3: Merge "sparse_img.py: Don\'t write empty map groups."
Tao Bao [Sat, 27 Jun 2015 16:47:53 +0000 (16:47 +0000)]
am 5df6b5c3: Merge "sparse_img.py: Don\'t write empty map groups."

* commit '5df6b5c3463bc8715510320beb7833c45371e021':
  sparse_img.py: Don't write empty map groups.

9 years agoMerge "sparse_img.py: Don't write empty map groups."
Tao Bao [Sat, 27 Jun 2015 16:37:39 +0000 (16:37 +0000)]
Merge "sparse_img.py: Don't write empty map groups."

9 years agosparse_img.py: Don't write empty map groups.
Tao Bao [Sat, 27 Jun 2015 00:49:39 +0000 (17:49 -0700)]
sparse_img.py: Don't write empty map groups.

In certain cases, we may have no mapping of ZERO or NONZERO blocks in
the image (such as squashfs at the moment). Don't write those groups if
they are empty.

Change-Id: I82aa05fbbd79130b08868585edd5298e531c4f5a

9 years agoam c94a705f: Merge "Use fstab in the source build"
Tao Bao [Fri, 26 Jun 2015 23:09:11 +0000 (23:09 +0000)]
am c94a705f: Merge "Use fstab in the source build"

* commit 'c94a705f445aa7edc2a30b364b59fe8becb02f11':
  Use fstab in the source build

9 years agoam dd77b561: Merge "Support SELinux context label when mounting"
Tao Bao [Fri, 26 Jun 2015 23:09:08 +0000 (23:09 +0000)]
am dd77b561: Merge "Support SELinux context label when mounting"

* commit 'dd77b561e5e6da3bb595505af625f69ca9f3943b':
  Support SELinux context label when mounting

9 years agoMerge "Use fstab in the source build"
Tao Bao [Fri, 26 Jun 2015 22:57:08 +0000 (22:57 +0000)]
Merge "Use fstab in the source build"

9 years agoMerge "Support SELinux context label when mounting"
Tao Bao [Fri, 26 Jun 2015 22:56:57 +0000 (22:56 +0000)]
Merge "Support SELinux context label when mounting"

9 years agoUse fstab in the source build
Tao Bao [Tue, 23 Jun 2015 02:17:41 +0000 (19:17 -0700)]
Use fstab in the source build

When generating incremental OTAs, we should use the fstab in the source
build instead of the target one. Similarly for recovery_mount_options.

Bug: 22011892
Change-Id: Ia02584c71af7d47835b1f62e7daa46f27940a545
(cherry picked from commit bebd3cfbf934beb18b73a4d4e98b98c2c0a1d6fe)

9 years agoam c8f97acc: Merge "SANITIZE_TARGET: allow undef symbols in non-sanitized shared...
Evgenii Stepanov [Fri, 26 Jun 2015 21:11:09 +0000 (21:11 +0000)]
am c8f97acc: Merge "SANITIZE_TARGET: allow undef symbols in non-sanitized shared libraries."

* commit 'c8f97acc633efe819d4343d7e9bfcb582a69baea':
  SANITIZE_TARGET: allow undef symbols in non-sanitized shared libraries.

9 years agoMerge "SANITIZE_TARGET: allow undef symbols in non-sanitized shared libraries."
Evgenii Stepanov [Fri, 26 Jun 2015 20:57:46 +0000 (20:57 +0000)]
Merge "SANITIZE_TARGET: allow undef symbols in non-sanitized shared libraries."

9 years agoSANITIZE_TARGET: allow undef symbols in non-sanitized shared libraries.
Evgenii Stepanov [Thu, 25 Jun 2015 23:38:25 +0000 (16:38 -0700)]
SANITIZE_TARGET: allow undef symbols in non-sanitized shared libraries.

These symbols are defined in the ASan runtime library, which is always
present at runtime.

Bug:21785137

Change-Id: Ib8418c66323fd4cdfdc05548048f32380cb84ee5

9 years agoam 8f180b90: Merge "Create userdata.img with real data when SANITIZE_TARGET=address."
Ying Wang [Thu, 25 Jun 2015 21:41:00 +0000 (21:41 +0000)]
am 8f180b90: Merge "Create userdata.img with real data when SANITIZE_TARGET=address."

* commit '8f180b904f6e03fdec75b3f5cc22b8226e4985ad':
  Create userdata.img with real data when SANITIZE_TARGET=address.

9 years agoMerge "Create userdata.img with real data when SANITIZE_TARGET=address."
Ying Wang [Thu, 25 Jun 2015 21:29:48 +0000 (21:29 +0000)]
Merge "Create userdata.img with real data when SANITIZE_TARGET=address."

9 years agoCreate userdata.img with real data when SANITIZE_TARGET=address.
Ying Wang [Thu, 25 Jun 2015 20:56:53 +0000 (13:56 -0700)]
Create userdata.img with real data when SANITIZE_TARGET=address.

Bug: 21785137
Change-Id: Ie0c36988759fe07419ad29bab5a71cdd0d992d2a

9 years agoam 19cfe7db: Merge "Add img2simg in host and ota packages"
Mohamad Ayyash [Thu, 25 Jun 2015 18:56:45 +0000 (18:56 +0000)]
am 19cfe7db: Merge "Add img2simg in host and ota packages"

* commit '19cfe7db4ce414ce36c973fe90e94afa898194d6':
  Add img2simg in host and ota packages

9 years agoMerge "Add img2simg in host and ota packages"
Mohamad Ayyash [Thu, 25 Jun 2015 18:44:02 +0000 (18:44 +0000)]
Merge "Add img2simg in host and ota packages"

9 years agoAdd img2simg in host and ota packages
Mohamad Ayyash [Wed, 24 Jun 2015 22:42:19 +0000 (15:42 -0700)]
Add img2simg in host and ota packages

Change-Id: Ide660cf3cf69c74bbd15d0ac6642b60d58f076fa
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
9 years agoam 042e8519: Merge "build_image.py: Make sparse squashfs images"
Mohamad Ayyash [Wed, 24 Jun 2015 22:13:08 +0000 (22:13 +0000)]
am 042e8519: Merge "build_image.py: Make sparse squashfs images"

* commit '042e851999a73fd14cd612b9c934ab2b2f308b75':
  build_image.py: Make sparse squashfs images

9 years agoMerge "build_image.py: Make sparse squashfs images"
Mohamad Ayyash [Wed, 24 Jun 2015 22:01:00 +0000 (22:01 +0000)]
Merge "build_image.py: Make sparse squashfs images"

9 years agobuild_image.py: Make sparse squashfs images
Mohamad Ayyash [Wed, 24 Jun 2015 17:44:29 +0000 (10:44 -0700)]
build_image.py: Make sparse squashfs images

Change-Id: Iea0399868a9406f9929d8176d61d5698a2043697
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
9 years agoam c9fcdae2: Merge "Fix the error in sparse_img.py"
Tao Bao [Wed, 24 Jun 2015 00:59:35 +0000 (00:59 +0000)]
am c9fcdae2: Merge "Fix the error in sparse_img.py"

* commit 'c9fcdae29dafc998f11ad49fec07d508879b8785':
  Fix the error in sparse_img.py

9 years agoMerge "Fix the error in sparse_img.py"
Tao Bao [Wed, 24 Jun 2015 00:50:41 +0000 (00:50 +0000)]
Merge "Fix the error in sparse_img.py"

9 years agoFix the error in sparse_img.py
Tao Bao [Wed, 24 Jun 2015 00:30:35 +0000 (17:30 -0700)]
Fix the error in sparse_img.py

Bug: 22046423
Change-Id: I0796e14df2b523570f0c485d146273f5e5aa5494
(cherry picked from commit 2b4ff174ff09d3d4f69897c8f8004c57836975b4)

9 years agoam 83aca79b: Merge "Don\'t include static executables when SANITIZE_TARGET=address"
Ying Wang [Tue, 23 Jun 2015 20:11:24 +0000 (20:11 +0000)]
am 83aca79b: Merge "Don\'t include static executables when SANITIZE_TARGET=address"

* commit '83aca79b8df3296e24122f3ed9016f1463edb451':
  Don't include static executables when SANITIZE_TARGET=address

9 years agoMerge "Don't include static executables when SANITIZE_TARGET=address"
Ying Wang [Tue, 23 Jun 2015 19:59:56 +0000 (19:59 +0000)]
Merge "Don't include static executables when SANITIZE_TARGET=address"

9 years agoam b7f56b97: Merge "Revert "Hide unwinder symbols in each binary.""
Elliott Hughes [Tue, 23 Jun 2015 19:38:36 +0000 (19:38 +0000)]
am b7f56b97: Merge "Revert "Hide unwinder symbols in each binary.""

* commit 'b7f56b979bbfe00b67f6f6d573d43bcf607649eb':
  Revert "Hide unwinder symbols in each binary."

9 years agoMerge "Revert "Hide unwinder symbols in each binary.""
Elliott Hughes [Tue, 23 Jun 2015 19:29:26 +0000 (19:29 +0000)]
Merge "Revert "Hide unwinder symbols in each binary.""

9 years agoRevert "Hide unwinder symbols in each binary."
Bart Sears [Tue, 23 Jun 2015 19:23:13 +0000 (19:23 +0000)]
Revert "Hide unwinder symbols in each binary."

This reverts commit dc30a16ba27c4a0de388696869cd1c518ecb3f3a.

Change-Id: Ib6af148bcaa3041b3040e525442a39b493852794

9 years agoam 5e3fcc1e: Merge "Hide unwinder symbols in each binary."
Dan Albert [Tue, 23 Jun 2015 18:12:43 +0000 (18:12 +0000)]
am 5e3fcc1e: Merge "Hide unwinder symbols in each binary."

* commit '5e3fcc1e6c5bbf7e85bd9744f178c529dd6c1d49':
  Hide unwinder symbols in each binary.

9 years agoMerge "Hide unwinder symbols in each binary."
Dan Albert [Tue, 23 Jun 2015 18:00:36 +0000 (18:00 +0000)]
Merge "Hide unwinder symbols in each binary."

9 years agoDon't include static executables when SANITIZE_TARGET=address
Ying Wang [Tue, 23 Jun 2015 01:35:35 +0000 (18:35 -0700)]
Don't include static executables when SANITIZE_TARGET=address

Also we can't build the ota package without these static executables.

Bug: 21785137
Change-Id: I11b35abebced4b0608378a072ece2ab2dbadeffb

9 years agoam 82f6383f: Merge "Add variable ANDROID_NO_TEST_CHECK to not build all test modules"
Ying Wang [Tue, 23 Jun 2015 17:04:31 +0000 (17:04 +0000)]
am 82f6383f: Merge "Add variable ANDROID_NO_TEST_CHECK to not build all test modules"

* commit '82f6383fa6bcfc060bbe631b8dab570e3691bb88':
  Add variable ANDROID_NO_TEST_CHECK to not build all test modules

9 years agoMerge "Add variable ANDROID_NO_TEST_CHECK to not build all test modules"
Ying Wang [Tue, 23 Jun 2015 16:57:30 +0000 (16:57 +0000)]
Merge "Add variable ANDROID_NO_TEST_CHECK to not build all test modules"

9 years agoAdd variable ANDROID_NO_TEST_CHECK to not build all test modules
Claes Elgemark [Thu, 11 Jun 2015 06:22:38 +0000 (08:22 +0200)]
Add variable ANDROID_NO_TEST_CHECK to not build all test modules

Introduce a way to speed up local builds. Don't build all test
modules if ANDROID_NO_TEST_CHECK is set to true.

On master branch this reduces what is built by more than
300 apps and 50 java libraries. Time for doing this on a
12 core machine running with -j13 is about 10 minutes.

Change-Id: I90feb108695ee60d0dbbf497644f767cc3748215

9 years agoam 3d81b7d6: Merge "Add android.hardware.ethernet.xml for ranchu targets"
Bo Hu [Tue, 23 Jun 2015 06:49:02 +0000 (06:49 +0000)]
am 3d81b7d6: Merge "Add android.hardware.ethernet.xml for ranchu targets"

* commit '3d81b7d627b5076e8e850fca6233bd071f4f7c42':
  Add android.hardware.ethernet.xml for ranchu targets

9 years agoMerge "Add android.hardware.ethernet.xml for ranchu targets"
Bo Hu [Tue, 23 Jun 2015 06:37:53 +0000 (06:37 +0000)]
Merge "Add android.hardware.ethernet.xml for ranchu targets"

9 years agoHide unwinder symbols in each binary.
Dan Albert [Tue, 31 Mar 2015 23:47:09 +0000 (16:47 -0700)]
Hide unwinder symbols in each binary.

These symbols need to always be resolved for each binary. Making these
symbols hidden means that we will get a build breakage if this doesn't
happen, and should also prevent the situation where one unwinder's
symbols are visible to the other.

Bug: 18471342
Bug: 19958712
Change-Id: Ieff1f10dab254b60ed120410f45998cf75bb5b9b

9 years agoresolved conflicts for merge of bad5ebb6 to stage-aosp-master
Evgenii Stepanov [Fri, 19 Jun 2015 21:22:25 +0000 (14:22 -0700)]
resolved conflicts for merge of bad5ebb6 to stage-aosp-master

Change-Id: I6837884a3258f34baaf5a7d9ca6bbd6a3f3e62e5

9 years agoam eac1f6ed: Merge "With SANITIZE_TARGET, move shared libraries to /data."
Evgenii Stepanov [Fri, 19 Jun 2015 21:14:19 +0000 (21:14 +0000)]
am eac1f6ed: Merge "With SANITIZE_TARGET, move shared libraries to /data."

* commit 'eac1f6edbde64e81abd06f0ca32c705751b34ca9':
  With SANITIZE_TARGET, move shared libraries to /data.

9 years agoMerge "Clean intermediate files if SANITIZE_TARGET has changed."
Evgenii Stepanov [Fri, 19 Jun 2015 21:05:40 +0000 (21:05 +0000)]
Merge "Clean intermediate files if SANITIZE_TARGET has changed."

9 years agoMerge "With SANITIZE_TARGET, move shared libraries to /data."
Evgenii Stepanov [Fri, 19 Jun 2015 21:05:31 +0000 (21:05 +0000)]
Merge "With SANITIZE_TARGET, move shared libraries to /data."

9 years agoam d479a7a1: Merge "Enable SANITIZE_TARGET."
Evgenii Stepanov [Fri, 19 Jun 2015 18:26:43 +0000 (18:26 +0000)]
am d479a7a1: Merge "Enable SANITIZE_TARGET."

* commit 'd479a7a119b02624fe922b04125e053b2d968628':
  Enable SANITIZE_TARGET.

9 years agoClean intermediate files if SANITIZE_TARGET has changed.
Evgenii Stepanov [Fri, 12 Jun 2015 00:36:06 +0000 (17:36 -0700)]
Clean intermediate files if SANITIZE_TARGET has changed.

Do not clean installed files, only intermediate files. This way, two
consequitive builds first without, then with SANITIZE_TARGET will
produce a frankenbuild with both sets of shared libraries.

Bug: 21785137
Change-Id: I231868b15331be942c783458cf36233c2e7740d3

9 years agoWith SANITIZE_TARGET, move shared libraries to /data.
Evgenii Stepanov [Fri, 12 Jun 2015 00:32:31 +0000 (17:32 -0700)]
With SANITIZE_TARGET, move shared libraries to /data.

A fully (or even mostly) asan-instrumented device will have 2 copies of each
shared library, which might not fit on system partition. Moving instrumented
libraries to /data.

Bug: 21785137
Change-Id: I64184261da2eb24a1382c67e4931c34a5a38b3c0

9 years agoMerge "Enable SANITIZE_TARGET."
Evgenii Stepanov [Fri, 19 Jun 2015 18:15:07 +0000 (18:15 +0000)]
Merge "Enable SANITIZE_TARGET."

9 years agoam 4fbb83dd: Merge "Add support for `LOCAL_SANITIZE := integer`."
Dan Albert [Fri, 19 Jun 2015 18:03:12 +0000 (18:03 +0000)]
am 4fbb83dd: Merge "Add support for `LOCAL_SANITIZE := integer`."

* commit '4fbb83dd3b69729fe08e4a18dd13ca536ae7376f':
  Add support for `LOCAL_SANITIZE := integer`.

9 years agoMerge "Add support for `LOCAL_SANITIZE := integer`."
Dan Albert [Fri, 19 Jun 2015 17:51:10 +0000 (17:51 +0000)]
Merge "Add support for `LOCAL_SANITIZE := integer`."

9 years agoam 20f4a364: Merge "Cleanup unused clear_vars.mk entry."
Dan Albert [Fri, 19 Jun 2015 17:35:15 +0000 (17:35 +0000)]
am 20f4a364: Merge "Cleanup unused clear_vars.mk entry."

* commit '20f4a364a83d9a3906d3cf8b866d00437f8ff2d4':
  Cleanup unused clear_vars.mk entry.

9 years agoAdd support for `LOCAL_SANITIZE := integer`.
Dan Albert [Wed, 17 Jun 2015 06:27:34 +0000 (23:27 -0700)]
Add support for `LOCAL_SANITIZE := integer`.

This also does a bit of cleanup in config_sanitizers.mk. The result is
that `LOCAL_SANITIZE := <any arbitrary ubsan group>` should function
fine for both host and target.

This is a superset of LOCAL_DETECT_INTEGER_OVERFLOWS, so remove that.
This also checks integer division by zero.  It's supposed to cover
shifting undefined behaviors as well, but apparently it does not
(though `LOCAL_SANITIZE := shift` works fine).

Change-Id: I4ac99eafa6920a3f8cb82af37ce56ff0fdb95223

9 years agoMerge "Cleanup unused clear_vars.mk entry."
Dan Albert [Fri, 19 Jun 2015 17:27:41 +0000 (17:27 +0000)]
Merge "Cleanup unused clear_vars.mk entry."

9 years agoCleanup unused clear_vars.mk entry.
Dan Albert [Fri, 19 Jun 2015 17:24:07 +0000 (10:24 -0700)]
Cleanup unused clear_vars.mk entry.

Change-Id: Ibd7b87d1364a60289609a267a287c4afa1d5e5cb

9 years agoAdd android.hardware.ethernet.xml for ranchu targets
Miroslav Tisma [Mon, 15 Jun 2015 13:53:39 +0000 (15:53 +0200)]
Add android.hardware.ethernet.xml for ranchu targets

This commit adds android.hardware.ethernet.xml file for ethernet
permission to PRODUCT_COPY_FILES which will be copied to
/system/etc/permission folder on the target. Reason for adding
this permission file is for enabling the ethernet and having
functional networking until RIL backend support in ranchu is
implemented.

This requires dhcpcd_eth0 service definition in init.ranchu.rc.

Architectures that use goldfish emulator do not need ethernet
support, because networking is provided by RIL.

Change-Id: I7972f80cf78c0fdecf3fde45bf018230bbcefd38

9 years agoEnable SANITIZE_TARGET.
Evgenii Stepanov [Thu, 11 Jun 2015 20:57:10 +0000 (13:57 -0700)]
Enable SANITIZE_TARGET.

The same as SANITIZE_HOST, but for the target.
Also, skip all LOCAL_FORCE_STATIC_EXECUTABLE targets, as ASan does not
support static linking.

Bug: 21785137
Change-Id: Ief53ff8de1fee18f230d6c7dd31845db5bbd415c