1. 02 Oct, 2015 1 commit
    • Alex Deymo's avatar
      Pack META/ab_partitions.txt when using the A/B OTA updater. · 8925d334
      Alex Deymo authored
      The list of A/B partitions updated is product-specific. Normally you
      would update boot and system, but the product could require to update
      other partitions during a system update. This patch packages the list
      of A/B partitions configured to be updated when using the A/B updater.
      The list can be set in the product makefile by setting the make
      variable UPDATE_AB_PARTITIONS.
      
      Bug: 24387863
      Test: `make dist` creates the META/ab_partitions.txt in the target_files.zip
      
      Change-Id: I4226ab05c7c7cd74721b06f1da64c6cf4d0e52ac
      8925d334
  2. 30 Sep, 2015 1 commit
    • Alex Deymo's avatar
      Pack the update_engine_config.txt when using the A/B OTA updater. · 70067acd
      Alex Deymo authored
      This config file pulled directly from the source specifies the update
      payload version supported by the code. When generating an incremental
      update payload for the A/B updater, the generated payload format will
      match the version supported by the old version.
      
      Bug: 24406755
      Test: `make dist` on Brillo.
      
      Change-Id: Ib7ac6828d0d34eb31e786dbaae5d59ecf26c3576
      70067acd
  3. 28 Sep, 2015 1 commit
    • Tao Bao's avatar
      Pack libdivsufsort.so into otatools.zip. · f6d83021
      Tao Bao authored
      This is to support the change to bsdiff which depends on
      libdivsufsort.so and libdivsufsort64.so now.
      
      Bug: 24332905
      Change-Id: I232fc1b2abda67456f012a83fa4f69a99bc6ea14
      f6d83021
  4. 26 Sep, 2015 1 commit
    • Steve Fung's avatar
      Package breakpad symbols in target files zip · dfbab49b
      Steve Fung authored
      When BREAKPAD_GENERATE_SYMBOLS is set to true, package the breakpad
      symbols into the target files zip thats generated with `make dist`.
      
      Bug: 24165970
      Change-Id: I11c0d9a9d9e159475bfdb7bc338f9e9ac60aeada
      dfbab49b
  5. 22 Sep, 2015 1 commit
  6. 18 Sep, 2015 1 commit
  7. 15 Sep, 2015 1 commit
    • Ying Wang's avatar
      Generate installed-files-vendor.txt · 8da19e36
      Ying Wang authored
      Similar to installed-files.txt, installed-files-vendor.txt lists the
      content of vendor.img.
      
      Bug: 24009297
      Change-Id: Ib8112b19cc9f54d0c0d6a829063e4fe72d8ce664
      8da19e36
  8. 19 Aug, 2015 1 commit
  9. 12 Aug, 2015 3 commits
    • Dan Willemsen's avatar
      Use repeatable timestamps · ccc933e9
      Dan Willemsen authored
      This moves all of the date references under build/ to using a single
      datetime that can be set manually using BUILD_DATETIME.
      
      It also adds an option, OVERRIDE_C_DATE_TIME, that if set to true, will
      redefine __DATE__ and __TIME__ for all C/C++ files so that it matches
      BUILD_DATETIME.
      
      Bug: 23117013
      Change-Id: I7c17a32b794a5adf40b9cd69136fb0ff9f6084ec
      ccc933e9
    • Dan Willemsen's avatar
      Revert "Use repeatable timestamps" · 92026f2d
      Dan Willemsen authored
      OSX `date` doesn't understand -d
      
      This reverts commit 13ba6e00.
      
      Change-Id: I5970032ff02cc07bd3b087e1eeb5f19b1e4194b4
      92026f2d
    • Dan Willemsen's avatar
      Use repeatable timestamps · 13ba6e00
      Dan Willemsen authored
      This moves all of the date references under build/ to using a single
      datetime that can be set manually using BUILD_DATETIME.
      
      It also adds an option, OVERRIDE_C_DATE_TIME, that if set to true, will
      redefine __DATE__ and __TIME__ for all C/C++ files so that it matches
      BUILD_DATETIME.
      
      Bug: 23117013
      Change-Id: I880ef103a26bca86bd7bf42d58e62e740a6228c8
      13ba6e00
  10. 11 Aug, 2015 1 commit
    • Ying Wang's avatar
      Don't build otapackage on Mac. · 09c4b68d
      Ying Wang authored
      Also removed the unneeded variable DISTTOOLS
      and the unnecessary dependency of otapackage/updatepackage on DISTTOOLS.
      
      Bug: 23085297
      Change-Id: I6b269003a72bb48eda1260c8d9b4bd88974bcde9
      09c4b68d
  11. 10 Aug, 2015 1 commit
    • Ying Wang's avatar
      Allow custom recovery resource dirs. · 9a175686
      Ying Wang authored
      Set TARGET_PRIVATE_RES_DIRS in your BoardConfig.mk to specify custom
      private recovery resource directories.
      With this change you can share the same recovery resource dir for more
      than one device; Also you can specify more than one directories.
      
      Change-Id: Ieeb18f5ac11c98b6f08d0ab6fb4e0d9aa72b27e7
      9a175686
  12. 05 Aug, 2015 1 commit
    • Tao Bao's avatar
      build: Support packaging for system_root_image. · 62bd479f
      Tao Bao authored
      If system image contains the root directory
      (BOARD_BUILD_SYSTEM_ROOT_IMAGE == "true"), we package the root directory
      into ROOT/ instead of BOOT/RAMDISK/ in the target_files zip.
      
      Change-Id: I817776ca97194991308b2131d0e34ab136283464
      62bd479f
  13. 04 Aug, 2015 1 commit
    • Stephen Smalley's avatar
      build: switch over to file_contexts.bin only · d3a803e6
      Stephen Smalley authored
      
      Change all uses of the file_contexts file to use the
      file_contexts.bin file instead.
      
      Depends on
         I75a781100082c23536f70ce3603f7de42408b5ba
         I43806d564b83d57f05f5c36c8eba7b1ff4831b04
         Id560d093440a2aba99cef28c20133b35feebf950
         I15660f4b3e4c5cb8ae0ec1498c74d6fcbb9a0400
      
      Change-Id: Iaf8c4b2e420f610425a07f48db7af32bda3f5b3a
      Signed-off-by: default avatarStephen Smalley <sds@tycho.nsa.gov>
      d3a803e6
  14. 31 Jul, 2015 2 commits
    • Daniel Rosenberg's avatar
      build: core: Fix issue in recovery · 7b826569
      Daniel Rosenberg authored
      Now that symlinks are created at build time, the rsync while
      making recovery runs into issues around the etc symlink
      
      Change-Id: Ie781507b22e4661629840075b274eaab2f712de6
      7b826569
    • Daniel Rosenberg's avatar
      Add ro.build.system_root_image · 59156a6b
      Daniel Rosenberg authored
      ro.build.system_root_image is true if the root directory is built
      into the system image.
      
      Change-Id: I17208ebd004c63aebb09db6c3e5f795619e73bd2
      59156a6b
  15. 30 Jul, 2015 1 commit
    • Tao Bao's avatar
      build: Fix "adb shell" in recovery for system_root_image. · be46a545
      Tao Bao authored
      For system images that contain the root directory, "adb shell" in
      recovery stops working if the image is mounted at "/system", because
      sh now locates at /system/system/bin/sh. We fix the issue by mounting
      the image on /system_root and create a symlink to /system_root/system
      for /system.
      
      Bug: 22855115
      Change-Id: Ia6b257b75aeb67687c3909063d1725a23a5ccd60
      be46a545
  16. 28 Jul, 2015 1 commit
    • Tao Bao's avatar
      Support systems that use a full copy of recovery image. · f2cffbdd
      Tao Bao authored
      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 8beab69b)
      f2cffbdd
  17. 21 Jul, 2015 1 commit
  18. 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
  19. 15 Jul, 2015 1 commit
  20. 10 Jul, 2015 1 commit
    • 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
  21. 07 Jul, 2015 1 commit
  22. 30 Jun, 2015 1 commit
    • Tao Bao's avatar
      Retry adjusting the size computation for reserved blocks. · 4e66343b
      Tao Bao authored
      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 efbb5d2e.
      
      Bug: 21522719
      Bug: 22023465
      Bug: 22174684
      Change-Id: Iaae6507f6de68a5892f2e3035d330039287b4492
      (cherry picked from commit c7a6f1e4)
      4e66343b
  23. 25 Jun, 2015 1 commit
  24. 24 Jun, 2015 1 commit
  25. 23 Jun, 2015 1 commit
  26. 05 Jun, 2015 1 commit
  27. 04 Jun, 2015 1 commit
  28. 03 Jun, 2015 2 commits
  29. 14 Apr, 2015 1 commit
  30. 08 Apr, 2015 3 commits
    • Ying Wang's avatar
      Remove unnecessary confusing use of $(intermediate). · 62925a99
      Ying Wang authored
      Change-Id: I0e73c3c1bf94540419e1fd227a3096da148e2459
      62925a99
    • Tao Bao's avatar
      Fix the font size selection for recovery mode · abbc9116
      Tao Bao authored
      shamu has a 560dpi density, which is between xxhdpi and xxxhdpi. It
      deserves the large font (18x32), otherwise it falls back to use the
      small one and makes it mostly unreadable under recovery mode. Amend
      the list to include 560dpi and 400dpi that are higher than xhdpi.
      Ideally we should map string formats back to numbers for easy
      comparison (and to handle any high but odd density values).
      
      Change-Id: Ie08d9ce5e1c8850ff30a79bcbfd1b89e971b7e07
      abbc9116
    • Ying Wang's avatar
      Better way to package up the otatools-package. · c45a47b5
      Ying Wang authored
      With this, you can easily add more executables, jars or shared libraries
      to the package. Also now it automatically takes care of
      32-bit-v.s.-64-bit library issue.
      
      Change-Id: I5afe00fadc978d0da229b192eca1a4b1c149764e
      c45a47b5
  31. 02 Apr, 2015 2 commits
  32. 01 Apr, 2015 1 commit
    • Tao Bao's avatar
      Add support to sign bootable images with vboot_signer · d95e9fd2
      Tao Bao authored
      Add vboot properties to the dictionary file, which will be packed into
      the target_files zip. Add support in packaging and OTA scripts to
      sign the generated bootable images (boot.img and recovery.img) when
      vboot is enabled.
      
      Change-Id: I08758ced03d173219415bca762bbdb66c464a9f5
      (cherry picked from commit 5d5a3bd9e8d8b14b71d1b2105417a2958d13d3d2)
      d95e9fd2
  33. 26 Mar, 2015 1 commit
    • Ying Wang's avatar
      Support to build image of root file system with /system and ramdisk combined. · a2292c94
      Ying Wang authored
      Added support to build system.img that combines contents of /system and
      the ramdisk, and can be mounted at the root of the file system.
      To enable this feature, define BoardConfig.mk variable:
      BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
      
      Ideally we would just change TARGET_OUT (the path of the staging system
      directory) to under TARGET_ROOT_OUT. But at this point many places in
      the build system assume TARGET_OUT is independent of TARGET_ROOT_OUT and
      we can't make it easily configurable.
      Instead this implementation takes the least intrusive approach:
      We don't change TARGET_OUT or TARGET_ROOT_OUT. We just assemble a
      temporary staging directory that contains contents of both TARGET_OUT
      and TARGET_ROOT_OUT, in build_image.BuildImage() of
      tools/releasetools/build_image.py.
      When build_image.py is directly called from the makefile, we pass in the
      parameters from the global dictionary; when build_image.BuildImage() is
      called from add_img_to_target_files.py, we need to override values to
      point to files extracted from the target_files zip file.
      We need to combine the fs_config files of both /system and ramdisk,
      when fs_config is enabled.
      
      Also this change refactored build_image.BuildImage() by moving the extra
      parameters to the image property dictionary.
      
      (cherry-picked from commit 0eabd4f2)
      
      Bug:19868522
      Change-Id: Iafc467a0e3427b0d6ad3b575abcc98ddcc9ea0f1
      a2292c94