Commit graph

64078 commits

Author SHA1 Message Date
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
Treehugger Robot
729f56007e Merge "envsetup.sh: add 'syswrite' function" am: cecc644055
Original change: https://android-review.googlesource.com/c/platform/build/+/1423411

Change-Id: I2afe075553c664c91d1cffefeda5c252312053fa
2020-09-22 19:11:57 +00:00
Treehugger Robot
cecc644055 Merge "envsetup.sh: add 'syswrite' function" 2020-09-22 18:34:24 +00:00
Logan Chien
751a987bcc Exclude system shared libs from fix suggestion
This commit removes system shared libs (e.g. libc, libdl, or libm) from
the prebuilt ELF check fix suggestion.

Bug: 141925662
Test: Write a bad Android.mk module and check fix suggestions
Change-Id: I4a827d07b24a976c1910b814126790abbeccc793
2020-09-22 18:55:11 +08:00
Anton Hansson
929a2573c8 Merge "Remove SafetyRegulatoryInfo from generic system" am: 3fc285a21a
Original change: https://android-review.googlesource.com/c/platform/build/+/1433312

Change-Id: I9df840578b7ed7872f3ba3c98fc262f5f08971c0
2020-09-22 09:34:05 +00:00
Anton Hansson
3fc285a21a Merge "Remove SafetyRegulatoryInfo from generic system" 2020-09-22 08:52:22 +00:00
Chih-hung Hsieh
d7218ea055 Merge "Add new Java/C++/Yacc warning patterns" am: d890f596ce
Original change: https://android-review.googlesource.com/c/platform/build/+/1431707

Change-Id: If4089b2fe804b03287fa53efedfe51aeec95cc20
2020-09-22 07:55:38 +00:00
Yanting Yang
e109340cfa Remove SafetyRegulatoryInfo from generic system
SafetyRegulatoryInfo should not exist in AOSP.

Fixes: 166139891
Test: make && flash to verify regulatory option of Settings
Merged-In: I5fbef719ba30cdbf37e0d4c6daa06a50c06e9495
Change-Id: I5fbef719ba30cdbf37e0d4c6daa06a50c06e9495
2020-09-22 08:34:52 +01:00
Chih-hung Hsieh
d890f596ce Merge "Add new Java/C++/Yacc warning patterns" 2020-09-22 07:11:54 +00:00
Treehugger Robot
25d8e36d8e Merge "remove unusued line_coverage.mk and build target" am: 89e9c8fbf1
Original change: https://android-review.googlesource.com/c/platform/build/+/1433466

Change-Id: Ia3eaf001c38e5663d98483f090e8d4d91fb3c11b
2020-09-22 04:21:21 +00:00
Treehugger Robot
89e9c8fbf1 Merge "remove unusued line_coverage.mk and build target" 2020-09-22 03:34:03 +00:00
Kris Alder
d78384a42d remove unusued line_coverage.mk and build target
These are no longer used in favor of clang-coverage-based solutions.

Bug: 162767128
Test: n/a
Change-Id: I8014b6b5ec5d46789e19dc399c1aa8ebd79a3012
2020-09-21 23:19:53 +00:00
Chris Gross
435b8fe7ba Misc fixes to release tools.
- Remove vendor_dlkm and odm_dlkm from the default list of items that
need to be merged
- Allow a prebuilt system.img to be used when adding images to the
target files archive

Test: Built Pixel 3a and inspected the output
Change-Id: If5291fff559ed9517133f6b476d8dee2500c5b4c
2020-09-21 13:37:21 -07:00
Ivan Lozano
48d2472b38 Merge "rust: Don't install static libraries." am: b8f47c50a6
Original change: https://android-review.googlesource.com/c/platform/build/+/1431731

Change-Id: I7561cb6509a34204d32393c04d108e508ed2e1ec
2020-09-21 19:52:30 +00:00
Ivan Lozano
b8f47c50a6 Merge "rust: Don't install static libraries." 2020-09-21 19:38:28 +00:00
Roland Levillain
00c43dfae1 Merge "Add new armv8-2a-dotprod arch variant support." am: 9f5b7aa9b2
Original change: https://android-review.googlesource.com/c/platform/build/+/1426690

Change-Id: I6a54564d22f82947290b7b35e6e3a9f0da318b2b
2020-09-21 18:02:27 +00:00
Treehugger Robot
9ad9398223 Merge "Add an aosp target that supports 64-bit app only" am: f5941dae52
Original change: https://android-review.googlesource.com/c/platform/build/+/1430099

Change-Id: I29c9cc1fc17f73099b9cb0b8452c974d9f13c105
2020-09-21 18:02:10 +00:00
Tom Cherry
2470ef097c Merge "Use libcutils_headers for android_filesystem_config.h" am: 787ef71f29
Original change: https://android-review.googlesource.com/c/platform/build/+/1430228

Change-Id: I3632573a131374139ff9c9a9e9607f14944a6c18
2020-09-21 18:01:12 +00:00
Roland Levillain
9f5b7aa9b2 Merge "Add new armv8-2a-dotprod arch variant support." 2020-09-21 17:54:04 +00:00
Treehugger Robot
f5941dae52 Merge "Add an aosp target that supports 64-bit app only" 2020-09-21 17:48:36 +00:00
Sam Lin
7c9f562d00 Add an aosp target that supports 64-bit app only
Bug: 168796046
Test: N/A
Change-Id: I57116fe67cbe1322f348c9d0506655f32a900dcc
Merged-In: I57116fe67cbe1322f348c9d0506655f32a900dcc
2020-09-21 17:44:46 +00:00
Tom Cherry
787ef71f29 Merge "Use libcutils_headers for android_filesystem_config.h" 2020-09-21 17:26:10 +00:00
Tim Van Patten
9c5f12cab9 Merge "Add ANGLE.apk to the base system" am: 54f87c12e9
Original change: https://android-review.googlesource.com/c/platform/build/+/1431045

Change-Id: I09f5e6de584b81a8090acb611bbfd1d80bfbd8b1
2020-09-21 16:59:19 +00:00
Tim Van Patten
54f87c12e9 Merge "Add ANGLE.apk to the base system" 2020-09-21 16:43:06 +00:00
Bill Yi
87c7ea3204 Merge "Merge mainline-release 6664920 to master - DO NOT MERGE" am: c9e91554ee
Original change: https://android-review.googlesource.com/c/platform/build/+/1430071

Change-Id: I55a69c9a7015c95ac7a9df02f977818301b24c85
2020-09-19 05:23:10 +00:00
Bill Yi
3ffdfd1176 Merge mainline-release 6664920 to master - DO NOT MERGE am: cf9e7f1929
Original change: https://android-review.googlesource.com/c/platform/build/+/1430071

Change-Id: I25ca83ad2b2ba2a874f1c863ef2128ca3311ac29
2020-09-19 05:22:26 +00:00