Commit Graph

26184 Commits

Author SHA1 Message Date
Daniel Norman
ad6293c098 Removes usage of TARGET_NO_VENDOR_BOOT.
- true -> PRODUCT_BUILD_VENDOR_BOOT_IMAGE=false
- false -> (removed, uses default option which builds vendor-boot.img
            if BOARD_BOOT_HEADER_VERSION>=3)

Bug: 170423509
Test: Inspect build artifacts from treehugger.
Change-Id: Id16fbda7fdfc70d62db389d6efb5201cb0d6d4e3
2020-10-16 15:10:21 -07:00
Julien Desprez
09c46d66b5 Merge "Update location of some files while moving them" am: 5fefac293d am: 0afe7d66f3
Original change: https://android-review.googlesource.com/c/platform/build/+/1462690

Change-Id: I52bdb6b2016051a0d67571fd0b1b0c37ca07f4db
2020-10-16 20:27:54 +00:00
Treehugger Robot
38fe00fbb8 Merge "Enable uploading ramdisk to target img.zip" am: 07445235a8 am: 2a3ab163bd
Original change: https://android-review.googlesource.com/c/platform/build/+/1464383

Change-Id: I521b3aee290fb493546b0233fd4b54ce753a309b
2020-10-16 20:27:33 +00:00
Julien Desprez
5fefac293d Merge "Update location of some files while moving them" 2020-10-16 20:00:22 +00:00
Enrico Granata
1605938e8c Enable uploading ramdisk to target img.zip
For some devices, the img.zip package needs to contain the ramdisk
in order to enable device-specific flashing to work properly

This change adds a new flag BOARD_IMG_USE_RAMDISK to the possible
device Makefile configuration. If set to true, the build process
will insert ramdisk.img in the target-files.zip and img.zip
build outputs of "m dist". No change will occur for builds
that do not use this flag, or set it to a non-true value.

Bug: 168642807
Test: lunch trout_arm64-userdebug, m dist with and w/out
      BOARD_IMG_USE_RAMDISK added to Makefile;
      lunch aosp_cf_arm64-phone-userdebug, m dist
Change-Id: Id29408551cd41c11b96157248e238324a327043d
Merged-In: Id29408551cd41c11b96157248e238324a327043d
2020-10-16 10:02:02 -06:00
Jaegeuk Kim
caa53d6422 Merge "Add build property to enable fscompression" am: bea507259c am: 1c643cb365
Original change: https://android-review.googlesource.com/c/platform/build/+/1462547

Change-Id: I8e39fe4a32f00a2db471b7d46af5dc7b3106c429
2020-10-16 06:26:29 +00:00
Kousik Kumar
afd93ad912 Merge "Remove env-var-allowlist" am: 3a7a960a86 am: c2c28f9941
Original change: https://android-review.googlesource.com/c/platform/build/+/1461902

Change-Id: Id3e7ce2ee695ff9b760f20007c02e3df7779cf94
2020-10-16 06:26:10 +00:00
Jaegeuk Kim
bea507259c Merge "Add build property to enable fscompression" 2020-10-16 06:06:14 +00:00
Kousik Kumar
3a7a960a86 Merge "Remove env-var-allowlist" 2020-10-16 05:52:51 +00:00
Tianjie
e88ac677c5 Make the ro.build.version.release consistent between device build prop & partition build prop
The ro.build.version.release has updated to use the last stable platform
version in go/ab/10260813. But the logic for per-partition build prop
has never been updated. This mismatch eventually reflects in the
device's build fingerprints and cause confusion. This cl updates the
partition build props to match the behavior of the top level build props.

Also the device's fingerprints is heavily used in static analysis, e.g.
ota targeting, the change to its computation may cause unexpected effects.

Bug: 170968068
Bug: 158483506
Test: build system image for coral, check the build prop
Change-Id: Icf741c915f2eba970258979efc274e424187ac69
2020-10-15 18:31:00 -07:00
Jaegeuk Kim
ed754fb339 Add build property to enable fscompression
Bug: 162253911
Bug: 110272315
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I3cb7d0a055a7f83c9d0321d2b16f11f40a74f7aa
Merged-In: I3cb7d0a055a7f83c9d0321d2b16f11f40a74f7aa
2020-10-15 17:10:25 -07:00
android-build-team Robot
9ba9a3d32e Make change and version bump to RQ2A.201016.001
Change-Id: I542a2f1d87b42f86d4cc240555832202e6a2b295
2020-10-15 23:17:28 +00:00
Yifan Hong
82b113d9c7 Add BOARD_MOVE_GSI_AVB_KEYS_TO_VENDOR_BOOT
BOARD_MOVE_GSI_AVB_KEYS_TO_VENDOR_BOOT controls whether GSI AVB keys are built
to vendor_boot. On devices without a dedicated recovery partition, GSI AVB
keys used to be built in boot. They are device-specific, so they should be
moved to vendor_boot.

Test: pass
Bug: 156098440
Change-Id: I0a5eaa1b39e88fcca9837c7aa3f475be47d5b0f2
2020-10-15 14:58:34 -07:00
Yifan Hong
aad34e5b7e Exclude board cmdline/dtb/pagesize/base in generic boot image
When building with BOARD_USES_GENERIC_KERNEL_IMAGE, even if BUILDING_VENDOR_BOOT_IMAGE
is not set, do not include board-specific cmdline, dtb, page size, and base in the
generic boot image.

This change drops buildvariant=* in the cmdline of the generic boot
image

Bug: 156098440
Test: manual. Deliberately set BOARD_KERNEL_CMDLINE for aosp_arm64 and
      ensure it doesn't go into the boot image.
Change-Id: I846f600058a4a9b349d55c9773d6dd81bbe49312
2020-10-15 14:58:34 -07:00
Yifan Hong
881df39d23 Add BOARD_MOVE_RECOVERY_RESOURCES_TO_VENDOR_BOOT.
This variable indicates whether recovery resources are moved to
vendor_boot. If true:

- $OUT/recovery.img will not be built
- $OUT/recovery/root will be included in vendor_boot ramdisk

Bug: 156098440
Test: set to true and check output
Test: `m target-files-package` and manually inspect output
Change-Id: I56dda56bab7def1540f4fb506323e3e605620cd4
2020-10-15 14:58:34 -07:00
Yifan Hong
63c5ca19ab Add BOARD_EXCLUDE_KERNEL_FROM_RECOVERY_IMAGE.
BOARD_EXCLUDE_KERNEL_FROM_RECOVERY_IMAGE removes kernel from the
recovery image.

Test: build recovery image and unpack_bootimg
Test: build target files and unpack_bootimg IMAGES/recovery.img
      on device with GKI and dedicated recovery partition.

Bug: 156098440

Change-Id: I5f37d74ed954b26fe3dd778708b6ab9cfdc51f1e
2020-10-15 14:58:34 -07:00
Yifan Hong
d381f7336a Add GKI global variable.
Add BOARD_USES_GENERIC_KERNEL_IMAGE to be the global variable to
indicate the device uses GKI image.

Test: pass

Bug: 156098440

Change-Id: Ica553bbdb791e25dfa9bafb524ab2de5e3f8720d
2020-10-15 14:58:34 -07:00
Julien Desprez
79af9880ec Update location of some files while moving them
Test: make cts
Bug: 170967708
Change-Id: Icd7fa608eb7488574456e9409e0efefa909c92ea
2020-10-15 14:09:39 -07:00
Yifan Hong
c2ee7a5c8e Merge "Add function to extract timestamp from boot image" am: f2ef765168 am: 7ff7168d99
Original change: https://android-review.googlesource.com/c/platform/build/+/1438292

Change-Id: Ifd282c6af243a31ebd136e43a265f9f8a1120551
2020-10-15 20:21:01 +00:00
Kousik Kumar
405847ac19 Remove env-var-allowlist
We no longer need to set PWD variable with the introduction of
`-fdebug-compilation-dir`, so removing env var allowlist of PWD variable
to RBE.

Change-Id: Ifa0592af519b6cc4364ee653f1a2174fd680bac1
2020-10-15 15:53:13 -04:00
Yifan Hong
125d0b63b9 Add function to extract timestamp from boot image
Also add toybox to otatools list.

Bug: 169169031
Test: build OTA
Change-Id: Ib14dbf46a8385ccf2a9c5a9c6f4e7fa9399cf0ba
2020-10-15 19:32:39 +00:00
Yifan Hong
843240c81a Check system manifest against frozen data.
Test: m check-vintf-all
Bug: 37226359
Change-Id: I5ca5decedc101adf02792d0358b8e4ca102f1354
2020-10-14 21:07:05 -07:00
Paul Scovanner
db14e70112 Update Security String to 2020-12-05 am: 29d48ffac5 am: 9841d4bcfa
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/+/12819559

Change-Id: I1d7cc85e682e4e0161fce57585d70ec7fe8c447a
2020-10-15 04:00:42 +00:00
Paul Scovanner
b487704e79 Update Security String to 2020-12-05 am: 29d48ffac5 am: 9841d4bcfa
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/+/12819559

Change-Id: Ib2d68506ba2f0ab27987e5cfe6e8e16bf76b52f3
2020-10-15 04:00:41 +00:00
Kousik Kumar
0d0d422359 resolve merge conflicts of 602859b186 to rvc-d1-dev am: 3d723c29d1
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/+/12735596

Change-Id: I9a82c7e89561821e912081790557e987757ba5b3
2020-10-15 04:00:29 +00:00
Kousik Kumar
7251bdc6ae resolve merge conflicts of 602859b186 to rvc-d1-dev am: 3d723c29d1
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/+/12735596

Change-Id: Ie8b703fb37051d1ed73648263de4884bdd311dfb
2020-10-15 04:00:21 +00:00
Paul Scovanner
9841d4bcfa Update Security String to 2020-12-05 am: 29d48ffac5
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/+/12819559

Change-Id: I348286b45f4c72721318cfa5c8baf2f78949eb89
2020-10-15 03:33:23 +00:00
android-build-team Robot
6deca99cc5 Version bump to RQ1A.201205.003 [core/build_id.mk]
Change-Id: Ie705bbc85ff0136821206a44daf70560e447b965
2020-10-15 01:57:34 +00:00
android-build-team Robot
4061890057 Make change and version bump to RQ2A.201015.001
Change-Id: I3b5ab4588839e473a5b329fbb4b089ba7ae41b26
2020-10-14 23:18:41 +00:00
android-build-team Robot
841994abeb Version bump to RQ1A.201205.002 [core/build_id.mk]
Change-Id: I5441e7cd87620dcfa515348cbc9cd126d9ff0ec8
2020-10-14 23:13:19 +00:00
android-build-team Robot
f2e5cdf459 Make change and version bump to RQ2A.201014.001
Change-Id: I4972a4ba8fb880550c7165938baf67950af65b67
2020-10-13 23:16:44 +00:00
Treehugger Robot
804322a260 Merge "Builds boot-debug.img if INSTALLED_BOOTIMAGE_TARGET." am: f3d4f2f26b am: 6e5d8c8616
Original change: https://android-review.googlesource.com/c/platform/build/+/1457146

Change-Id: Ieb30ece64ebdfcefcaf18ce21501ddd8f8b5daa0
2020-10-13 21:24:51 +00:00
Treehugger Robot
f3d4f2f26b Merge "Builds boot-debug.img if INSTALLED_BOOTIMAGE_TARGET." 2020-10-13 20:59:42 +00:00
Steven Moreland
171f6809e7 Merge "Reflect MALLOC_ZERO_CONTENTS default true." am: 1162536936 am: 6bb786a3a3
Original change: https://android-review.googlesource.com/c/platform/build/+/1380902

Change-Id: I888280d5d395a366df0727d3986c6d9c4bedb50c
2020-10-13 17:48:42 +00:00
Steven Moreland
1162536936 Merge "Reflect MALLOC_ZERO_CONTENTS default true." 2020-10-13 16:49:16 +00:00
Anton Hansson
e8fcf535ce Merge "Remove apidiff task and droiddoc jdiff support" am: 20f517e1c3 am: 0e2c301088
Original change: https://android-review.googlesource.com/c/platform/build/+/1455018

Change-Id: Ie4cadc5d40dc8239f4fdce5fffa826a19137275b
2020-10-13 07:55:35 +00:00
Anton Hansson
20f517e1c3 Merge "Remove apidiff task and droiddoc jdiff support" 2020-10-13 07:08:13 +00:00
android-build-team Robot
1cd4d8636b Make change and version bump to RQ1A.201205.001
Change-Id: Iac1bf09bf2627c3eea6f72b147155c180900dd37
2020-10-13 01:17:05 +00:00
Paul Scovanner
827ac3ed02 Update Security String to 2020-12-05
Bug: 170492812
Change-Id: I61eac7915ab4b23227c3263d3f33a0f71dc3a107
(cherry picked from commit 29d48ffac5)
2020-10-13 01:06:03 +00:00
android-build-team Robot
72ff386a32 Make change and version bump to RQ2A.201013.001
Change-Id: I053391c9cd52bb1c4bca847f7208ef7697d376c2
2020-10-12 23:17:17 +00:00
Paul Scovanner
29d48ffac5 Update Security String to 2020-12-05
Bug: 170492812
Change-Id: I61eac7915ab4b23227c3263d3f33a0f71dc3a107
2020-10-12 22:01:11 +00:00
Treehugger Robot
9913f9ae0b Merge "Package proguard_usage.zip files in jacoco-report-classes-all.jar" am: cfa39194ad am: dbd0122916
Original change: https://android-review.googlesource.com/c/platform/build/+/1456639

Change-Id: I1a4f8272adfe3551233b390761cedc38fa6c92cc
2020-10-12 20:30:55 +00:00
Treehugger Robot
cfa39194ad Merge "Package proguard_usage.zip files in jacoco-report-classes-all.jar" 2020-10-12 20:03:30 +00:00
Yifan Hong
020e525d9f Merge "Add <ramdisk>/system/etc/ramdisk/build.prop." am: c75a3c5434 am: 3854ebcc77
Original change: https://android-review.googlesource.com/c/platform/build/+/1455496

Change-Id: I004ef43681780961f2ba881604c10993e9fe75e7
2020-10-12 19:04:04 +00:00
Daniel Norman
af67081218 Builds boot-debug.img if INSTALLED_BOOTIMAGE_TARGET.
This causes boot-debug.img to build if its main dependency
INSTALLED_BOOTIMAGE_TARGET (boot.img) is defined.

This fixes an issue where boot-debug.img was missing when
BUILDING_BOOT_IMAGE=false, but boot.img exists because the board uses
recovery as boot.

Bug: 170644849
Test: Build target that sets PRODUCT_BUILD_BOOT_IMAGE and
      PRODUCT_BUILD_RECOVERY_IMAGE false,
      observe no boot-debug.img.
Test: Build target that sets BOARD_USES_RECOVERY_AS_BOOT,
      observe boot-debug.img.
Change-Id: Ic887ea93d4c5181eca0f82c3cdf3ce3b72f4c185
2020-10-12 11:45:48 -07:00
Steven Moreland
38c8824187 Reflect MALLOC_ZERO_CONTENTS default true.
See corresponding build/soong change. This change sets the android
platform to zero all heap allocations by default. To give some
intuition for why this is no so underperformant, zeroing memory is one
way of priming caches.

The main goal of this is to prevent accidental reliance on allocations
being zero, which is UB in C++. In some situations, allocations are
almost always guaranteed to be 0, and so resulting flakes can be
extremely rare.

Bug: 131355925
Test: allocated memory successfully getting zerod
Change-Id: I8c27fbc8c06420a15d022eb810595599d1e56aa0
2020-10-12 18:44:05 +00:00
Yifan Hong
c75a3c5434 Merge "Add <ramdisk>/system/etc/ramdisk/build.prop." 2020-10-12 18:37:43 +00:00
Martin Stjernholm
1be17f1595 Merge "Make the build fail when the executable prebuilt target check fails." am: dee171a859 am: 5c3f09cb39
Original change: https://android-review.googlesource.com/c/platform/build/+/1442940

Change-Id: Ic40520d7feb81901a2cb8a7cff24952c229391ee
2020-10-12 09:55:12 +00:00
Martin Stjernholm
dee171a859 Merge "Make the build fail when the executable prebuilt target check fails." 2020-10-12 09:24:38 +00:00
Treehugger Robot
597d38165e Merge changes from topic "board-system-ext-sepolicy" am: 6d34f734ae am: 62b08d287a
Original change: https://android-review.googlesource.com/c/platform/build/+/1273731

Change-Id: I9e996149b1680e18001823596ce12cfc2e0f02ab
2020-10-12 04:32:11 +00:00