Commit Graph

27238 Commits

Author SHA1 Message Date
Treehugger Robot
384d61d947 Merge "Add preserve_extracted_files option in compare_images" 2019-12-17 05:00:30 +00:00
Jeongik Cha
e35e89dd77 Add preserve_extracted_files option in compare_images
With the option: extract zip file in the directory where zip is, and the
extracted files remain.
Without the option: extract zip file in tmp and clean up after a run

Test: check if files remain with -p option
Bug: N/A
Change-Id: I1aa74c017dbb885481b8f5a0674d089c0a732620
2019-12-17 02:03:20 +00:00
Treehugger Robot
d8055f8cee Merge "Extract zip file in tmp directory" 2019-12-16 07:17:45 +00:00
Treehugger Robot
b2ddb4d536 Merge "header-checker: Encapsulate AbiDiffHelper" 2019-12-12 18:21:04 +00:00
Treehugger Robot
f253fc4007 Merge "header-checker: Remove type_id" 2019-12-12 17:01:36 +00:00
Treehugger Robot
3addde7f6b Merge "[Bug Fix] Not able to create secondary user due to lack of permission" 2019-12-12 02:23:26 +00:00
Weilun Du
aa2ec781e8 [Bug Fix] Not able to create secondary user due to lack of permission
BUG: 145353724

Signed-off-by: Weilun Du <wdu@google.com>
Change-Id: Icce8f6d280b29c4390dcd5947516a06448799862
2019-12-11 09:58:45 -08:00
Jeongik Cha
af646f7981 Extract zip file in tmp directory
As-is: extract zip file in-place
To-be: extract zip file in tmp dir

Test: run the tool with -u option, and check if there is no file in a
directory where zip file is located

Change-Id: I2654bfa257714cb5b266abf4feb31acaabdbb7cb
2019-12-11 21:55:50 +09:00
Chih-hung Hsieh
dd7bba046d Merge changes I22e348b4,Iaa253a43
* changes:
  Add new cargo2android.py owners
  Auto-build/update codegen
2019-12-10 18:47:00 +00:00
Chih-Hung Hsieh
09539599a0 Add new cargo2android.py owners
* add new cargo2android.py owners
* remove obsolete email address

Bug: 142209566
Test: make
Change-Id: I22e348b45c25ccc82e59fdddf1978462ba2a8e49
2019-12-10 09:19:47 -08:00
Chih-Hung Hsieh
2978204d14 Auto-build/update codegen
Exempt-From-Owner-Approval: introduces separate utility; doesn't touch
anything around it
Test: 1. Manually enter version/presence of build artifact,
and ensure `codegen FILENAME` still works
2. run codegen again without altering version, ensure no build triggered
Change-Id: Iaa253a430e627d0e7c25781cde535958f77db97f
(cherry picked from commit 8ca7673cfc)
Merged-In: Iaa253a430e627d0e7c25781cde535958f77db97f
2019-12-10 09:17:42 -08:00
Logan Chien
1f4f441945 Merge "header-checker: Downgrade to C++ 14" 2019-12-10 04:36:33 +00:00
Treehugger Robot
0d957878a4 Merge "[NDK] Add an option to gdbrunner to run lldb" 2019-12-10 02:18:25 +00:00
Logan Chien
e527e061b8 header-checker: Downgrade to C++ 14
This commit switches the option to `-std=c++14` to avoid potential ODR
violations and fix the Mac build.

This commit downgrades from `-std=c++17` to `-std=c++14` because
"llvm/Support/RWMutex.h" from clang-r370808 will use `std::shared_mutex`
when `-std=c++17` is specified but LLVM/Clang prebuilts are built with a
different implementation.

Furthermore, Mac OS X 10.8 (or 10.9) does not support
`std::shared_mutex`.  Thus, there are availability errors when we are
building header-checker for Mac OS X:

    clang-r370808/include/llvm/Support/RWMutex.h:98:8:
    error: 'shared_mutex' is unavailable: introduced in macOS 10.12

Bug: 139945549
Test: OUT_DIR=out && \
      development/vndk/tools/header-checker/android/build-prebuilts.sh

Change-Id: Ic23fbdb67f7cd0700a3001c644485f7d8d0ee3e2
2019-12-09 17:33:21 -08:00
Haibo Huang
a1d5d38249 [NDK] Add an option to gdbrunner to run lldb
Test: Run ndk-gdb on ndkgdbsample app
Change-Id: I29a892565693adec06d48570e92386e775c87e28
2019-12-10 00:45:43 +00:00
Chih-hung Hsieh
45ffc27e13 Merge "A script to run cargo and generate Android.bp." 2019-12-06 21:15:51 +00:00
Logan Chien
a50907a3fe Merge changes from topic "bump-clang-r370808"
* changes:
  clang-tools: upgrade to r370808
  header-checker: Migrate to clang-r370808
2019-12-06 21:01:35 +00:00
Nick Desaulniers
1fd2cdb777 clang-tools: upgrade to r370808
Bug: 139945549
Test: cd $ANDROID_BUILD_TOP && \
 OUT_DIR=out ./development/vndk/tools/header-checker/android/build-prebuilts.sh
Change-Id: I48de2adac9122206c78625988e11f47ce667d9b8
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2019-12-05 14:42:44 -08:00
Logan Chien
833560bfa2 header-checker: Migrate to clang-r370808
Bug: 139945549
Test: lunch aosp_arm64-userdebug && mm && ./tests/test.py
Change-Id: I348d179f6c63f975e1b2c539264ee903e8a8e11b
2019-12-05 14:42:44 -08:00
Treehugger Robot
331a744770 Merge "Merge Android10 QPR1 into AOSP master" 2019-12-03 23:14:58 +00:00
Xin Li
2cb3b91207 Merge Android10 QPR1 into AOSP master
Bug: 145570283
Change-Id: If27af71b6cadaaceceac1573913889a9ff8d1f20
2019-12-02 21:25:02 -08:00
Chih-Hung Hsieh
e888737544 A script to run cargo and generate Android.bp.
* Usage note and help for command flags in the script.
  * Run cargo -v multiple times and collect output in cargo.out.
  * Use target.tmp as temporary working directory.
  * Generate multiple Android.bp files into subdirectories.
  * Simplified package names, without version number.
* Merged Android.bp modules.
  * Use --device flag to generate both host and device build targets
    in a combined module.
  * Use --tests flag to generate rust_test modules, with auto_gen_config,
    and multiple unit tests merged in one module.
* Generate cc_library_static modules for rust packages that call
  'cc' and 'ar' to build static C/C++ libraries.
  * Use the --vv flag to call cargo with -vv.
* Limitations:
  * Cargo.toml and its build scripts might need fix for Android first.
  * Depending on user given cargo parameters.
* TODOs:
  * Handle multiple crate types in one rustc command line.
  * Smart merge of host and device rust_test modules,
    to handle device tests that depend on dynamic libraries.
  * Handle special Rust packages that use only build scripts
    and C/C++ compilers to generate included files.

Bug: 142209566
Test: In rust project directories: cargo2android.py --run
Change-Id: Id54652b1e0a6e5fc16619cd05f5b057eee79d610
2019-12-02 15:43:04 -08:00
Alexander Smundak
c117e1745b Merge "Build proto_metadata_plugin, needed for proto cross-referencing"
am: 42f7dbcbd1

Change-Id: I6120faf2e382813aa608ae419019bcfef68f1ba8
2019-11-21 13:48:08 -08:00
Alexander Smundak
42f7dbcbd1 Merge "Build proto_metadata_plugin, needed for proto cross-referencing" 2019-11-21 21:38:18 +00:00
Sasha Smundak
97feb26d9c Build proto_metadata_plugin, needed for proto cross-referencing
Bug: 143574580
Test: run it
Change-Id: I7fd7a804f3e91353ceb4121dba8f98ba92908a29
2019-11-19 18:15:27 -08:00
Yo Chiang
9e15fceb00 Merge "Add 'whitelist' option to compare_images"
am: 0cf2d79947

Change-Id: Ib577bd4a7decf56f3863feb65ac10e61d45c9beb
2019-11-18 01:04:57 -08:00
Yo Chiang
0cf2d79947 Merge "Add 'whitelist' option to compare_images" 2019-11-18 07:07:35 +00:00
Enrico Granata
6af21565ac Merge "idegen fails to build a correct dependency graph if one of the submodules it identifies lacks an Android.mk file"
am: 3b16a02c35

Change-Id: I558b4b5379d0671f7ab919e9454256cdde663c04
2019-11-14 19:28:12 -08:00
Treehugger Robot
3b16a02c35 Merge "idegen fails to build a correct dependency graph if one of the submodules it identifies lacks an Android.mk file" 2019-11-15 03:15:41 +00:00
Weilun Du
8810570222 Merge "[SdkSetup] Set physical keyboard layout"
am: c3aecfaf2e

Change-Id: I8ad6436164705d7c18d68706ef2266f46664e829
2019-11-14 18:17:57 -08:00
Weilun Du
c3aecfaf2e Merge "[SdkSetup] Set physical keyboard layout" 2019-11-15 02:07:04 +00:00
Yo Chiang
9039ad4acd Add 'whitelist' option to compare_images
* `compare_images -t a b -s system -w whitelist.txt` to specify
  whitelist.
* diff.csv is split into two parts:
  - whitelisted_diff.csv: Diffs that are ignored by a whitelist
  - diff.csv: Diffs that are not ignored by any whitelist.
* Add `-c, --check` option to compare_images_and_print.sh
  When this option is specified, compare_images_and_print.sh exits with
  a non-zero status if diff.csv contains any unexpected diffs.

Bug: 144398662
Test: Tested manually by creating two directories that contain common
      files, whitelisted diffing files and not whitelisted diffing files.
Test: ./compare_images_and_print.sh --help
Test: ./compare_images_and_print.sh --check "-t a b -s SYSTEM -i"
Change-Id: Ie80741d08ef5bc245b409b46ee716ae783428a7d
2019-11-14 15:49:48 +08:00
Weilun Du
3cac24167f [SdkSetup] Set physical keyboard layout
Emulator host will set the guest keyboard layout with boot
properties based on the host keyboard layout.

Also, fixed complaints in setting properties adb_enabled and
install_non_market_apps.

BUG: 78115103
Merged-In: Iad3750af5383ba27fbf20eb9b26652f037853f1f
Change-Id: Iad3750af5383ba27fbf20eb9b26652f037853f1f
Signed-off-by: Weilun Du <wdu@google.com>
2019-11-12 10:08:09 -08:00
Yo Chiang
5e29d2617b Merge "Refactor compare_images"
am: 2ce9bc6563

Change-Id: Ie2d2249fffc78d4a70de5b7c218ce7df87f0f20b
2019-11-10 22:29:15 -08:00
Yo Chiang
2ce9bc6563 Merge "Refactor compare_images" 2019-11-11 06:17:42 +00:00
Yo Chiang
b783c4955b Refactor compare_images
* Drop unused import
* Simplify filename globbing logic

Test: Manually test noop
Change-Id: Ib1e491a47b2fd4fa76884571259f8c6764dbb547
2019-11-11 11:57:22 +08:00
Yo Chiang
c1e66c8d65 Merge "Use prebuilt llvm tools"
am: 1169e31d15

Change-Id: I04ad7e3f15acc4afcaa086da993f752a1bdc2469
2019-11-07 23:55:47 -08:00
Treehugger Robot
1169e31d15 Merge "Use prebuilt llvm tools" 2019-11-08 07:33:44 +00:00
Yo Chiang
e0765b40de Use prebuilt llvm tools
- objdump -> llvm-objdump: diff.py depends on prebuilt llvm-binutils
- llvm-objdump expects long options to start with '--'

Test: Manual
Change-Id: I9f3986444ef2f17eb37b4b1c1c66f5c1ccb47299
2019-11-08 13:57:53 +08:00
Inseob Kim
b85e538582 Merge "Fix and generate vndk snapshot entirely in Soong"
am: 6e2e77336e

Change-Id: I32a3797acca1028a5019f26aa79259bd50778aa4
2019-11-04 20:12:56 -08:00
Treehugger Robot
6e2e77336e Merge "Fix and generate vndk snapshot entirely in Soong" 2019-11-05 03:48:51 +00:00
Inseob Kim
04c21ae7d8 Fix and generate vndk snapshot entirely in Soong
- VNDK snapshot now respects stem and suffix.
- ld.config.txt is removed from snapshot as linkerconfig has become default.
- Soong builds entire snapshot, and make just calls dist-for-goals.

Bug: 142589718
Test: build and install snapshot
Test: development/vndk/snapshot/update.py with past version of snapshot
Change-Id: I7185e381e0f3aad73a106b407814285d8b217173
2019-11-01 09:39:15 +09:00
TreeHugger Robot
2d1ef5dc8e Merge "DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master" into stage-aosp-master 2019-10-31 18:38:48 +00:00
Alexander Smundak
d425b04681 Merge "Build protoc_extractor"
am: 3f4ef2c0b7

Change-Id: I7075fc23b53bcf398670881d4db2731e48b1abcb
2019-10-31 08:56:44 -07:00
Alexander Smundak
3f4ef2c0b7 Merge "Build protoc_extractor" 2019-10-31 15:43:45 +00:00
Xin Li
4ccc65c62e DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master
Bug: 142003500
Change-Id: Ia918710dfff36bdc415863a7490a72d7b98f66ad
2019-10-30 11:46:47 -07:00
Sasha Smundak
312ddee795 Build protoc_extractor
Bug: 143574580
Test: build protoc_extractor
Change-Id: I63dc6db516709cf5f64d47de86292470649498fb
2019-10-30 08:22:45 -07:00
Bo Hu
3f81aa9460 Merge "emulator: move SdkSetup to product"
am: 7fa0b26829

Change-Id: Ie639326a0f0adafb8e8a752ce57774c891457266
2019-10-30 07:08:21 -07:00
Bo Hu
7fa0b26829 Merge "emulator: move SdkSetup to product" 2019-10-30 13:20:19 +00:00
bohu
76c4f8f1c0 emulator: move SdkSetup to product
Change-Id: I32d9b486ea131e0bd40e3714c83009faa13d592a
Merged-In: I32d9b486ea131e0bd40e3714c83009faa13d592a
2019-10-28 09:15:27 -07:00