Commit Graph

42160 Commits

Author SHA1 Message Date
Tao Bao da7adc9f58 Merge "releasetools: Remove the dead code for blockimgdiff_version <= 2." am: be8ea6ec11 am: d052700179
am: b4a93bd4c8

Change-Id: Ia7f89941d7df6b93443e3ed019beab80cea3fb76
2017-12-21 22:48:59 +00:00
Tao Bao b4a93bd4c8 Merge "releasetools: Remove the dead code for blockimgdiff_version <= 2." am: be8ea6ec11
am: d052700179

Change-Id: I7108f50d08d13026a5dd414f74f069714b9cf793
2017-12-21 22:37:13 +00:00
Dan Shi 12e5732070 Merge "Auto generate test config files" am: 3c28ff7bff am: 4ccd1a5a00
am: 26201a4d44

Change-Id: Id65ca55a8031ae354a8c98b3c59c02fcc6de276c
2017-12-21 22:30:46 +00:00
Tao Bao d052700179 Merge "releasetools: Remove the dead code for blockimgdiff_version <= 2."
am: be8ea6ec11

Change-Id: I052877e554c87200101c40d53ebb3f51d00e5767
2017-12-21 22:28:36 +00:00
Dan Shi 26201a4d44 Merge "Auto generate test config files" am: 3c28ff7bff
am: 4ccd1a5a00

Change-Id: Ibc089081ab2925f8e3453eddf8c64d81d3b49596
2017-12-21 22:25:40 +00:00
Tao Bao be8ea6ec11 Merge "releasetools: Remove the dead code for blockimgdiff_version <= 2." 2017-12-21 22:20:32 +00:00
Dan Shi 4ccd1a5a00 Merge "Auto generate test config files"
am: 3c28ff7bff

Change-Id: I4486412f640281276d5fc0cd7ac7ab27a03e879d
2017-12-21 22:12:45 +00:00
Dan Shi 3c28ff7bff Merge "Auto generate test config files" 2017-12-21 21:53:12 +00:00
Colin Cross 3e4ad40ab7 Merge changes I63eace8f,I103cbe58 am: 5ded399588 am: 0714643816
am: db2cc74d5c

Change-Id: I3522e3922aa95c7be13b5afac10415a06d290b45
2017-12-21 21:16:16 +00:00
Colin Cross db2cc74d5c Merge changes I63eace8f,I103cbe58 am: 5ded399588
am: 0714643816

Change-Id: I38143faf090bf4b1d3c222438a45c66686811723
2017-12-21 21:02:39 +00:00
Colin Cross 0714643816 Merge changes I63eace8f,I103cbe58
am: 5ded399588

Change-Id: I6e22b7126e9b90a0ec4f0707a40d91925d143fb0
2017-12-21 20:58:19 +00:00
Treehugger Robot 5ded399588 Merge changes I63eace8f,I103cbe58
* changes:
  Remove obsolete leaf names
  Remove obsolete dx --no-locals when coverage is enabled
2017-12-21 20:49:03 +00:00
Tao Bao 0582cb639f releasetools: Remove the dead code for blockimgdiff_version <= 2.
The code is on infeasible path since we already have assertions in
common.BlockDifference().

Also remove the dead code that checks for OPTIONS.info_dict, as we
already set that in ota_from_target_files.main(), for both of A/B and
non-A/B.

Test: Generate incremental OTAs w/ and w/o the CL, and get identical
      packages.
Change-Id: Ifb8fc101e78f5ce58c60c8e49028b66ce0d20246
2017-12-21 11:53:27 -08:00
Tao Bao 8393ee7722 Merge "releasetools: Fix the bug that skips loading OEM dict." am: 7889375102 am: 80fb79f200
am: a61ffc1291

Change-Id: I3bcaf431c53b8ae82357f71ef41907297cd885fc
2017-12-21 19:21:57 +00:00
Tobias Thierer 202b747419 Merge "Pass OpenJDK 8's bootclasspath for host tools targeting <= 1.8." am: 1801a25d7c am: 1d979598f5
am: 153246ec83

Change-Id: I4d51ed6d094d72eac7f56af887ab1fe5f8f2e3aa
2017-12-21 18:38:00 +00:00
Jiyong Park dea91bf1ff Merge "TARGET_COPY_OUT_[ODM|OEM] are exported to soong" am: 2993eec041 am: d68d78c83e
am: 5f6f672fbf

Change-Id: Ia6b7da75c3074eac25231e49951d02e86eca1db0
2017-12-21 18:36:49 +00:00
Alan Leung d43b45b994 Merge "Add zip2zip as dependency of dexing step." am: f0971be1b6 am: 7269770b28
am: af233a4dcf

Change-Id: If15cb28fa50d8f9398f300ee7b5df92fe2649210
2017-12-21 18:35:41 +00:00
Tao Bao a61ffc1291 Merge "releasetools: Fix the bug that skips loading OEM dict." am: 7889375102
am: 80fb79f200

Change-Id: Iac9c5c63886406aed585fe09c1ee9ba060a6a6cb
2017-12-21 18:01:30 +00:00
Tobias Thierer 153246ec83 Merge "Pass OpenJDK 8's bootclasspath for host tools targeting <= 1.8." am: 1801a25d7c
am: 1d979598f5

Change-Id: I4941142863c98fa60ea4dd2a80e52ebc8718bb8a
2017-12-21 18:00:09 +00:00
Jiyong Park 5f6f672fbf Merge "TARGET_COPY_OUT_[ODM|OEM] are exported to soong" am: 2993eec041
am: d68d78c83e

Change-Id: Iacf6804059b66c0b0e01258f52b426541968c18f
2017-12-21 17:58:30 +00:00
Alan Leung af233a4dcf Merge "Add zip2zip as dependency of dexing step." am: f0971be1b6
am: 7269770b28

Change-Id: I651565a00739e8b102fc005ee41328297f724273
2017-12-21 17:57:40 +00:00
Tao Bao 80fb79f200 Merge "releasetools: Fix the bug that skips loading OEM dict."
am: 7889375102

Change-Id: If83ca048a4acdcdf079e3d6dd3b111181fbdc789
2017-12-21 17:51:48 +00:00
Treehugger Robot 7889375102 Merge "releasetools: Fix the bug that skips loading OEM dict." 2017-12-21 17:27:39 +00:00
Tobias Thierer 1d979598f5 Merge "Pass OpenJDK 8's bootclasspath for host tools targeting <= 1.8."
am: 1801a25d7c

Change-Id: Ibfc03e2be5ee7aab0ac024e6aa2e624cd2617603
2017-12-21 13:40:46 +00:00
Jiyong Park d68d78c83e Merge "TARGET_COPY_OUT_[ODM|OEM] are exported to soong"
am: 2993eec041

Change-Id: I949776739b2bd9f09960fa2c285f0a4b04b810fe
2017-12-21 13:39:10 +00:00
Alan Leung 7269770b28 Merge "Add zip2zip as dependency of dexing step."
am: f0971be1b6

Change-Id: I50f7e9ca859006d9ddd552abe0ba20997b961895
2017-12-21 13:38:06 +00:00
Tobias Thierer 1801a25d7c Merge "Pass OpenJDK 8's bootclasspath for host tools targeting <= 1.8." 2017-12-21 11:46:20 +00:00
Treehugger Robot 2993eec041 Merge "TARGET_COPY_OUT_[ODM|OEM] are exported to soong" 2017-12-21 09:02:20 +00:00
Alan Leung f0971be1b6 Merge "Add zip2zip as dependency of dexing step." 2017-12-21 08:00:06 +00:00
Isaac Chen a294e32960 Merge "Use proper make variable for vendor directory" into oc-mr1-dev-plus-aosp
am: d82319aa41

Change-Id: Ic814d282577bb538fba99a473987877ee00f093b
2017-12-21 07:13:15 +00:00
Jae Shin 74cdef0954 Merge "Package NOTICE files and record LOCAL_PATHs" am: 7f0e221942 am: 83c829d9b1
am: 87661c862a

Change-Id: Ibadbfa0cb64a302b970138cb954de8e0078014d1
2017-12-21 07:11:47 +00:00
Justin Yun c68c9a89f6 Merge "Do not enforce VNDK on GSI if VNDK version is not set" am: 98acb09033 am: 9cd647af0c
am: 9b64392eb6

Change-Id: I0951744860207f061f2869c07a89877c458d9307
2017-12-21 07:10:26 +00:00
Justin Yun b00149c9ef Merge "Set BOARD_VNDK_VERSION=current as a default value" am: 8950c2bb82 am: d2b7e0c9e5
am: a388e5c058

Change-Id: Ie7ea95f51925150b77946e73da86d3cd1005cf7a
2017-12-21 07:09:31 +00:00
Justin Yun fd67c909e1 Merge "Use PLATFORM_VERSION_CODENAME for VNDK version" am: 5281020692 am: bbbd85a172
am: fa9d3b129a

Change-Id: I4a2a4130f4847c4d1735b11a229473652337948c
2017-12-21 07:08:33 +00:00
Tao Bao 2f5358d38b releasetools: Fix the bug that skips loading OEM dict.
The CL in [1] unintentionally breaks the OEM dict loading logic in the
incremental BBOTA path. We should always require and load the OEM
property dict if _either_ of the source and target builds uses OEM
properties. Otherwise with the current "and" operator, it skips loading
the OEM property dict and thus fails to generate an OTA package that has
OEM property changes (e.g. updating from build with fingerprint to
another one using thumbprint).

The CL in [1] actually makes the right change in the file-based OTA
path, but introduces the bug in the block-based OTA path.

This CL also cleans up the line that reads recovery_mount_options.

[1] commit 7f804ba71f ("releasetools:
allow for multiple OEM property values.").

Test: Genearte an OTA that has OEM property changes successfully.
Change-Id: Idce4ad59825d432618535ce09ab22bd7ddc524f2
2017-12-20 23:06:02 -08:00
Isaac Chen d82319aa41 Merge "Use proper make variable for vendor directory" into oc-mr1-dev-plus-aosp 2017-12-21 04:25:56 +00:00
Alan Leung 5eb88c0112 Add zip2zip as dependency of dexing step.
Bug: 69329508
Test: m checkbuild
Change-Id: I85f4508b6b1fee357d296bda6f0b6ba02cba70b7
2017-12-20 20:03:58 -08:00
Jiyong Park 9848be3581 TARGET_COPY_OUT_[ODM|OEM] are exported to soong
The two make vars are exported to soong as OdmPath and OemPath.

Bug: 68187740
Test: out/soong/soong.variables has OdmPath and OemPath each of which
points to 'odm' and 'oem'.
Change-Id: Ia283e4eb4aacc61b5b3c46e9001ea924566ea898
2017-12-21 12:13:13 +09:00
Jae Shin 87661c862a Merge "Package NOTICE files and record LOCAL_PATHs" am: 7f0e221942
am: 83c829d9b1

Change-Id: Ib2068d22125992c229a9e5ed8c2954dd32deef19
2017-12-21 03:02:12 +00:00
Justin Yun 9b64392eb6 Merge "Do not enforce VNDK on GSI if VNDK version is not set" am: 98acb09033
am: 9cd647af0c

Change-Id: I245bbe8e7a16deb42b84599691e581c504d4615c
2017-12-21 03:01:19 +00:00
Justin Yun a388e5c058 Merge "Set BOARD_VNDK_VERSION=current as a default value" am: 8950c2bb82
am: d2b7e0c9e5

Change-Id: I033018101516f78ddbd621353e8a477489324a05
2017-12-21 03:00:16 +00:00
Justin Yun fa9d3b129a Merge "Use PLATFORM_VERSION_CODENAME for VNDK version" am: 5281020692
am: bbbd85a172

Change-Id: Ic1708ba5468e3628314e9e33a11657ba9f7ee87b
2017-12-21 02:59:24 +00:00
Tobias Thierer 7e99d45ec2 Pass OpenJDK 8's bootclasspath for host tools targeting <= 1.8.
Host (as opposed to hostdex) tools compile and run against OpenJDK's
core libraries. Before this CL, the core libraries of the default
toolchain were always used, even when targeting an earlier language
version.

This meant that code that uses APIs from a later version of OpenJDK
than corresponded to LOCAL_JAVA_LANGUAGE_VERSION would compile, but
would fail to run under that earlier version of OpenJDK. It also
meant that calls to existing APIs might be reinterpreted; for
example, the return type of java.nio.ByteBuffer.clear() changed from
Buffer in OpenJDK 8 to ByteBuffer in OpenJDK 9. At compile time, this
was noted via the warning:
  bootstrap class path not set in conjunction with -source 1.8

After this CL, when targeting a language version <= 1.8 (which is
always the case when building with OpenJDK 8), some of OpenJDK 8's
core library/tools jars are now passed on the bootclasspath. The
decision to include the bootclasspath argument when building with
OpenJDK 8 was somewhat arbitrary, but has the advantage that we
discover any issues before we switch to OpenJDK 9.

Even when compiling with OpenJDK 9, use of OpenJDK 9 APIs will now
fail at compile time rather than at runtime; calls to existing APIs
will now be interpreted in OpenJDK 8 rather than 9 fashion. For
example, this means that dx and host-side CTS tests built with
OpenJDK 9 javac -target 1.8 will be runnable under OpenJDK 8.

Bug: 70521453
Bug: 70862583
Test: Checked that the bootclasspath argument was passed
      in the javac invocation targeting 1.8 during:
      make showcommands compatibility-common-util-hostsidelib
Test: make checkbuild

Change-Id: I9b6081edfdd2c3e9a450ae8a39c4e32c3d2cda92
2017-12-21 01:38:44 +00:00
Colin Cross a6e878219c Remove obsolete leaf names
classes-no-debug-var.jar is incorrect, jars in coverage builds
do have debug information.  Remove full_classes_compiled_jar_leaf
and hardcode classes-full-debug.jar.

After the previous patch, all dex files have debug information,
so remove the no-local and with-local directories and replace
them with dex/.

Remove the unnecessary jarjar_leaf.

Bug: 70886092
Test: m checkbuild
Change-Id: I63eace8f8cda5ad8bc0cbd11eefda73dd063ed76
2017-12-20 17:33:01 -08:00
Jae Shin 83c829d9b1 Merge "Package NOTICE files and record LOCAL_PATHs"
am: 7f0e221942

Change-Id: Ie9e136057ff19792aa5e0fe81986c44d27969ec7
2017-12-21 01:15:14 +00:00
Justin Yun 9cd647af0c Merge "Do not enforce VNDK on GSI if VNDK version is not set"
am: 98acb09033

Change-Id: I71f6f9a3dbbc58e749bdd79ba082fdf166f8ce8e
2017-12-21 01:14:13 +00:00
Justin Yun d2b7e0c9e5 Merge "Set BOARD_VNDK_VERSION=current as a default value"
am: 8950c2bb82

Change-Id: Ie0b2808c0a3e2b4b6311097d2501ad7aab40e31d
2017-12-21 01:13:26 +00:00
Justin Yun bbbd85a172 Merge "Use PLATFORM_VERSION_CODENAME for VNDK version"
am: 5281020692

Change-Id: I77cf0006df96b6bfcbc3aab9eb9dbefbff450b00
2017-12-21 01:12:40 +00:00
Colin Cross ff812829b6 Remove obsolete dx --no-locals when coverage is enabled
We use jacoco for coverage now instead of emma, so the workaround
is no longer necessary.

Bug: 70886092
Test: m EMMA_INSTRUMENT=true EMMA_INSTRUMENT_FRAMEWORK=true SKIP_BOOT_JARS_CHECK=true WITH_DEXPREOPT=false
Change-Id: I103cbe58590689640a0b1520d22b3d3b7cd2208d
2017-12-20 17:03:52 -08:00
Treehugger Robot 7f0e221942 Merge "Package NOTICE files and record LOCAL_PATHs" 2017-12-21 00:38:25 +00:00