OSDN Git Service

android-x86/build.git
8 years agoRead fstab from the source build.
Tao Bao [Wed, 29 Jul 2015 21:09:23 +0000 (14:09 -0700)]
Read fstab from the source build.

When creating incremental OTAs, we should always use the fstab from the
source build instead of the target.

Bug: 21948974
Change-Id: Iff44130f88a679b253ea1adcfac4ed8566ce9cc7

8 years agoMerge "Remove $(DEX2OAT) from DEX2OAT_DEPENDENCY when USE_DEX2OAT_DEBUG is set."
Ying Wang [Wed, 29 Jul 2015 16:59:50 +0000 (16:59 +0000)]
Merge "Remove $(DEX2OAT) from DEX2OAT_DEPENDENCY when USE_DEX2OAT_DEBUG is set."

8 years agoMerge "Remove HAVE_WINDOWS_PATHS."
Elliott Hughes [Wed, 29 Jul 2015 15:48:41 +0000 (15:48 +0000)]
Merge "Remove HAVE_WINDOWS_PATHS."

8 years agoRemove HAVE_WINDOWS_PATHS.
Elliott Hughes [Wed, 29 Jul 2015 15:45:40 +0000 (08:45 -0700)]
Remove HAVE_WINDOWS_PATHS.

Change-Id: I11284ceddf08eb284af56360f0cf80f4725c98e9

8 years agoMerge "Support systems that use a full copy of recovery image."
Tao Bao [Tue, 28 Jul 2015 23:28:40 +0000 (23:28 +0000)]
Merge "Support systems that use a full copy of recovery image."

8 years agoSupport systems that use a full copy of recovery image.
Tao Bao [Wed, 22 Jul 2015 19:33:18 +0000 (12:33 -0700)]
Support systems that use a full copy of recovery image.

If BOARD_USES_FULL_RECOVERY_IMAGE == true, a full copy of recovery
image will be carried as /system/etc/recovery.img instead of a patch
at /system/recovery_from_boot.p.

Bug: 22641135
Change-Id: Ie271d3e2d55d7b003f667ac5b44203d69b23c63b
(cherry picked from commit 8beab69bd5d728810aca55536017912e65777bb8)

8 years agoRemove $(DEX2OAT) from DEX2OAT_DEPENDENCY when USE_DEX2OAT_DEBUG is set.
Fredrik Roubert [Mon, 27 Jul 2015 19:48:39 +0000 (21:48 +0200)]
Remove $(DEX2OAT) from DEX2OAT_DEPENDENCY when USE_DEX2OAT_DEBUG is set.

Currently, DEX2OATD_DEPENDENCY is created by appending $(DEX2OATD) to
the value of DEX2OAT_DEPENDENCY and then if USE_DEX2OAT_DEBUG is set,
DEX2OAT_DEPENDENCY is set to DEX2OATD_DEPENDENCY, adding a dependency
on $(DEX2OAT) even in configurations where this will not be built.

This change removes DEX2OATD and DEX2OATD_DEPENDENCY entirely to instead
assign dex2oat or dex2oatd to DEX2OAT depending on USE_DEX2OAT_DEBUG,
making it possible to build with these flags set:

USE_DEX2OAT_DEBUG=true
ART_BUILD_HOST_NDEBUG=false
ART_BUILD_HOST_DEBUG=true
ART_BUILD_TARGET_NDEBUG=false
ART_BUILD_TARGET_DEBUG=true
make build-art-host

Change-Id: I4fa75d1b7e9751c73c43ec943fd8446cc231a070

8 years agoMerge "Remove unused "host/Directories.h"."
Elliott Hughes [Tue, 28 Jul 2015 14:55:06 +0000 (14:55 +0000)]
Merge "Remove unused "host/Directories.h"."

8 years agoRemove unused "host/Directories.h".
Elliott Hughes [Tue, 28 Jul 2015 14:49:02 +0000 (07:49 -0700)]
Remove unused "host/Directories.h".

There's no implementation of these functions.

Change-Id: Ic12286ccd1a392be32e5da67e5b7637bac4820f6

8 years agoMerge "Disallow LOCAL_CXX_STL with LOCAL_SDK_VERSION."
Dan Albert [Tue, 28 Jul 2015 00:04:36 +0000 (00:04 +0000)]
Merge "Disallow LOCAL_CXX_STL with LOCAL_SDK_VERSION."

8 years agoDisallow LOCAL_CXX_STL with LOCAL_SDK_VERSION.
Dan Albert [Mon, 27 Jul 2015 21:14:56 +0000 (14:14 -0700)]
Disallow LOCAL_CXX_STL with LOCAL_SDK_VERSION.

Change-Id: I2cd97b453ad24cc4e5d59b4035e861df41b8cbb9

8 years agoMerge "Bump generic_arm64 system partition size to 1200 MB."
Ying Wang [Mon, 27 Jul 2015 18:48:35 +0000 (18:48 +0000)]
Merge "Bump generic_arm64 system partition size to 1200 MB."

8 years agoBump generic_arm64 system partition size to 1200 MB.
Ying Wang [Mon, 27 Jul 2015 18:01:50 +0000 (11:01 -0700)]
Bump generic_arm64 system partition size to 1200 MB.

Change-Id: I31740673829e578d7fc0edd895868bf1f21cfe15

9 years agoMerge "Fix mmma uses like "mmma ./external/apache-harmony""
Ying Wang [Fri, 24 Jul 2015 19:35:47 +0000 (19:35 +0000)]
Merge "Fix mmma uses like "mmma ./external/apache-harmony""

9 years agoFix mmma uses like "mmma ./external/apache-harmony"
Ying Wang [Fri, 24 Jul 2015 19:30:41 +0000 (12:30 -0700)]
Fix mmma uses like "mmma ./external/apache-harmony"

Fix mmma uses like "mmma ./external/apache-harmony" by removing the
leading ./ in entries in BUILD_MODULES_IN_PATHS.

Change-Id: I414e734c8a29434fc89ddb2b745613c33709c5e3

9 years agoMerge "Build with kati+ninja when USE_NINJA=true"
Colin Cross [Fri, 24 Jul 2015 18:43:58 +0000 (18:43 +0000)]
Merge "Build with kati+ninja when USE_NINJA=true"

9 years agoMerge "Remove unneeded aapt dependency"
Brian Carlstrom [Fri, 24 Jul 2015 04:10:25 +0000 (04:10 +0000)]
Merge "Remove unneeded aapt dependency"

9 years agoBuild with kati+ninja when USE_NINJA=true
Colin Cross [Fri, 17 Jul 2015 00:27:52 +0000 (17:27 -0700)]
Build with kati+ninja when USE_NINJA=true

If USE_NINJA=true, use kati to translate makefiles into ninja files,
and then execute them with ninja.

Builds kati from source using simplified versions of the rules
in binary.mk and definitions.mk.

Adds two new goals when USE_NINJA=true: generateonly will regenerate
build.ninja but not rebuild (useful for comparing build.ninja output
between runs), and fastincremental will skip regenerating build.ninja
and go directly to running ninja, providing ~5 second incremental
builds.

Change-Id: Ib85399e730f1fbb1be7371fafeee7d1c31080771

9 years agoRemove unneeded aapt dependency
Brian Carlstrom [Fri, 24 Jul 2015 00:12:10 +0000 (17:12 -0700)]
Remove unneeded aapt dependency

Change-Id: Ie9b550367f7c6b91d46dc2506c420a45b0d39703

9 years agoMerge "Add build subprojects to .gitignore"
Colin Cross [Thu, 23 Jul 2015 22:11:31 +0000 (22:11 +0000)]
Merge "Add build subprojects to .gitignore"

9 years agoAdd build subprojects to .gitignore
Colin Cross [Thu, 23 Jul 2015 20:18:22 +0000 (13:18 -0700)]
Add build subprojects to .gitignore

Add blueprint, kati, and soong subdirectories to .gitignore so nothing
gets committed there when new subprojects are added to the manifest.

Change-Id: I888b94a89c87d99c8d28e8abd07a830f9cd86702

9 years agoMerge "Cleanups."
Ying Wang [Tue, 21 Jul 2015 23:45:42 +0000 (23:45 +0000)]
Merge "Cleanups."

9 years agoMerge "Create OUT_DIR before writing build_number.txt."
Ying Wang [Tue, 21 Jul 2015 23:44:45 +0000 (23:44 +0000)]
Merge "Create OUT_DIR before writing build_number.txt."

9 years agoCreate OUT_DIR before writing build_number.txt.
Ying Wang [Tue, 21 Jul 2015 23:22:51 +0000 (16:22 -0700)]
Create OUT_DIR before writing build_number.txt.

Change-Id: I6a84ec59194c48f4291480cb0c94db0da488518c

9 years agoCleanups.
Ying Wang [Tue, 21 Jul 2015 23:01:00 +0000 (16:01 -0700)]
Cleanups.

- Deleted unused functions in definitions.mk.
- lint is never fully functional in the platform source tree.
- Retire LOCAL_DIST_BUNDLED_BINARIES: now the build system/framework
  supports JNI embedded in apk.

Change-Id: I6314cb20d1544c704ccbc4c1f9cccb9c54fb5a51

9 years agoMerge "Split [CC|CXX]_WRAPPER from [TARGET|HOST]_[CC|CXX]"
Ying Wang [Tue, 21 Jul 2015 21:09:22 +0000 (21:09 +0000)]
Merge "Split [CC|CXX]_WRAPPER from [TARGET|HOST]_[CC|CXX]"

9 years agoSplit [CC|CXX]_WRAPPER from [TARGET|HOST]_[CC|CXX]
Ying Wang [Tue, 21 Jul 2015 01:40:18 +0000 (18:40 -0700)]
Split [CC|CXX]_WRAPPER from [TARGET|HOST]_[CC|CXX]

- Don't overwrite [TARGET|HOST]_[CC|CXX] with the [CC|CXX]_WRAPPER prefix,
  so that we can disable the wrapper per module.
- Disable ccache on a module when FDO is enabled.

Bug: 22612634
Change-Id: Ibc04a4742d589955066c7eceb43a0da9a2b893bc
(cherry-pick from commit c671a7cf5cae42b61991d9b72e53d9d8a6ace84e)

9 years agoMerge "Read BUILD_NUMBER from file in rules"
Colin Cross [Tue, 21 Jul 2015 19:20:36 +0000 (19:20 +0000)]
Merge "Read BUILD_NUMBER from file in rules"

9 years agoMerge "Disable relocation packer in SANITIZE_TARGET mode."
Evgenii Stepanov [Tue, 21 Jul 2015 17:30:02 +0000 (17:30 +0000)]
Merge "Disable relocation packer in SANITIZE_TARGET mode."

9 years agoMerge "Override properties that point to out/ directory."
Tao Bao [Tue, 21 Jul 2015 05:01:46 +0000 (05:01 +0000)]
Merge "Override properties that point to out/ directory."

9 years agoMerge "Do not update previous_XXX.mk when there is no change"
Shinichiro Hamaji [Tue, 21 Jul 2015 01:32:40 +0000 (01:32 +0000)]
Merge "Do not update previous_XXX.mk when there is no change"

9 years agoDo not update previous_XXX.mk when there is no change
Shinichiro Hamaji [Mon, 20 Jul 2015 22:28:39 +0000 (07:28 +0900)]
Do not update previous_XXX.mk when there is no change

I'm adding a rule which regenerates ninja files to kati:

https://github.com/shinh/kati/commit/8666cfba20bf4ff0e59053dcfa7bcac9896bcf16

With this regeneration rule, unnecessary re-generation will happen
when these .mk files are updated even if there are no changes in
their contents. With this patch, these .mk files are updated only
when the contents will be actually changed.

Change-Id: I4c796f9454502f6bb25019b3806ca577ea5258c1

9 years agoMerge "Auto-clean host tools when switching between apps_only and platform build."
Ying Wang [Tue, 21 Jul 2015 00:32:33 +0000 (00:32 +0000)]
Merge "Auto-clean host tools when switching between apps_only and platform build."

9 years agoAuto-clean host tools when switching between apps_only and platform build.
Ying Wang [Tue, 14 Apr 2015 21:10:46 +0000 (14:10 -0700)]
Auto-clean host tools when switching between apps_only and platform build.

For apps_only (also PDK build) we use prebuilt host tools in
prebuilts/sdk/tools; For platform build we use tools built from source.
Auto-clean intermediate files of these tools when build type change is
detected.

Bug: 20213206
Change-Id: I9173af322684c017fdb91a3abfbe39ecfe5650e9
(cherry-pick from commit 036b53b6de3cc2a5de46be31eeb4d07ffb0d057f)

9 years agoDisable relocation packer in SANITIZE_TARGET mode.
Evgenii Stepanov [Mon, 20 Jul 2015 23:32:53 +0000 (16:32 -0700)]
Disable relocation packer in SANITIZE_TARGET mode.

Workaround for
https://code.google.com/p/address-sanitizer/issues/detail?id=387.

Change-Id: I151c3f0eb7e2a4c92a64192a0b43ac17646eab5c

9 years agoMerge "Revert "Revert "Hide unwinder symbols in each binary."""
Dan Albert [Mon, 20 Jul 2015 23:11:56 +0000 (23:11 +0000)]
Merge "Revert "Revert "Hide unwinder symbols in each binary."""

9 years agoOverride properties that point to out/ directory.
Tao Bao [Sun, 19 Jul 2015 09:38:53 +0000 (02:38 -0700)]
Override properties that point to out/ directory.

A few properties are stored as links to the files in the out/
directory, which are no longer available when (re)packing from
target_files zip. Redirect those properties to the actual files in
the unzipped directory when repacking.

Change-Id: I18e930cbea224ab9c6db8d4e721b1c266a671db6

9 years agoRead BUILD_NUMBER from file in rules
Colin Cross [Fri, 17 Jul 2015 00:15:19 +0000 (17:15 -0700)]
Read BUILD_NUMBER from file in rules

Using $(BUILD_NUMBER) inside a rule causes odd behavior, as the rule
is different every time make is run, but since make doesn't depend
on the command line it only ends up being built with the new value
if some other dependency has changed.

To allow ninja, which does depend on the command line, to provide the
same behavior, store the build number in out/build_number.txt, and
use a shell expansion to cat the file in rules that use it.  This will
cause the rule command to stay identical between builds, while still
getting the new build number if the rule is rerun for a dependency.

Also use the same trick for BUILD_FINGERPRINT, and the date in
droiddoc rules.

Change-Id: I6c5e6b6b3ef4c613563d7f5604df0e401575ba5f

9 years agoMerge "Move @echo to first command in rules"
Colin Cross [Fri, 17 Jul 2015 23:01:58 +0000 (23:01 +0000)]
Merge "Move @echo to first command in rules"

9 years agoMove @echo to first command in rules
Colin Cross [Fri, 17 Jul 2015 00:14:27 +0000 (17:14 -0700)]
Move @echo to first command in rules

Move the @echo command that prints the rule description to be the
first command in each rule so that the kati tool can find it to
use as a ninja rule description.

Change-Id: I90f27c35bb719d327a7f2109f8d00d3589082f19

9 years agoMerge "file_contexts: Label /dev/ttyS2 as console_device"
Nick Kralevich [Thu, 16 Jul 2015 18:47:56 +0000 (18:47 +0000)]
Merge "file_contexts: Label /dev/ttyS2 as console_device"

9 years agofile_contexts: Label /dev/ttyS2 as console_device
Miodrag Dinic [Thu, 16 Jul 2015 14:27:17 +0000 (16:27 +0200)]
file_contexts: Label /dev/ttyS2 as console_device

This fixes the issue with the emulator "-shell" option.
Init tries to open the console which is passed through
the kernel androidboot.console property, but fails to
open it because "avc" denies it. Init only has permissions
to open console_device in rw mode. This ensures that
/dev/ttyS2 is properly labeled as console_device.

Replaced tabs with spaces.

Change-Id: I9ef94576799bb724fc22f6be54f12de10ed56768

9 years agoMerge "Enable verbose output for add_img_to_target_files."
Tao Bao [Wed, 15 Jul 2015 23:54:27 +0000 (23:54 +0000)]
Merge "Enable verbose output for add_img_to_target_files."

9 years agoMerge "mgrep: add output to environment commands"
Nick Kralevich [Wed, 15 Jul 2015 19:54:03 +0000 (19:54 +0000)]
Merge "mgrep: add output to environment commands"

9 years agoMerge "Use a different linker for ASan binaries."
Evgenii Stepanov [Wed, 15 Jul 2015 19:34:06 +0000 (19:34 +0000)]
Merge "Use a different linker for ASan binaries."

9 years agoEnable verbose output for add_img_to_target_files.
Tao Bao [Wed, 15 Jul 2015 18:53:39 +0000 (11:53 -0700)]
Enable verbose output for add_img_to_target_files.

Change-Id: I7246c59c79ccf6a7589c884391d0f690746fc129

9 years agoMerge "Assert the stash size when generating OTAs."
Tao Bao [Tue, 14 Jul 2015 20:37:49 +0000 (20:37 +0000)]
Merge "Assert the stash size when generating OTAs."

9 years agoAssert the stash size when generating OTAs.
Tao Bao [Thu, 21 May 2015 21:09:49 +0000 (14:09 -0700)]
Assert the stash size when generating OTAs.

With block-based OTA v2 and v3, it requires stash space on the /cache
partition to back up blocks during an update. We need to ensure that
it doesn't exceed the partition size. Since there might be other files
on /cache as well, we use cache_size * threshold as the maximum allowed
size. The threshold defaults to 0.8, which can be overridden by command
line option '--stash_threshold'.

Change-Id: I5c2e353ea4716328d6cdc6a7f758520de8d88b8e
(cherry picked from commit 23ac4042128e47f6fe1ef176e7cb96f907d8e149)

9 years agoUse a different linker for ASan binaries.
Evgenii Stepanov [Sat, 11 Jul 2015 01:06:51 +0000 (18:06 -0700)]
Use a different linker for ASan binaries.

Another change in bionic/linker adds linker_asan/linker_asan64 that
know where to find ASan shared libraries.
Also, include linker_asan to the required packages list when building
for ASan.

Change-Id: I8ebe7c0091bbeb0c135708a891d33d9844373d37

9 years agoMerge "Disable detection of bugs on global variables."
Evgenii Stepanov [Tue, 14 Jul 2015 18:03:03 +0000 (18:03 +0000)]
Merge "Disable detection of bugs on global variables."

9 years agoDisable detection of bugs on global variables.
Evgenii Stepanov [Tue, 14 Jul 2015 01:12:17 +0000 (18:12 -0700)]
Disable detection of bugs on global variables.

This is a temporary change pending code cleanup.

We are already disabling detection of ODR violations. As it turns out,
an ODR between an ASan-instrumented library and a non-instrumented library
may actually crash ASan, and there is no obvious way out, and one of those
prevents us from booting a SANITIZE_TARGET image right now.

Bug: 21951850
Change-Id: I49508242ec96089a3d4d8b7e45f36323d62f2be9

9 years agomgrep: add output to environment commands
William Roberts [Mon, 13 Jul 2015 00:06:38 +0000 (17:06 -0700)]
mgrep: add output to environment commands

Change-Id: I7a97e00c7ef5ac179333303d89511c2f72cbd100
Signed-off-by: William Roberts <william.c.roberts@intel.com>
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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 agoRevert "Revert "Hide unwinder symbols in each binary.""
Dan Albert [Tue, 23 Jun 2015 20:32:30 +0000 (13:32 -0700)]
Revert "Revert "Hide unwinder symbols in each binary.""

Bug: 18471342
Bug: 19958712
This reverts commit 61f675bb53f31fb2500fc135603ca7a5f7620d8e.

Change-Id: I87d3655d1238a9cf26d96dcb0665ba5110931800

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"