Commit Graph

27372 Commits

Author SHA1 Message Date
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
android-build-team Robot
638a6cef89 Version bump to RQ2A.210505.003 [core/build_id.mk]
Change-Id: Ia5e5a43599a68b5bd39e1eb6bc7ce45b26ad4cc3
2021-04-02 19:05:30 +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
Ryan Prichard
86957e7df8 Merge "Revert "Switch platform-NDK unwinder to LLVM libunwind.a prebuilt"" am: cf5487e07f am: 4637ec0d30 am: 619b6c54cd
Original change: https://android-review.googlesource.com/c/platform/build/+/1658965

Change-Id: I46419e6879b382e9f3e67cb5624385e172656713
2021-03-31 05:59:10 +00:00
Yo Chiang
82462c14ff Merge "Mark PRODUCT_CHECK_ELF_FILES as obsolete" am: d054de08c3 am: cece85f781 am: a1f6052853
Original change: https://android-review.googlesource.com/c/platform/build/+/1657819

Change-Id: I1480896391bebb5e39694a4dc0019e3ed1f73a45
2021-03-31 05:58:38 +00:00
Ryan Prichard
619b6c54cd Merge "Revert "Switch platform-NDK unwinder to LLVM libunwind.a prebuilt"" am: cf5487e07f am: 4637ec0d30
Original change: https://android-review.googlesource.com/c/platform/build/+/1658965

Change-Id: Ib4de6cd44fbc8feda4d8ccd92d98c58b01bc30fd
2021-03-31 05:53:09 +00:00
Yo Chiang
a1f6052853 Merge "Mark PRODUCT_CHECK_ELF_FILES as obsolete" am: d054de08c3 am: cece85f781
Original change: https://android-review.googlesource.com/c/platform/build/+/1657819

Change-Id: I51c4345b7d77242d63379c16d1fb20cb0666fd00
2021-03-31 05:52:20 +00:00
Ryan Prichard
cf5487e07f Merge "Revert "Switch platform-NDK unwinder to LLVM libunwind.a prebuilt"" 2021-03-31 05:29:51 +00:00
Yi-Yo Chiang
f35afe97b1 Mark PRODUCT_CHECK_ELF_FILES as obsolete
Follow-up of aosp/1655468.

Bug: 149715904
Test: Presubmit
Change-Id: I3998c7356e3a41adaa00ab3d1d2c2ec66e2e37d7
2021-03-31 04:25:55 +00:00
Ryan Prichard
9cd4aff304 Revert "Switch platform-NDK unwinder to LLVM libunwind.a prebuilt"
This reverts commit 85a1213232.

Reason for revert: b/184095989

Change-Id: I4643a7bb2fea6411d7c673ec4017fdbab6070b9d
2021-03-31 03:25:26 +00:00
Bowgo Tsai
42131496c8 Adding bootimage_test_harness artifact to droidcore
Currently bootimage_test_harness is only built on a few targets
on release branches. However, we might have a last minute build
breakage on release branches as bootimage_test_harness is not
built on dev branches. Moving it to droidcore so we can have more
completed build coverage on pre-submit/post-submit builds.

Bug: 183865297
Test: `make` then check $OUT
Change-Id: I496609401a9444706726256d2f7b45c6bb69ee94
2021-03-31 03:11:14 +00:00
Dan Albert
bff04f1cfe Merge "Switch platform-NDK unwinder to LLVM libunwind.a prebuilt" am: ee90c8856e am: 77809d7654 am: 4916ac7bc0
Original change: https://android-review.googlesource.com/c/platform/build/+/1554922

Change-Id: I0314745cd0d7f33d7409efb42d4cb73519648367
2021-03-31 00:20:17 +00:00
Dan Albert
4916ac7bc0 Merge "Switch platform-NDK unwinder to LLVM libunwind.a prebuilt" am: ee90c8856e am: 77809d7654
Original change: https://android-review.googlesource.com/c/platform/build/+/1554922

Change-Id: I242dffc67c73cc612b4765fa0e167b1e731bd30f
2021-03-30 23:29:53 +00:00
Dan Albert
ee90c8856e Merge "Switch platform-NDK unwinder to LLVM libunwind.a prebuilt" 2021-03-30 21:44:35 +00:00
android-build-team Robot
19dfbfac57 Version bump to RQ2A.210505.002 [core/build_id.mk]
Change-Id: Iab211eb42bd98e41e9fee05b15de8fba542bd54c
2021-03-30 21:29:18 +00:00