Commit Graph

21519 Commits

Author SHA1 Message Date
Mathieu Chartier
a833c93e52 Merge "Revert "Remove option to create boot image based on preloaded classes"" am: 669f3983fd
am: db714424ba

Change-Id: I4d1d4892245f4cfd5f942b6fad7666969e307478
2019-06-26 10:52:50 -07:00
Colin Cross
1aa3ff6fea Merge "Don't pass --legacy by default to aapt2 compile" 2019-06-26 17:05:34 +00:00
Mathieu Chartier
669f3983fd Merge "Revert "Remove option to create boot image based on preloaded classes"" 2019-06-26 16:52:45 +00:00
Mathieu Chartier
d826c86398 Merge "Remove option to create boot image based on preloaded classes" am: 5abcba9f43
am: feae1549d9

Change-Id: Ic950d33cd86133521e8250914d5cf945c86b619b
2019-06-26 09:51:18 -07:00
Mathieu Chartier
7139459ac7 Revert "Remove option to create boot image based on preloaded classes"
This reverts commit 633009b659.

Reason for revert: NDK build broken

Change-Id: I3e470ccf42b6d50c534c53c2b14150506d6226e8
2019-06-26 16:45:01 +00:00
Mathieu Chartier
5abcba9f43 Merge "Remove option to create boot image based on preloaded classes" 2019-06-26 15:56:36 +00:00
Anton Hansson
a4a23641ce Merge "Fix non-existing modules check" am: c1d0bfef47
am: 0796c70deb

Change-Id: Idb48fb89c275747e9997afe37796a0ed74693473
2019-06-26 03:14:49 -07:00
Anton Hansson
c1d0bfef47 Merge "Fix non-existing modules check" 2019-06-26 09:44:30 +00:00
android-build-team Robot
64fefb0689 Make change and version bump to QP1A.190626.001
Change-Id: Ie210cd7239dcd3c4b7b863d3b48f7a78ae82dc0c
2019-06-26 03:15:03 +00:00
Dan Willemsen
e7e39460f5 Merge "Install shared library dependencies for 64-bit windows" am: 7ec8749eb8
am: 59bb6e4ba8

Change-Id: Id5c3f4ba79f9c435229fd5016df48efd863ae1dc
2019-06-25 18:08:54 -07:00
Treehugger Robot
7ec8749eb8 Merge "Install shared library dependencies for 64-bit windows" 2019-06-25 23:57:46 +00:00
Tao Bao
8a746b5689 Merge "Stop passing --block and MKBOOTIMG to ota_from_target_files." am: ac0749ff98
am: 6855138e15

Change-Id: I986ff8caeaba5dbf29df58a6882e68cd9cde1e51
2019-06-25 16:26:38 -07:00
Mathieu Chartier
633009b659 Remove option to create boot image based on preloaded classes
Using the preloaded classes to generate the image is no longer
supported.

Test: make

Change-Id: I63fa47395e9f7ee2967522ae2c02676283fb2d31
2019-06-25 13:52:59 -07:00
Anton Hansson
528fdc021f Fix non-existing modules check
This variable was accidentally changed to refer to the
shorthand PRODUCT_XYZ instead of PRODUCTS.<mk>.PRODUCT_XYZ
in a previous mass-migration, but that shorthand didn't
exist for these variables. Add it in.

Also whitelist the offender introduced since it was broken.

Test: lunch generic; m nothing
Change-Id: I29dd73c29796743e770afa0c2ceb4f8583dc6e1e
2019-06-25 21:52:58 +01:00
Tao Bao
c931547560 Stop passing --block and MKBOOTIMG to ota_from_target_files.
- `--block` has been a no-op since Oreo [1] -- ota_from_target_files
  will always build block-based OTAs or A/B OTAs.
- MKBOOTIMG is no longer needed when calling ota_from_target_files, at
  least for the callsite in Makefile. Because target_files.zip has been
  including boot/recovery images since Lollipop [2].

This CL also switches to long options to improve readability.

[1] commit 457cbf6a8a
[2] commit 3c84f56948

Test: TreeHugger
Change-Id: I801bd0525d2529156bbf783698661d90ba24017a
2019-06-25 13:04:06 -07:00
Dan Willemsen
b88f792d25 Install shared library dependencies for 64-bit windows
Test: m host_cross_libandroidicu_64; see libs in out/host/windows-x86/lib64
Change-Id: Ibf816aeb96e70b70cfcb9b58df9605c3af87db39
2019-06-25 12:56:41 -07:00
Tao Bao
b1b275873c Merge "Clean up the dependencies for user image creation." am: ec53f441fa
am: 8ae72adb4b

Change-Id: Ica87f15572d10b384e13436ec63572922df8de7c
2019-06-25 11:52:02 -07:00
Tao Bao
ec53f441fa Merge "Clean up the dependencies for user image creation." 2019-06-25 17:57:43 +00:00
Isaac Chen
378f856e9c Merge "Add lpunpack to otatools for rebuilding super.img" am: 17a3aa4819
am: 7f338d71d0

Change-Id: Ic91d89e1fafddf7e286a637d2b38db3acfd61248
2019-06-25 10:38:55 -07:00
Isaac Chen
17a3aa4819 Merge "Add lpunpack to otatools for rebuilding super.img" 2019-06-25 17:19:46 +00:00
android-build-team Robot
d6335838a2 Make change and version bump to QP1A.190625.001
Change-Id: I8975cfba285f9844f995f7291d793419fad9b40f
2019-06-25 12:54:12 +00:00
Isaac Chen
eec4a7cba4 Add lpunpack to otatools for rebuilding super.img
lpunpack is needed to repackage super.img for mixed-image virtual devices.
For Cuttlefish, it's included in host package. We need to include it in
otatools.zip so Goldfish or other devices can use it to mix their super images.
Necessary SOs are the same as lpmake and have been included in otatools.zip.

Bug: 134461288
Test: $ lunch aosp_x86-userdebug
      $ m otatools-package
      $ unzip -l $OUT/ota* | grep lpunpack
        467824  2008-01-01 00:00   bin/lpunpack

Change-Id: Ie2092f18afb88721b29b1738847a0b781dbcd431
2019-06-25 11:50:58 +08:00
Tao Bao
1b1c093c74 Merge "Fix an issue in setting up PATH." am: 9392fb3905
am: eb13604f24

Change-Id: I90bc221f6c71196a0995fcd8b41acd4fb32bb66a
2019-06-24 16:32:49 -07:00
Tao Bao
dba635a3b7 Clean up the dependencies for user image creation.
The dependency on MAKE_EXT4FS (mke2fs) has been covered by the rule for
MKEXTUSERIMG (mkuserimg_mke2fs):
https://android.googlesource.com/platform/system/extras/+/refs/heads/master/ext4_utils/Android.bp

The dependency on mksquashfs and img2simg comes from mksquashfsimage.sh,
which has been moved into mksquashfsimage's building rule.

This CL also fixes the ordering of INTERNAL_USERIMAGES_BINARY_PATHS,
which should come after adding all the binaries to
INTERNAL_USERIMAGES_DEPS.

Test: TreeHugger
Change-Id: I8b30bf87860d9711e88eecca4b76db72f5cd8241
2019-06-24 15:47:47 -07:00
Colin Cross
53e64b96ff Merge "Allow passing --legacy in LOCAL_AAPT_FLAGS" am: 4188cc5c5c
am: 20aa21225b

Change-Id: Id861971f30adac718101f7ff3d305299669e5ef5
2019-06-24 14:33:14 -07:00
Tao Bao
cf821fc963 Fix an issue in setting up PATH.
`PATH=$(foreach p,$(INTERNAL_USERIMAGES_BINARY_PATHS),$(p):)$$PATH` will
produce a space separated string due to `foreach`, if
$(INTERNAL_USERIMAGES_BINARY_PATHS) has more than one string. We didn't
hit the issue in the past because $(INTERNAL_USERIMAGES_BINARY_PATHS)
had contained only one path in practice.

Test: TreeHugger
Change-Id: I74ef4356668af63d871a81f6bfd4c9324aa1d956
2019-06-24 14:08:36 -07:00
Treehugger Robot
4188cc5c5c Merge "Allow passing --legacy in LOCAL_AAPT_FLAGS" 2019-06-24 17:13:44 +00:00
Kiyoung Kim
62e2231b82 Set INSTALLED_BOOTIMAGE_TARGET in case of TARGET_NO_KERNEL is true and
BOARD_PREBUILT_BOOTIMAGE is set.

Based on current Makefile INSTALLED_BOOTIMAGE_TARGET always kept as
empty if TARGET_NO_KERNEL is true, so build fails with empty out path.
This change is to set up INSTALLED_BOOTIMAGE_TARGET with
$(PRODUCT_OUT)/boot.img in case of TARGET_NO_KERNEL is true and
BOARD_PREBUILT_BOOTIMAGE is defined.

Bug: 135648566
Test: m -j passed
Change-Id: I9658f215c2e2cc5d87040d5085521ef44722c4ef
2019-06-24 09:45:28 +09:00
android-build-team Robot
7cc400eda9 Make change and version bump to QP1A.190624.001
Change-Id: I72d0b8e1eb6bc3f33c26b4dfe149f252d3740479
2019-06-23 23:17:17 +00:00
android-build-team Robot
428d403ed2 Make change and version bump to QP1A.190623.001
Change-Id: I4542da46a1511a67e473feaa13dac8de044e602f
2019-06-22 23:22:09 +00:00
Colin Cross
fd5fa34775 Don't pass --legacy by default to aapt2 compile
Don't pass --legacy by default, it is rarely necessary and converts
some errors into warnings that crash at runtime.  The modules that
need it have had --legacy added to LOCAL_AAPT_FLAGS.

Bug: 135597368
Test: m java
Change-Id: I0cb213599d6612746d988b8966cbd529b5328db0
2019-06-22 13:04:51 -07:00
Colin Cross
18f28c7781 Allow passing --legacy in LOCAL_AAPT_FLAGS
--legacy will soon no longer be passed by default to all aapt2
compiles.  Allow it to be specified in LOCAL_AAPT_FLAGS by passing
it to aapt2 compile when it is present and filtering it out from
the flags passed to aapt2 link.

Bug: 135597368
Test: m java
Change-Id: I92792cf6a0d4c6ecf5e0971523bd0ab76c81345f
2019-06-22 13:03:09 -07:00
android-build-team Robot
4c2889d619 Version bump to QP1A.190620.002 [core/build_id.mk]
Change-Id: I21f3693348647232da1fa0e7e90839f47590dc4b
2019-06-21 22:29:14 +00:00
Mitch Phillips
233b84e45e Merge "Remove experimental pass manager for fuzzer builds." am: 4ba3984b4c
am: 8581054652

Change-Id: I1d0bced14989b55d24040cda407f1f8de10ad6b1
2019-06-20 18:18:21 -07:00
Dan Shi
c0b9ef62aa Merge "Create individual build artifact for test suite build output" am: 3771cff834
am: 4c7f8954b5

Change-Id: I6532e0dbadc940d663d2ab4312be357429e33ea8
2019-06-20 18:17:41 -07:00
Treehugger Robot
4ba3984b4c Merge "Remove experimental pass manager for fuzzer builds." 2019-06-21 00:51:26 +00:00
Dan Shi
3771cff834 Merge "Create individual build artifact for test suite build output" 2019-06-20 20:30:34 +00:00
Dan Shi
51b789e422 Create individual build artifact for test suite build output
This change creates following build artifacts that are currently part of
device-tests.zip and general-tests.zip. The smaller build artifacts are
used to reduce the download size required to run TradeFed suite.
Detailed design can be found in the bug.

From device-tests
device-tests_configs: include all test config files in device-tests, zip
  file is less than 1MB.

From general-tests
general-tests_configs: include all test config files in general-tests,
  zip file is less than 1MB.
general-tests_host-shared-libs: include tools and shared libraries
  required to run host side test, zip file is about 60MB

Bug: 73786521
Test: make device-tests and general-tests, verify output.
Change-Id: I34c9aa3c1c672d5d58eab6de92198a7b8e4a681c
2019-06-20 10:02:36 -07:00
Jaewoong Jung
9bc1ceb1c9 Merge "Fixes a typo in a comment." am: fde688ebc8
am: 35aebeb18a

Change-Id: Icee0466bf2134b11e8c4c4dc3ece046102fbca87
2019-06-19 23:06:51 -07:00
Treehugger Robot
fde688ebc8 Merge "Fixes a typo in a comment." 2019-06-20 04:20:36 +00:00
android-build-team Robot
00dcdd6554 Make change and version bump to QP1A.190620.001
Change-Id: Id9339f32aa57e8a92ae8f32d40f142d406cd3d98
2019-06-20 03:18:03 +00:00
android-build-team Robot
e0d8c9a1b0 Version bump to PQ3B.190801.002 [core/build_id.mk]
Change-Id: I687971e3d96269c56f9bc60f76330684b4b60bc5
2019-06-20 01:35:06 +00:00
android-build-team Robot
074c11dba3 Version bump to QP1A.190619.002 [core/build_id.mk]
Change-Id: I37c60c3787c2ed2dd6a09621314af9578e951b67
2019-06-19 18:51:23 +00:00
android-build-team Robot
b39a42ad82 Make change and version bump to QP1A.190619.001
Change-Id: Ibe8fb301057de7596149217d4b27ac3e03b1c014
2019-06-19 03:15:55 +00:00
Dan Willemsen
a05179c35e Merge changes from topics "rbe-deps-dexpreopt-images", "rbe-deps-system-modules" am: e346d8c25e
am: 2ae5ff07fa

Change-Id: Ifc672e6028ef67d4f6371049d287a3539aaa268d
2019-06-18 16:25:16 -07:00
android-build-team Robot
dc5a37d2f7 Make change and version bump to QP1A.190618.001
Change-Id: I19e012c9138716b5eb56283f742017905bad4d91
2019-06-18 03:15:24 +00:00
Dan Willemsen
cb4c357661 Use dexpreopt image deps from Soong
Instead of just depending on the single image file, depend on the entire
image that gets loaded -- the .oat / .vdex files, and the modules that
are part of the image that have their own files.

This is necessary for RBE, where the rule only gets the files that it
depends upon.

Test: treehugger
Test: build a system image with RBE
Change-Id: I93a580b42cf4ef1824ee1397e551c065f083348a
2019-06-18 01:19:04 +00:00
Dan Willemsen
70b934ee64 Depend on all the files from system modules
Test: treehugger
Change-Id: Ie84dda3d05a84658ad9386a3034d861138f25b2c
2019-06-18 01:19:04 +00:00
Adam Seaton
7e3f7a3dae Revert "Update Security String from 08-05 to 2019-08-01 Bug:126590667"
am: 0c355124bf

Change-Id: I447039af635fa639c313aa2d8483d4e81ba07737
2019-06-17 14:59:17 -07:00
Mitch Phillips
ee2dcac47a Remove experimental pass manager for fuzzer builds.
Sanitizer coverage is currently broken with the experimental pass
manager. See b/133876586 for more information. The patch is currently
being worked on upstream (https://reviews.llvm.org/D62888), but is not
ready yet. Hence, we disable it here (similar to the LTO bug).

Bug: 133876586
Test: Build anything with SANITIZE_TARGET='fuzzer', verify that it has
'sancov' symbols.

Change-Id: I74d02e52ccbe2a3d96b6b8e30230197b554e60a0
2019-06-17 10:37:55 -07:00