Commit graph

80517 commits

Author SHA1 Message Date
Colin Cross
c0b0104bff Remove references to gcc from envsetup.sh
The target gcc toolchains have been removed from the tree, remove them
from the PATH set up by envsetup.sh.  Also remove GCC_COLORS, since
we always use clang.

Test: source envsetup.sh
Change-Id: I6020816a78d0f3e03ade13812313adb156864ab6
2022-10-05 12:03:03 -07:00
Ken Sun
61818c4aa9 Merge "Revert "Use the toolchain from JDK 17"" 2022-10-03 03:17:13 +00:00
Ken Sun
a2578b28ab Revert "Use the toolchain from JDK 17"
Revert "Use the toolchain from JDK 17"

Revert submission 2164342-use-jdk17

Reason for revert: DroidMonitor-triggered revert due to breakage b/250426490

Reverted Changes:
Ib1a24e7ea:Update path for libjli.so
I3375bd4e4:Use the toolchain from JDK 17
I9183e5511:Use the toolchain from JDK 17

Change-Id: Ic72662dab2e57a60272b0a82606a17974efcd982
2022-10-03 03:12:41 +00:00
Sorin Basca
71ddbf4351 Merge "Use the toolchain from JDK 17" 2022-10-02 19:36:17 +00:00
Treehugger Robot
34d0c5895e Merge "Support container password for apex signing" 2022-09-30 19:36:02 +00:00
Kelvin Zhang
137807d69d Support container password for apex signing
Some partners need the ability to sign apexes with passwords enabled.

Test: th
Bug: 206007131
Change-Id: I6abb0775031a4c6bf8aaae679f5c7ad8f4cffe46
2022-09-30 09:19:57 -07:00
Qing Shen
e9b6673e00 Merge "Modifies path of getting libc++ library for LLVM coverage generation, caused by upstream clang updates." 2022-09-30 05:34:59 +00:00
Qing Shen
d058fc33a3 Modifies path of getting libc++ library for LLVM coverage generation, caused by upstream clang updates.
See https://b.corp.google.com/issues/236023386#comment11,  culprit CL: https://reviews.llvm.org/D126731 and https://reviews.llvm.org/D107799

Change-Id: I6eaad2d97fbd4e2b82765f8f8cbe671943754938
bug: b/249525798
2022-09-30 05:34:32 +00:00
Alex Buynytskyy
53519bf218 Merge "Revert all previous commits." 2022-09-29 23:38:47 +00:00
Treehugger Robot
9d06081f67 Merge "Add a tool that will tell which git projects are used for a build target" 2022-09-29 11:04:01 +00:00
Sorin Basca
6568b77dfb Use the toolchain from JDK 17
Bug: 233029164
Test: m
Change-Id: I9183e55117bec8b1728e8d2ce8383d086f82d117
2022-09-29 10:17:50 +01:00
Joe Onorato
cccf2ca337 Add a tool that will tell which git projects are used for a build target
See build/make/tools/whichgit -h for the options

Test: build/make/tools/whichgit --modules com.google.android.tzdata
Test: build/make/tools/whichgit --modules framework
Test: TARGET_BUILD_APPS=com.google.android.tzdata4 build/make/tools/whichgit --products mainline_modules_arm64 --variants eng --modules $TARGET_BUILD_APPS --why "*"
Change-Id: I05d91b85575a920b3ec9f5959e2ce463a45e63a3
2022-09-28 23:46:18 -07:00
Treehugger Robot
c2b7a83190 Merge "Fix nondeterminisim in xmlnotice" 2022-09-29 03:47:20 +00:00
Colin Cross
4b54525b2b Fix nondeterminisim in xmlnotice
SafePathPrefixes contains "prebuilts/" which is a prefix of another
entry "prebuilts/module_sdk" which can both match the same path.
SafePathPrefixes is a map, so the iteration order is nondeterminisitic.
Move both SafePathPrefixes and SafePrebuiltPrefixes into lists that
will always have a deterministic iteration order.

Bug: 230357391
Test: build NOTICE.xml.gz multiple times
Change-Id: Ibfcd6715b70f26164e0ef4d59f73b240f47f8db7
2022-09-28 15:40:20 -07:00
Alex Buynytskyy
c66908b638 Revert all previous commits.
Bug: 243966946
Test: time ./build/make/finalize-step-1.sh
Change-Id: Iee5d3d76990d8f1785d34c0898ea86792e2d95fe
2022-09-28 22:32:53 +00:00
Sam Delmerico
7017ac77fd Merge "remove zsh from roboleaf_tests.sh" 2022-09-28 19:40:39 +00:00
Sam Delmerico
43444ec2fe remove zsh from roboleaf_tests.sh
zsh command was not found on the build server. Remove it from this test.

Bug: 249559295
Test: build/make/tests/roboleaf_tests.sh
Change-Id: I7a79b183d9fd40829ab03bc54ce899efaa974a60
2022-09-28 15:34:34 -04:00
Sam Delmerico
f4a5240eb3 Merge changes I5e887932,I648960b3
* changes:
  re-enable b run commands in test suite
  re-enable b test suite
2022-09-28 19:09:24 +00:00
Sam Delmerico
d0c8cf02b6 re-enable b run commands in test suite
Zsh has some incompatibilties that we've been trying to work around in
the b command. Hopefully this prevents future issues.

Bug: 242759256
Test: build/make/tests/roboleaf_tests.sh
Change-Id: I5e887932e943112377d38e77a77a0f294b43d9b6
2022-09-28 09:52:22 -04:00
Sam Delmerico
4f6ca1a546 re-enable b test suite
Bug: 244771601
Test: build/make/tests/roboleaf_tests.sh
Change-Id: I648960b336acd31709aafe858fcbc5be9dc8397a
2022-09-28 09:46:21 -04:00
Sandro Montanari
1bcc569e14 Merge "Rollback "Make com.android.sepolicy mandatory"" 2022-09-28 08:47:37 +00:00
Spandan Das
4f4b3faa84 Merge "Update paths to orchestrator scripts" 2022-09-27 22:02:01 +00:00
Ibrahim Kanouche
8550b25d0a Merge "Added a Breadth-first top down walk function to policy_walk." 2022-09-27 05:14:52 +00:00
Treehugger Robot
0cf4107cbb Merge "Update ota_metadata_pb2.py" 2022-09-26 20:55:57 +00:00
Ibrahim Kanouche
e7c33de179 Added a Breadth-first top down walk function
to policy_walk.

Test: m droid dist
Change-Id: I678d2a2402c7c3ab446e8533c9f862cd8f54f889
2022-09-26 19:04:51 +00:00
Sandro
d571ca6d4a Rollback "Make com.android.sepolicy mandatory"
Rolling back the changes from aosp/2199179.

Bug: 243923977#comment9
Test: adb shell ls /dev/selinux /system/etc/selinux
Change-Id: If205f106230c2f076f72396011b68079ddd4d253
2022-09-26 11:49:30 +00:00
Bob Badour
6196ea23cd Merge "Make notice order more deterministic." 2022-09-23 21:25:12 +00:00
Treehugger Robot
255c1f0e9f Merge "Minor refactor." 2022-09-23 20:53:49 +00:00
Treehugger Robot
770057ca70 Merge "Add sync to m help" 2022-09-23 20:15:09 +00:00
Bob Badour
113c92b0a3 Make notice order more deterministic.
Bug: 230357391

Test: m droid dist
Change-Id: Ib3f771f9fd16743fca3f6c80c2ff85c9e42772a9
2022-09-23 11:27:24 -07:00
Alex Buynytskyy
73e0f97b8c Minor refactor.
- cleanup local state before exiting,
- move cl upload to a separate function for readability.

Bug: 243966946
Test: run locally
Change-Id: If66d52168abc2e4878fe99255397d7432874e141
2022-09-23 11:09:21 -07:00
Treehugger Robot
46e28206eb Merge "Use shell sort command" 2022-09-23 17:38:30 +00:00
Kelvin Zhang
67c69d14f0 Update ota_metadata_pb2.py
Automatically created with aprotoc ota_metadata.pb --python_out=.

Test: th
Change-Id: I5b9522845ba781c6919b893f71e28393b8a505b7
2022-09-23 10:07:04 -07:00
Treehugger Robot
65a2b40d98 Merge "Extract finalization build to a separate script." 2022-09-22 23:44:15 +00:00
Kelvin Zhang
ed714e0f24 Use shell sort command
When using builtin sort() function, make will detect changes in
the find sub-expression, and re-parse the whole makefile. Even though file
list after soring is identical. This is bad for incremental builds, as
everytime a python file is modified, the order files that gets returned
by find changes, resulting in long build time.

Test: th
Change-Id: I8cc347b4473a2b241f2f10e016e5968477c482f3
2022-09-22 12:46:36 -07:00
Alex Buynytskyy
3bd1b91877 Extract finalization build to a separate script.
For finalization CI we'll do multiple builds and tests in a separate
branch.

Bug: 243966946
Test: abdt in nightly
Change-Id: Ie90705de3145c06363536613e57c0de504b5eb1b
2022-09-22 11:32:29 -07:00
Treehugger Robot
80a3e1896d Merge "Policy clarified: No need to share a "distribution medium"" 2022-09-22 16:59:36 +00:00
Bob Badour
085a2c23e7 Policy clarified: No need to share a "distribution medium"
Including code built from restricted sources in a distribution medium
does not require sharing the code for building the distribution medium.

Test: m cts dist

Test: m cts dist gts (requires cherry-pick to internal)

Change-Id: I7fcd889b11a97f8deaf4de9d72fdadd09deebe30
2022-09-22 03:23:23 +00:00
Colin Cross
1778342af2 Add sync to m help
Add sync to the list of targets documented by m help.

Change-Id: Id6cdb9d6e332b85068d895120aa7d344cf287f37
2022-09-22 02:26:10 +00:00
Bob Badour
9a76135e44 Merge "Policy change: GPL+CE is permissive." 2022-09-21 23:33:30 +00:00
Treehugger Robot
ae0ba167d4 Merge "Finalization script, step 1." 2022-09-21 22:10:17 +00:00
Alix Espino
358fe88bf1 Merge "Revert "Revert "Default BuildBrokenClangCFlags & BuildBrokenCla..."" 2022-09-21 19:28:11 +00:00
Treehugger Robot
6829da941d Merge "temporarily disable roboleaf_tests.sh" 2022-09-21 17:41:19 +00:00
Alix Espino
38e07f1baf Revert "Revert "Default BuildBrokenClangCFlags & BuildBrokenCla..."
Revert^2 "deletion of clang_cflags & clang_asflags from Soong"

e9a6865bc7c51028ed348f6d1c6b975ee8b98837

Test: Treehugger
Change-Id: Ibda75c075d0d88f2c11fd10722c9a74481ee965a
2022-09-21 16:45:00 +00:00
Sam Delmerico
3e5fcd8a61 temporarily disable roboleaf_tests.sh
When I enabled the envsetup_tests target on CI, this script was failing.
Rather than break the build again by enabling CI on a potentially
failing script, let's just disable this for now, enable the CI target,
and then this script can be enabled and tested in presubmits before
submitting.

Bug: 244771601
Test: build/make/tests/roboleaf_tests.sh
Change-Id: I7c3469b49258e37c0ff9b49dd8805031216a7570
2022-09-21 10:56:49 -04:00
Treehugger Robot
c017139559 Merge "Simplify PLATFORM_BASE_SDK_EXTENSION_VERSION" 2022-09-21 14:09:20 +00:00
Bob Badour
10f5c48b23 Policy change: GPL+CE is permissive.
Bug: 210546823

Test: m cts compliance_checkshare compliancenotice_bom \
    compliancenotice_shippedlibs compliance_listshare \
    compliance_dumpgraph compliance_dumpresolutions htmlnotice \
    compliance_rtrace textnotice xmlnotice

Change-Id: I7da36972ffbb1494e33fd63db8e5ec851d47704c
2022-09-20 21:50:08 -07:00
Alex Buynytskyy
0842d212b9 Finalization script, step 1.
- cleanup
- revert previous commits
- vndk + resources + sdk finalization + test
- create cls
- send to Gerrit
- (tbd) submit

Bug: 243966946
Test: run scripts locally

Change-Id: Icd4f07c64c2ef93831dc5fc7de2d5e832604e88d
2022-09-20 20:31:04 -07:00
Treehugger Robot
0da3dc63af Merge "Remove fs-verity build manifest for vendor/odm/product" 2022-09-21 00:33:52 +00:00
Spandan Das
ca76205afd Update paths to orchestrator scripts
Now that orchestrator code has moved into its own project, update the
paths in multitree envesetup

Test: multitree_lunch locally
Change-Id: Ic718b9fa169c68ac161ac3448b6e46635ec2ae10
2022-09-21 00:08:34 +00:00