Commit Graph

67777 Commits

Author SHA1 Message Date
Treehugger Robot
f0ed29862f Merge "Remove all unused, legacy FDO build rules" 2021-04-08 18:31:40 +00:00
Treehugger Robot
13ebf1bdf5 Merge "Remove legacy host shared library linking with gcov" 2021-04-08 18:31:08 +00:00
Colin Cross
20f7c8aa14 Merge "Package jacoco and proguard files out of a PACKAGING directory" am: df682c6fe1
Original change: https://android-review.googlesource.com/c/platform/build/+/1666060

Change-Id: Iee8cb1b6f041fb3af1a2bc0be68be0425ba24b3c
2021-04-08 17:46:14 +00:00
Colin Cross
df682c6fe1 Merge "Package jacoco and proguard files out of a PACKAGING directory" 2021-04-08 17:17:53 +00:00
Liz Kammer
382be36c43 Add LOCAL_FULL_INIT_RC to handle init_rc full path
Soong supports references to other modules for init_rc property, so full
paths need to be passed from Soong to make rather than module local
paths.

Test: m droid dist
Bug: 184567830
Change-Id: Ib1873a3418830f5cbf32e26f55d3ad0ab0d9c9c5
2021-04-08 11:33:46 -04:00
SzuWei Lin
3a0acd5dbe Merge "Export prebuilt-info.txt of perbuilts kernel to dist" am: d58ae982cf
Original change: https://android-review.googlesource.com/c/platform/build/+/1652239

Change-Id: Ib912d0982f73a536cc300efd7ecfedb103ecefcd
2021-04-08 10:35:13 +00:00
jiajia tang
836f76bc3a Unify the style of _MakeRamdisk for ramdisk format
RamdiskFormat class is introduced by commit : f3f842b676
But it seems _MakeRamdisk() related codes are also needed, then
both of the code style are same.

This patch takes below 2 changes:
1) adds new commom function _GetRamdiskFormat()
2) unfiy the code logic of _MakeRamdisk() and its related code logic.

Change-Id: Ibd4932a6050fbac15fcd741c70dd7854c12e887d
Signed-off-by: jiajia tang <tangjiajia@xiaomi.com>
2021-04-08 09:55:15 +00:00
SzuWei Lin
d58ae982cf Merge "Export prebuilt-info.txt of perbuilts kernel to dist" 2021-04-08 09:24:05 +00:00
Colin Cross
330b1fef31 Package jacoco and proguard files out of a PACKAGING directory
Package jacoco-report-classes.jar, proguard_usage.zip and
proguard_dictionary out of directories in $OUT/obj/PACKAGING
so that they get cleared by m installclean.  This will make
incremental builds that package these files accurate as long
as installclean was run, which is much faster than a full clean
build.

Bug: 184583915
Test: m TARGET_BUILD_APPS=DeskClock EMMA_INSTRUMENT=true dist
Change-Id: I60c6a0fec1fbce26eab8d5adab25a2231b48e251
2021-04-07 18:52:02 -07:00
Treehugger Robot
bcadcb4c8f Merge "Use BOARD_API_LEVEL to define ro.board.api_level" am: 222b4ab071
Original change: https://android-review.googlesource.com/c/platform/build/+/1662022

Change-Id: Iabc7bec442167a098ec6d8f663d05f90058b0984
2021-04-08 00:51:32 +00:00
Treehugger Robot
222b4ab071 Merge "Use BOARD_API_LEVEL to define ro.board.api_level" 2021-04-08 00:15:06 +00:00
Hridya Valsaraju
b39ec7084a Add a build flag to turn on debugfs restrictions
Starting with Android R launched devices, debugfs cannot be mounted in
production builds. In order to avoid accidental debugfs dependencies
from creeping in during development with userdebug/eng builds, this
patch introduces a build flag that can be set by vendors to enforce
additional debugfs restrictions for userdebug/eng builds. The same flag
will be used to enable sepolicy neverallow statements to prevent new
permissions added for debugfs access.

Bug: 184381659
Test: make with/without PRODUCT_SET_DEBUGFS_RESTRICTIONS
Change-Id: I9aff974da7ddce9bf1a7ec54153b161527b12062
2021-04-07 16:47:59 -07:00
Ivan Lozano
ae2274b5a2 Add Rust vendor image support to Make.
This adds the requisite Make logic to handle Rust vendor modules.

Bug: 184042776
Test: Example cc_library vendor module can depend on rust_ffi_shared.
Test: Example rust_library vendor-only module compiles.
Change-Id: Ib5ef6b403ca7e19a2aac9b77ff08b051425ea019
2021-04-07 16:25:55 -04:00
Janis Danisevskis
fd04a29fe0 Merge "Keystore 2.0: Remove keystore and keystore2.enable property." am: bacb3ebb2a
Original change: https://android-review.googlesource.com/c/platform/build/+/1626719

Change-Id: I7f51bd6aaf1e0fa8868a3c6b53e415b18fda589a
2021-04-07 19:44:57 +00:00
Janis Danisevskis
bacb3ebb2a Merge "Keystore 2.0: Remove keystore and keystore2.enable property." 2021-04-07 19:30:12 +00:00
Rupert Shuttleworth
185080ab39 Merge "Mark prop file as writable before writing to it." am: 90eeff54ea
Original change: https://android-review.googlesource.com/c/platform/build/+/1666239

Change-Id: I30c1f86fc03d984f3ec7df4b1b19ebb97a4351a6
2021-04-07 13:25:19 +00:00
Rupert Shuttleworth
90eeff54ea Merge "Mark prop file as writable before writing to it." 2021-04-07 12:40:34 +00:00
Yo Chiang
3a29a4bb95 Merge "gsi_skip_mount.cfg skips system sub-mountpoints" am: 7716d479cc
Original change: https://android-review.googlesource.com/c/platform/build/+/1659982

Change-Id: I020ceeff8daffd2bc66ddeda8c7ceb83d2a2445e
2021-04-07 05:38:48 +00:00
Yo Chiang
7716d479cc Merge "gsi_skip_mount.cfg skips system sub-mountpoints" 2021-04-07 05:04:21 +00:00
David Anderson
ea95657c6e Merge "Relax inode usage estimate." am: 5ebe28c1d4
Original change: https://android-review.googlesource.com/c/platform/build/+/1660557

Change-Id: I4abb9937679a86efa9d14aa9130490ea6c30d617
2021-04-07 02:44:20 +00:00
Treehugger Robot
450d1d1349 Merge "Builds boot-test-harness.img, if INSTALLED_BOOTIMAGE_TARGET." am: d641585484
Original change: https://android-review.googlesource.com/c/platform/build/+/1664602

Change-Id: I533789e5f56d27642fb548160bcbd80653f5144a
2021-04-07 02:43:33 +00:00
David Anderson
5ebe28c1d4 Merge "Relax inode usage estimate." 2021-04-07 02:15:39 +00:00
Treehugger Robot
d641585484 Merge "Builds boot-test-harness.img, if INSTALLED_BOOTIMAGE_TARGET." 2021-04-07 02:05:36 +00:00
Rupert Shuttleworth
3993af706c Mark prop file as writable before writing to it.
Test: Fixes USE_BAZEL=1 m builds.
Change-Id: I1e0fb448049ff21cd32541af56e856442bc25fa7
2021-04-07 01:22:00 +00:00
Ryan Prichard
011859f1c8 Merge "Stop linking against libatomic" am: 5727dc3dd1
Original change: https://android-review.googlesource.com/c/platform/build/+/1663879

Change-Id: Icb26d8e02f1ca721a6e97d1a810bde931e30f4f3
2021-04-06 22:37:33 +00:00
Ryan Prichard
5727dc3dd1 Merge "Stop linking against libatomic" 2021-04-06 21:43:33 +00:00
Christian Wailes
37c941146a Merge "Add the service-art JAR to the System Server classpath." am: 8c614d2515
Original change: https://android-review.googlesource.com/c/platform/build/+/1595811

Change-Id: I6d61655c900aa333d946a4ea2d32a7684301c574
2021-04-06 20:42:48 +00:00
Christian Wailes
8c614d2515 Merge "Add the service-art JAR to the System Server classpath." 2021-04-06 20:30:18 +00:00
Treehugger Robot
ae292e8333 Merge "zipalign: clarify the help for -p slightly." am: 2fea84f592
Original change: https://android-review.googlesource.com/c/platform/build/+/1663783

Change-Id: I525a529c59ad6983bae9bcd9916264b5b509003a
2021-04-06 20:02:41 +00:00
Treehugger Robot
2fea84f592 Merge "zipalign: clarify the help for -p slightly." 2021-04-06 19:15:43 +00:00
Paul Duffin
853c2c867d Merge "Remove use of REMOVE_ATB_FROM_BCP" am: 9910b5e43a
Original change: https://android-review.googlesource.com/c/platform/build/+/1662001

Change-Id: I52f4e89ad6337f57d2f427bab375af5f035cc1b1
2021-04-06 14:13:13 +00:00
Paul Duffin
9910b5e43a Merge "Remove use of REMOVE_ATB_FROM_BCP" 2021-04-06 14:09:30 +00:00
Paul Duffin
24f62069d0 Remove use of REMOVE_ATB_FROM_BCP
This change cleans up after the work to remove the android.test.base
classes from the bootclasspath. That work allowed the presence of
android.test.base in the bootclasspath to be configured at build time
to allow the changes to be tested without affecting the standard
Android builds and avoiding having to repeatedly reapply/revert the
changes that excluded android.test.base from the bootclasspath. That
change has been applied and stuck and no builds change the default by
setting REMOVE_ATB_FROM_BCP=false so we no longer need to support that
capability.

This change removes the build time switch to add
framework-atb-backward-compatibility to the bootclasspath and another
change in the same topic merges those classes into the
framework-minus-apex module. So, while a module has been removed from
the bootclasspath the classes available on it have not changed.

Bug: 184331423
Test: m nothing
Change-Id: I9dadaf8b0c2684bf1983b353bb2acf4f42655e1a
2021-04-06 11:53:08 +01:00
Jakub Kotur
f8735bc4f3 Add test configuration for rust benchmarks.
Same as rust tests with additional parameter.

Test: atest <module with rust_benchmark defined>
Bug: 155309706
Change-Id: Ia734c17bcb0776bbc628ad1e7257a1b38cdb2e4e
2021-04-06 12:41:10 +02:00
Yo Chiang
f19a789d5b Merge "Refactor vendor_boot v4 build logic and add more checks" am: bebc8a35ef
Original change: https://android-review.googlesource.com/c/platform/build/+/1664081

Change-Id: Ie18ddffd7ba64b8dbe0b79689fa9ce67d75939fb
2021-04-06 09:37:41 +00:00
Yo Chiang
bebc8a35ef Merge "Refactor vendor_boot v4 build logic and add more checks" 2021-04-06 09:02:14 +00:00
Bowgo Tsai
1ed0fd54dc Builds boot-test-harness.img, if INSTALLED_BOOTIMAGE_TARGET.
Similar to commit Ic887ea93d4c5181eca0f82c3cdf3ce3b72f4c185
for boot-debug.img, we should also only build boot-test-harness.img
if boot.img exists.

Bug: 184365242
Test: tree hugger

Change-Id: Ie0d9e460905d488e418cf4ee1bd44e6e7c58470d
2021-04-06 08:20:15 +00:00
Yo Chiang
a7a67e0358 Merge "Fix Makefile formatting" am: b5bff9a4d3
Original change: https://android-review.googlesource.com/c/platform/build/+/1664080

Change-Id: Idcc4ea15ac18e0fc7646fefa7579fd08c3b78729
2021-04-06 07:50:10 +00:00
Justin Yun
07ceaa71c1 Use BOARD_API_LEVEL to define ro.board.api_level
GRF devices must define the API level of which the SoC is first
shipped by setting BOARD_SHIPPING_API_LEVEL. As this is a permanent
value, vendors may not change this value even if they implement new
features under the GRF policy.

BOARD_API_LEVEL can be optionally defined in this case to manually
set the api level of the vendor implementation.
The current api level will be set to `ro.board.api_level` property.

Bug: 176950752
Test: atest --host post_process_props_unittest
Change-Id: Ib126c1a622ded9848650f3f60c0f15005867272d
2021-04-06 16:33:07 +09:00
Yo Chiang
b5bff9a4d3 Merge "Fix Makefile formatting" 2021-04-06 07:27:44 +00:00
Treehugger Robot
8163f0b665 Merge "Fix builds with enforce_vintf_kernel + !kernel" am: 3c610dd0aa
Original change: https://android-review.googlesource.com/c/platform/build/+/1663197

Change-Id: I9aa24f9802bd16c39adedc15a760db25a2f6985e
2021-04-06 03:37:50 +00:00
Treehugger Robot
3c610dd0aa Merge "Fix builds with enforce_vintf_kernel + !kernel" 2021-04-06 02:51:38 +00:00
Stephen Hines
d49aa55cf1 Remove all unused, legacy FDO build rules
There are no current users of this feature. All remaining references are
legacy scripts that aren't actually in-use today.

https://source.corp.google.com/search?q=BUILD_FDO_INSTRUMENT%20-file:build%2F
https://source.corp.google.com/search?q=LOCAL_FDO&ct=os&sq=package:%5Eandroid$

Test: build
Change-Id: I86ff6531a0868fb8e30741f0d04de1739fba4586
2021-04-05 17:13:00 -07:00
Stephen Hines
39e9090e7e Remove legacy host shared library linking with gcov
Test: build
Change-Id: I5f701edcfa9021f75659b6be4790119e6baca51c
2021-04-05 16:29:57 -07:00
Daniel Norman
d32fe918bd Merge "Revert "Generate care map after merging target_files"" am: 25444470db
Original change: https://android-review.googlesource.com/c/platform/build/+/1663821

Change-Id: If0dcae373100740cbae9e71dd9f0014752d11c19
2021-04-05 23:19:41 +00:00
Elliott Hughes
f4800de454 zipalign: clarify the help for -p slightly.
Bug: http://b/141281419
Test: treehugger
Change-Id: If331ad0450433bfb8e585e3df3727dd09ef14c66
2021-04-05 16:02:16 -07:00
Daniel Norman
25444470db Merge "Revert "Generate care map after merging target_files"" 2021-04-05 22:43:07 +00:00
David Anderson
203057cb9b Relax inode usage estimate.
The current inode usage estimate applies a factor (1.04x) to account for
differences between the directory and file count and what mkfs.ext4
produces. Bump this to 1.06x to allow more leniency.

This increases bramble partition sizes by 32KB total.

Bug: 182365132
Test: manual test
Change-Id: I9ade82cb89422e31ae8c5df9fff31157e88278c5
2021-04-05 13:45:02 -07:00
Daniel Norman
2d7989a635 Revert "Generate care map after merging target_files"
This reverts commit c184fa1887.

Reason for revert: b/184541365

Change-Id: Icbcbb6deb92863f4a468b9fa54f18d824a6f0939
2021-04-05 17:40:47 +00:00
Treehugger Robot
79c96bf3a9 Merge "Generate care map after merging target_files" am: f92961248b
Original change: https://android-review.googlesource.com/c/platform/build/+/1649488

Change-Id: Ifac4a30a9fcf69a58bbe75e04089de3974906e71
2021-04-05 05:24:01 +00:00