1. 18 Jul, 2015 1 commit
    • Colin Cross's avatar
      Read BUILD_NUMBER from file in rules · f37b4558
      Colin Cross authored
      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
      f37b4558
  2. 17 Jul, 2015 2 commits
  3. 16 Jul, 2015 2 commits
  4. 15 Jul, 2015 4 commits
  5. 14 Jul, 2015 5 commits
    • Tao Bao's avatar
      ecb7b37b
    • Tao Bao's avatar
      Assert the stash size when generating OTAs. · 8dcf7382
      Tao Bao authored
      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 23ac4042)
      8dcf7382
    • Evgenii Stepanov's avatar
      Use a different linker for ASan binaries. · 8f5e67a9
      Evgenii Stepanov authored
      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
      8f5e67a9
    • Evgenii Stepanov's avatar
    • Evgenii Stepanov's avatar
      Disable detection of bugs on global variables. · ff7a7815
      Evgenii Stepanov authored
      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
      ff7a7815
  6. 13 Jul, 2015 1 commit
  7. 11 Jul, 2015 2 commits
  8. 10 Jul, 2015 4 commits
    • Tao Bao's avatar
      c8812493
    • Tao Bao's avatar
      Pack file_contexts into target_files zip. · 2c15d9ee
      Tao Bao authored
      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 aa7318c3)
      2c15d9ee
    • Tao Bao's avatar
      da724f7a
    • Tao Bao's avatar
      Zero out blocks that may be touched by dm-verity. · e9b61910
      Tao Bao authored
      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 2fd2c9bf)
      e9b61910
  9. 09 Jul, 2015 2 commits
  10. 08 Jul, 2015 8 commits
  11. 07 Jul, 2015 1 commit
  12. 06 Jul, 2015 3 commits
  13. 02 Jul, 2015 5 commits