Commit Graph

26992 Commits

Author SHA1 Message Date
Treehugger Robot
cd2621f177 Merge "Use BOARD_API_LEVEL to define ro.board.api_level" am: 222b4ab071 am: bcadcb4c8f
Original change: https://android-review.googlesource.com/c/platform/build/+/1662022

Change-Id: I814dd8f01e6334cbe9f9973fc271a21ba0d94fcb
2021-04-08 01:36:27 +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
Rupert Shuttleworth
39dabbfd2f Merge "Mark prop file as writable before writing to it." am: 90eeff54ea am: 185080ab39 am: 6f3d332a52
Original change: https://android-review.googlesource.com/c/platform/build/+/1666239

Change-Id: I1b63d12bc9467f58b23a6b3e0aef221807d8f539
2021-04-07 14:53:49 +00:00
Rupert Shuttleworth
6f3d332a52 Merge "Mark prop file as writable before writing to it." am: 90eeff54ea am: 185080ab39
Original change: https://android-review.googlesource.com/c/platform/build/+/1666239

Change-Id: Iaf415232101487925d4c5b79a49c4a41d8f7c334
2021-04-07 14:08:12 +00:00
Rupert Shuttleworth
90eeff54ea Merge "Mark prop file as writable before writing to it." 2021-04-07 12:40:34 +00:00
Treehugger Robot
a31becc1ed Merge "Builds boot-test-harness.img, if INSTALLED_BOOTIMAGE_TARGET." am: d641585484 am: 450d1d1349 am: 67b869e3d4
Original change: https://android-review.googlesource.com/c/platform/build/+/1664602

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

Change-Id: Icd0aabce521f440321cbb37fc718814096d6fe9a
2021-04-07 03:28:25 +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
bc98e53fe8 Merge "Stop linking against libatomic" am: 5727dc3dd1 am: 011859f1c8 am: 11411e1ce3
Original change: https://android-review.googlesource.com/c/platform/build/+/1663879

Change-Id: Ied846bc477c10f3b5c7c4129ceed0d96c7aed3a2
2021-04-07 00:15:50 +00:00
Ryan Prichard
11411e1ce3 Merge "Stop linking against libatomic" am: 5727dc3dd1 am: 011859f1c8
Original change: https://android-review.googlesource.com/c/platform/build/+/1663879

Change-Id: I11b145eae24128fbe3c3b8a4b58677043e84ca66
2021-04-06 23:27:37 +00:00
Ryan Prichard
5727dc3dd1 Merge "Stop linking against libatomic" 2021-04-06 21:43:33 +00:00
Yo Chiang
0e38bfa5bb Merge "Refactor vendor_boot v4 build logic and add more checks" am: bebc8a35ef am: f19a789d5b am: ba7020ec3d
Original change: https://android-review.googlesource.com/c/platform/build/+/1664081

Change-Id: I10838451c8e3d55c2f4ba7e2dd6db272c9666cb3
2021-04-06 11:06:50 +00: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
ba7020ec3d Merge "Refactor vendor_boot v4 build logic and add more checks" am: bebc8a35ef am: f19a789d5b
Original change: https://android-review.googlesource.com/c/platform/build/+/1664081

Change-Id: I93bede273ca12bb17aa431df8b70ea5f9b5a86f6
2021-04-06 10:19:34 +00:00
Yo Chiang
1ef1bc87a7 Merge "Fix Makefile formatting" am: b5bff9a4d3 am: a7a67e0358 am: fb51a1d107
Original change: https://android-review.googlesource.com/c/platform/build/+/1664080

Change-Id: Ied00b66168177c9c6f5f9d76c7de763f9a936556
2021-04-06 09:22:29 +00:00
Yo Chiang
bebc8a35ef Merge "Refactor vendor_boot v4 build logic and add more checks" 2021-04-06 09:02:14 +00:00
Yo Chiang
fb51a1d107 Merge "Fix Makefile formatting" am: b5bff9a4d3 am: a7a67e0358
Original change: https://android-review.googlesource.com/c/platform/build/+/1664080

Change-Id: I71ca8cc9afae84378ac46e99eb8bf4f255b1bea2
2021-04-06 08:31:48 +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
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
de17763432 Merge "Fix builds with enforce_vintf_kernel + !kernel" am: 3c610dd0aa am: 8163f0b665 am: 75257bca9c
Original change: https://android-review.googlesource.com/c/platform/build/+/1663197

Change-Id: I1adf5e389d32e22f0c34fd7f00ccc4b87b12ef74
2021-04-06 05:07:15 +00:00
Treehugger Robot
75257bca9c Merge "Fix builds with enforce_vintf_kernel + !kernel" am: 3c610dd0aa am: 8163f0b665
Original change: https://android-review.googlesource.com/c/platform/build/+/1663197

Change-Id: I63c23ed361bb357f153f5e3d5667b932a992ef35
2021-04-06 04:19:45 +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
Yi-Yo Chiang
9c461365de Fix Makefile formatting
Add indent to if-block so my text editor stop complaining.

Test: Presubmit
Change-Id: Ie3f4dbd114d894453bf46a91b47d5d0450e5e1e7
2021-04-05 12:49:17 +08:00
Yi-Yo Chiang
6c7e02e74e Support installing modules.options file
Usage:
```
BOARD_(VENDOR|VENDOR_RAMDISK)_KERNEL_MODULES_OPTIONS_FILE(_ver) := \
  $(wildcard <path of modules.options in source tree>)
```

Then the modules.options would be installed as
(vendor_dlkm|vendor_ramdisk)/lib/modules/(ver/)modules.options.

Also fix bug where the kernel version subdir is missing when generating
modules.blocklists file.

Bug: 182417593
Bug: 184238876
Test: Create a options file with incorrect syntax, verify build fails
Test: Verify the new macro indeed installs the options file
Change-Id: I7ba56e9dd8d73055bc276446c385a8d79080c2a6
2021-04-04 14:25:47 +00:00
Yi-Yo Chiang
1519d4351e Refactor vendor_boot v4 build logic and add more checks
Add more checks around BOARD_BOOT_HEADER_VERSION in board_config.mk.

Refactor generation logic of vendor_boot ramdisk fragments.
Consolidate initialization and validation check to its own section.
Adjust some variable names and initialization sequence so the follow-up
change can land more cleanly.
Rename variable name "dir" so that it don't collide with the Makefile
function "$(dir ...)".

Bug: 183395459
Test: Presubmit; Change should be no-op with respect to build artifacts.
Test: Modify BoardConfig of CF and m dist. Verify the vendor_boot.img
  with unpack_bootimg.
Change-Id: I8785c40dd9f87f3797a56ada93e65939d27d0e9b
2021-04-04 20:40:17 +08:00
Ryan Prichard
663b98bbab Stop linking against libatomic
The __atomic_* library functions are now part of the compiler-rt
builtins library:

https://android-review.googlesource.com/c/toolchain/llvm_android/+/1625025

Bug: http://b/153025717
Test: treehugger
Change-Id: Iebd5eaf17f8559696b6d6e2e0dd782f77b6bcab5
2021-04-02 21:05:48 -07:00
Yifan Hong
3e061bd1c8 Fix builds with enforce_vintf_kernel + !kernel
If a build has PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS
set (which is set for P+ builds) but no kernel is built,
the original code emits a warning, but it won't be able
to build target files package because it depends on
kernel_configs.txt and kernel_version.txt without any rules.

Properly clear BUILT_KERNEL_CONFIGS_FILE and BUILT_KERNEL_VERSION_FILE
so that it won't be depended on in this case.

Bug: 184128489
Test: TH + forrest

Change-Id: I4b8fbd117f114555cf606e3c3b48eb564dbe786b
2021-04-02 16:19:01 -07:00
Elliott Hughes
d63b6a1054 Merge "Remove honggfuzz support." am: 4ac1818cde am: a526577693 am: a6600c241e
Original change: https://android-review.googlesource.com/c/platform/build/+/1663184

Change-Id: I0a6a96a61ec4a195c89fdd3d48a3011f01023a42
2021-04-02 22:56:23 +00:00
Elliott Hughes
a6600c241e Merge "Remove honggfuzz support." am: 4ac1818cde am: a526577693
Original change: https://android-review.googlesource.com/c/platform/build/+/1663184

Change-Id: Ia46e509718525427316575db53be1459cedc1949
2021-04-02 22:10:44 +00:00
Elliott Hughes
4ac1818cde Merge "Remove honggfuzz support." 2021-04-02 20:47:05 +00:00
Alexander Smundak
2354ab2b2f Merge "Address reviewer comments from the previous commits" am: 14e6f9c708 am: c4c9320095 am: 64b0c66389
Original change: https://android-review.googlesource.com/c/platform/build/+/1661158

Change-Id: I0632d2a809252b15cdb7d5a7e0142e67bad8b15f
2021-04-02 19:51:13 +00:00
Alexander Smundak
64b0c66389 Merge "Address reviewer comments from the previous commits" am: 14e6f9c708 am: c4c9320095
Original change: https://android-review.googlesource.com/c/platform/build/+/1661158

Change-Id: I28df32e7f4aca03c32de9620eb7bab2fbcab49e8
2021-04-02 18:59:28 +00:00
Alexander Smundak
14e6f9c708 Merge "Address reviewer comments from the previous commits" 2021-04-02 18:07:47 +00:00
Elliott Hughes
a445ef6cde Remove honggfuzz support.
Everyone's on libFuzzer now.

(The "fuzz" referred to in base_system.mk was removed in Android 11, but
this reference was left lying around.)

Bug: http://b/184301511
Test: treehugger
Change-Id: I6fe0f2c37e014647802279a656d2c6c9625b7a44
2021-04-02 10:24:48 -07:00
Sasha Smundak
357e37c4d4 Address reviewer comments from the previous commits
Fixes: 170637441
Test: rbcrun build/make/tests/run.rbc
Change-Id: Ifc16fe02d96bc3a4c5562b74da8c1e7b393dc000
2021-04-01 23:07:06 -07:00
Ryan Prichard
33eb60f527 Merge "Revert^2 "Switch platform-NDK unwinder to LLVM libunwind.a prebuilt"" am: f56f074e06 am: 7249bad17a am: 6751ce0f7c
Original change: https://android-review.googlesource.com/c/platform/build/+/1661419

Change-Id: I5a83799e0f65c509abb3884a819a8f701959ea56
2021-04-02 00:58:03 +00:00
Ryan Prichard
6751ce0f7c Merge "Revert^2 "Switch platform-NDK unwinder to LLVM libunwind.a prebuilt"" am: f56f074e06 am: 7249bad17a
Original change: https://android-review.googlesource.com/c/platform/build/+/1661419

Change-Id: Ibdde561361aa84675f99ed34eb65c1ef1d08a54a
2021-04-02 00:05:52 +00:00
Ryan Prichard
f56f074e06 Merge "Revert^2 "Switch platform-NDK unwinder to LLVM libunwind.a prebuilt"" 2021-04-01 22:42:33 +00:00
Treehugger Robot
ea1e272a21 Merge "Adding bootimage_test_harness artifact to droidcore" am: 8a42f673ac am: f1350276c7 am: 41944d9612
Original change: https://android-review.googlesource.com/c/platform/build/+/1659677

Change-Id: I6eaf1fb240693439bfb2cba402c981a97d07080d
2021-04-01 15:49:40 +00:00
Treehugger Robot
41944d9612 Merge "Adding bootimage_test_harness artifact to droidcore" am: 8a42f673ac am: f1350276c7
Original change: https://android-review.googlesource.com/c/platform/build/+/1659677

Change-Id: I432b95d800e9ea4e777c36a577a9293377b778d6
2021-04-01 15:01:53 +00:00
Treehugger Robot
8a42f673ac Merge "Adding bootimage_test_harness artifact to droidcore" 2021-04-01 13:51:50 +00:00
Ryan Prichard
6d74870a67 Revert^2 "Switch platform-NDK unwinder to LLVM libunwind.a prebuilt"
This reverts commit 9cd4aff304.

Bug: http://b/153025717
Test: treehugger
Change-Id: I548ca3dd5bdddb52199b4b5e1455832ee1d28125
2021-03-31 15:33:35 -07:00
Alexander Smundak
6dc38a4421 Merge changes from topic "product_config_star" am: fe5799af6b am: a0b657ef80 am: 0222b39ca5
Original change: https://android-review.googlesource.com/c/platform/build/+/1486492

Change-Id: I51a523a3844c3c4fb012ee041c1a47800462a360
2021-03-31 21:18:03 +00:00
Alexander Smundak
0222b39ca5 Merge changes from topic "product_config_star" am: fe5799af6b am: a0b657ef80
Original change: https://android-review.googlesource.com/c/platform/build/+/1486492

Change-Id: I332521fb5eba623d7981a3e311ae1745dd229d70
2021-03-31 20:32:46 +00:00
Alexander Smundak
fe5799af6b Merge changes from topic "product_config_star"
* changes:
  Product configuration in Starlark support files.
  Roboleaf product configuration runner
2021-03-31 18:28:50 +00:00