Commit Graph

64053 Commits

Author SHA1 Message Date
Xin Li
2f171ac0a5 Merge "DO NOT MERGE - Merge RP1A.201005.006" 2020-10-06 20:17:27 +00:00
The Android Open Source Project
a4c45b8d52 DO NOT MERGE - Merge RP1A.201005.006
Bug: 168212094
Merged-In: Id3cbd4d6528f827eba6ac410ba2eb92d91d40901
Change-Id: Ic9c7b4d7339ab624418c1fbc95e66674cffdef71
2020-10-06 16:48:22 +00:00
Treehugger Robot
e57ea5ed1b Merge "Remove build tasks for vts10" am: 70b4738324
Original change: https://android-review.googlesource.com/c/platform/build/+/1449155

Change-Id: I787541a9dd4a51a81381830da0727b7d3ad6cbe2
2020-10-06 03:59:09 +00:00
Jooyung Han
674721e97f Merge "Use file_contexts for flattened apexes" am: a00c0f1f23
Original change: https://android-review.googlesource.com/c/platform/build/+/1435451

Change-Id: I2f92d53210523cc2d81c9e28392b0758a3eb7ea8
2020-10-06 03:43:54 +00:00
Treehugger Robot
70b4738324 Merge "Remove build tasks for vts10" 2020-10-06 03:30:31 +00:00
Jooyung Han
a00c0f1f23 Merge "Use file_contexts for flattened apexes" 2020-10-06 03:26:14 +00:00
Treehugger Robot
5da79a1876 Merge "tasks: find-sharedui-violation: Partition location" am: b1fbb747b8
Original change: https://android-review.googlesource.com/c/platform/build/+/1321234

Change-Id: Ifc568939321852f94be84fdd59432a21a745b41d
2020-10-06 02:32:55 +00:00
Treehugger Robot
b1fbb747b8 Merge "tasks: find-sharedui-violation: Partition location" 2020-10-06 02:14:47 +00:00
Dan Shi
82c4cb74c6 Remove build tasks for vts10
Bug: 169581727
Test: build
Change-Id: I865553ae07bc6eac3b90f87a494537102c398280
2020-10-05 10:17:21 -07:00
Yifan Hong
eddd0d6967 Merge "Fix boot-* to kernel-* dependency" am: 871e3c6032
Original change: https://android-review.googlesource.com/c/platform/build/+/1442279

Change-Id: I24687c7274df2ef7dff14ae440c46eebdf820f27
2020-10-02 19:33:40 +00:00
Yifan Hong
871e3c6032 Merge "Fix boot-* to kernel-* dependency" 2020-10-02 18:43:12 +00:00
Po-Chien Hsueh
2c3e8064ef Merge "Filter out host paths on platform-availability-check errors" am: 2a5719c809
Original change: https://android-review.googlesource.com/c/platform/build/+/1440896

Change-Id: Ie76b7b1cda93d468df1a4e360314b5465b64e812
2020-10-02 04:14:12 +00:00
Po-Chien Hsueh
2a5719c809 Merge "Filter out host paths on platform-availability-check errors" 2020-10-02 03:53:01 +00:00
Colin Cross
9d560baab5 Merge "Manually install hwasan runtime on SANITIZE_TARGET=hwaddress builds" am: 3ed9b8b7f9
Original change: https://android-review.googlesource.com/c/platform/build/+/1437493

Change-Id: I755e82b2098fc7e8d839d477b8fdfaffd2bb0b62
2020-10-02 01:21:27 +00:00
Colin Cross
3ed9b8b7f9 Merge "Manually install hwasan runtime on SANITIZE_TARGET=hwaddress builds" 2020-10-02 01:06:10 +00:00
Mathieu Chartier
f96088c1da Merge "Do not set ro.iorapd.enable=true" am: 62ae5b55fe
Original change: https://android-review.googlesource.com/c/platform/build/+/1440211

Change-Id: I30587ed5c7ab1662d190fb1178cc505a3e42aaf4
2020-09-30 22:11:45 +00:00
Mathieu Chartier
62ae5b55fe Merge "Do not set ro.iorapd.enable=true" 2020-09-30 21:54:59 +00:00
Yifan Hong
3e0b5d0355 Fix boot-* to kernel-* dependency
For example, if BOARD_KERNEL_BINARIES contains kernel-5.4, make sure
boot-5.4.img depends on kernel-5.4.

Test: remove kernel-5.4 from out directory then build boot image
Fixes: 169725104
Change-Id: I85624f3595c1a698bc27d19c73349138bb6e9e8c
2020-09-30 11:54:04 -07:00
Po-Chien Hsueh
e3b44f551c Filter out host paths on platform-availability-check errors
If a module, which is installed to both the host and the platform,
fails the platform-availability-check, the build system might use
the host install path to report errors. Filter out the host install
path so that the platform install path is used.

Bug: 169393514
Test: make
Change-Id: Ib39715ffc45cc32e3bd7ce5f2a3725d243f3237f
2020-09-30 08:18:03 +00:00
Treehugger Robot
650771c5d4 Merge "Fix conflict with common zsh alias" am: fd4a406174
Original change: https://android-review.googlesource.com/c/platform/build/+/1434523

Change-Id: I4f6681d5b8feda5c575870840700b8d905cc9030
2020-09-29 23:10:12 +00:00
Treehugger Robot
fd4a406174 Merge "Fix conflict with common zsh alias" 2020-09-29 22:52:17 +00:00
Ben Taitelbaum
8c2c9cfa9d Fix conflict with common zsh alias
oh-my-zsh common-aliases plugin defines `alias -g T='| tail'`, which causes an
error with the line `local T dir f`.

Making these lines more explicit resolves this issue, while also being clearer
that the intent is to clear out the local variables.

Bug: 169191000
Fix: 169191000
Test: source build/envsetup.sh; lunch <target>; m
Change-Id: Ief27aa3d9f541d0c39c6c11d7d771818d6493d31
2020-09-29 20:50:57 +00:00
Janis Danisevskis
3cc7647af1 Add android.system.keystore2-V1-ndk_platform.so to gsi/current.txt
Change-Id: Icd9644e468a29d5ca47291faaaa9f5ca3fc4902c
2020-09-29 07:09:45 -07:00
Yifeng Zeng
f54e9714bc Merge "Copy generated $(SOONG_OUT_DIR)/module_bp_java_deps.json file to dist when SOONG_COLLECT_JAVA_DEPS flag is set." am: 97a498b177
Original change: https://android-review.googlesource.com/c/platform/build/+/1439143

Change-Id: I331b855ffa98aa34c539f8688ba7590fba9c8998
2020-09-29 04:36:17 +00:00
Yifeng Zeng
97a498b177 Merge "Copy generated $(SOONG_OUT_DIR)/module_bp_java_deps.json file to dist when SOONG_COLLECT_JAVA_DEPS flag is set." 2020-09-29 04:06:36 +00:00
Treehugger Robot
9fe95069f2 Merge "Source rbesetup.sh from any location inside of a repo directory." am: b2c54c81da
Original change: https://android-review.googlesource.com/c/platform/build/+/1441073

Change-Id: Ic51e9b55891840769390c4a8a8355fc027c8a348
2020-09-29 03:49:50 +00:00
Treehugger Robot
b2c54c81da Merge "Source rbesetup.sh from any location inside of a repo directory." 2020-09-29 03:25:53 +00:00
Yifeng Zeng
d17bffd01f Copy generated $(SOONG_OUT_DIR)/module_bp_java_deps.json file to dist when SOONG_COLLECT_JAVA_DEPS flag is set.
Test: build/soong/soong_ui.bash --make-mode SKIP_ABI_CHECKS=true SOONG_COLLECT_JAVA_DEPS=true TARGET_PRODUCT=aosp_cf_x86_phone TARGET_BUILD_VARIANT=userdebug droid dist DIST_DIR=/usr/local/google/home/yifengzeng/temp EMMA_INSTRUMENT=true EMMA_INSTRUMENT_FRAMEWORK=true CLANG_COVERAGE=true NATIVE_COVERAGE_PATHS="*" NATIVE_COVERAGE_EXCLUDE_PATHS="art bionic/libc device" tests

Bug: 168755196
Change-Id: Id13d3a4579734bc70bc0ce3463a05ee9a052f1dc
2020-09-28 23:16:51 +00:00
Patrice Arruda
96a3f9df33 Source rbesetup.sh from any location inside of a repo directory.
The current rbesetup.sh has to be source from the root directory
of the checked out repo since it has a relative path to the sourced
build/envsetup.sh script. A function was written in rbesetup.sh
script to source the rbesetup.sh script anywhere inside of a
checked out repo. Added additional error checking to validate
the envsetup.sh is available and not to continue sourcing the script
if envsetup.sh script is not found.

Fixes: b/169438960
Test: Sourced the rbesetup script from
        * external directory
	* inside of a symlink
	* outside of repo (sourcing fails which is correct)
	* root repo
Change-Id: I2db66a444074adca4d4ab87b8786e9044a3646f8
2020-09-28 22:09:41 +00:00
Martin Stjernholm
c14071eb7d Merge "Do not chmod the symlink target when a prebuilt binary is symlinked." am: 0de50208a3
Original change: https://android-review.googlesource.com/c/platform/build/+/1439191

Change-Id: Icb4dddce2d980bce09353b8fb98758f07e297c81
2020-09-28 13:44:17 +00:00
Martin Stjernholm
0de50208a3 Merge "Do not chmod the symlink target when a prebuilt binary is symlinked." 2020-09-28 13:02:33 +00:00
Yo Chiang
8e1fcee324 Merge changes from topic "exclude-system-shared-libs-from-elfcheck-suggestions" am: d311799206
Original change: https://android-review.googlesource.com/c/platform/build/+/1434012

Change-Id: I3bd3b4b37ffd8f7b36c853d2a8822f803b98f2ba
2020-09-28 04:13:55 +00:00
Logan Chien
8abf06faa4 Exclude system shared libs from fix suggestion am: 751a987bcc
Original change: https://android-review.googlesource.com/c/platform/build/+/1190333

Change-Id: Ie9ff04af02f76aa0aafd934aa1cb8d13b041bdd0
2020-09-28 04:13:26 +00:00
Yo Chiang
d311799206 Merge changes from topic "exclude-system-shared-libs-from-elfcheck-suggestions"
* changes:
  Pass the value of system_shared_libs from Android.bp to check_elf_file.py
  Exclude system shared libs from fix suggestion
2020-09-28 03:54:27 +00:00
Wang Han
4a4a4df0af Do not set ro.iorapd.enable=true
* This is true by default, this is redundant.

Change-Id: I936d701c8b644ea4667bf855a71448c8d7a1448a
2020-09-27 13:11:18 +00:00
Chris Gross
208b59c42f Merge "Misc fixes to release tools." am: 69c6598b21
Original change: https://android-review.googlesource.com/c/platform/build/+/1427972

Change-Id: I4260aced4c23b479428685a8e535782649dee734
2020-09-26 18:25:50 +00:00
Chris Gross
69c6598b21 Merge "Misc fixes to release tools." 2020-09-26 18:13:24 +00:00
Dan Shi
eb9798954a Merge "Create a new package for hostside art tests" am: dc0359c0a7
Original change: https://android-review.googlesource.com/c/platform/build/+/1437898

Change-Id: If8db2d544e00002f63a5b4836cfbcff40ec68bde
2020-09-25 20:39:04 +00:00
Dan Shi
dc0359c0a7 Merge "Create a new package for hostside art tests" 2020-09-25 20:26:40 +00:00
Martin Stjernholm
2cfce9380e Do not chmod the symlink target when a prebuilt binary is symlinked.
It may be in a source tree that isn't writable. Instead check that
the target is executable.

Test: m
Test: chmod a-x system/sepolicy/tools/insertkeys.py && \
  rm -rf out/host out/soong/host && \
  m insertkeys.py
  Check that it fails with the expected error message.
Fixes: 169375644
Change-Id: I402d029dba45783127586ad9749c90012afe891d
2020-09-25 17:17:50 +01:00
Dan Shi
f740f616bd Create a new package for hostside art tests
Bug: 169111770
Test: m -j art-host-tests
Change-Id: If54c218339080f031423f66c2925e4d3ca983d4b
2020-09-24 15:23:08 -07:00
Colin Cross
eb013b236e Manually install hwasan runtime on SANITIZE_TARGET=hwaddress builds
Due to bugs in Soong around prebuilt libraries with stubs versions,
the hwasan runtime was installed into /system/lib64/bootstrap, but the
module was not given a ".bootstrap" suffix.  Once the bugs are fixed,
the hwasan runtime is no longer installed because the dependencies
on "libclang_rt.hwasan-aarch64-android" are now on an uninstallable
stubs library.  Add libclang_rt.hwasan-aarch64-android.bootstrap
to PRODUCT_PACKAGES when SANITIZE_TARGET=hwaddress is set.

Test: m checkbuild
Change-Id: I732d37505274c7bf804396921202f2bcca4484ec
2020-09-24 12:47:50 -07:00
Yo Chiang
bdd9ec461e Pass the value of system_shared_libs from Android.bp to check_elf_file.py
Bug: 141925662
Test: Write a bad cc_prebuilt_library module and check fix suggestions
Change-Id: Iede63db4e92da68e2bf0eccdf124b3187ee3b87d
2020-09-24 13:17:07 +08:00
David Anderson
e5d2e92c5b Merge "Add virtual A/B compression product." am: 1fdef5f75a
Original change: https://android-review.googlesource.com/c/platform/build/+/1426180

Change-Id: Icf7c2ddae78060a33afcf812bef5a9ecc6f3a4f3
2020-09-23 22:43:14 +00:00
David Anderson
1fdef5f75a Merge "Add virtual A/B compression product." 2020-09-23 22:19:15 +00:00
Jooyung Han
b27c2e8af9 Use file_contexts for flattened apexes
Because flattened apexes are installed in /<partition>/apex, associated
file_contexts file should be modified to accommodate path changes and
also merged into target-wide file_contexts.bin file.

Soong now emits modified file_contexts via LOCAL_FILE_CONTEXTS, and
these files are collected into a temporary file_contexts.modules.tmp
file, which is used as an additional input of file_contexts.bin.

Bug: 166518492
Test: m file_contexts.bin
      check the contents of file_contexts.concat.tmp file
Change-Id: I002a2294af9e06baeaf54bc5a9a5380d23b8a3da
2020-09-23 15:43:58 +00:00
Treehugger Robot
3a92cb7796 Merge "Fix ordering of checks based on llvm-readobj output." am: 08ba15ef32
Original change: https://android-review.googlesource.com/c/platform/build/+/1434526

Change-Id: I1c81729d0713aa394ce8ac1b293d7689133b24af
2020-09-23 09:09:51 +00:00
Treehugger Robot
08ba15ef32 Merge "Fix ordering of checks based on llvm-readobj output." 2020-09-23 08:54:19 +00:00
Stephen Hines
7f5d326ce2 Fix ordering of checks based on llvm-readobj output.
llvm-readobj has reordered some of its output, causing issues when
checking for DT_SONAME and other fields.

Bug: http://b/169195129
Test: m for a failing target
Change-Id: Ifbc120b703ec47b52e77c2baf0e4d080960e9ef9
2020-09-22 20:54:21 -07:00
Kelvin Zhang
928c2341a6 Allow zip64 support when opening zip files
When opening an zip file through zipfile.ZipFile(), python2 by default
disables zip64 support. To support update files >4GB, we manually add
allowZip64 to override the setting.

Test: generate && serve an OTA

Change-Id: I9645e963ced830cc2d3a4b72bc63b9369a1cefe8
2020-09-22 16:53:39 -04:00