Joe Onorato | 366c622 | 2024-06-03 17:22:58 -0700 | [diff] [blame] | 1 | #/bin/bash |
| 2 | |
| 3 | # Copyright 2024, The Android Open Source Project |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | |
Joe Onorato | 91ece41 | 2024-12-06 12:56:54 -0800 | [diff] [blame] | 17 | set -x |
| 18 | |
| 19 | source build/make/shell_utils.sh |
Joe Onorato | 366c622 | 2024-06-03 17:22:58 -0700 | [diff] [blame] | 20 | |
| 21 | export TARGET_PRODUCT=aosp_arm64 |
| 22 | export TARGET_RELEASE=trunk_staging |
| 23 | export TARGET_BUILD_VARIANT=eng |
| 24 | |
Joe Onorato | 91ece41 | 2024-12-06 12:56:54 -0800 | [diff] [blame] | 25 | import_build_vars \ |
| 26 | OUT_DIR \ |
| 27 | DIST_DIR \ |
| 28 | HOST_OUT_EXECUTABLES \ |
| 29 | || exit $? |
| 30 | |
LaMont Jones | b767976 | 2024-10-03 07:09:46 -0700 | [diff] [blame] | 31 | TARGETS=( |
Ronish Kalia | f7c2fbe | 2024-09-13 23:38:46 +0000 | [diff] [blame] | 32 | all_teams |
Joe Onorato | 91ece41 | 2024-12-06 12:56:54 -0800 | [diff] [blame] | 33 | source_tree_size |
LaMont Jones | b767976 | 2024-10-03 07:09:46 -0700 | [diff] [blame] | 34 | release_config_metadata |
| 35 | ) |
Joe Onorato | 366c622 | 2024-06-03 17:22:58 -0700 | [diff] [blame] | 36 | |
Joe Onorato | 91ece41 | 2024-12-06 12:56:54 -0800 | [diff] [blame] | 37 | # Build modules |
| 38 | build/soong/bin/m dist ${TARGETS[@]} || exit $? |
| 39 | |
| 40 | # List all source files in the tree |
| 41 | ( \ |
| 42 | $HOST_OUT_EXECUTABLES/source_tree_size -o $DIST_DIR/all_source_tree_files.pb \ |
| 43 | && gzip -fn $DIST_DIR/all_source_tree_files.pb \ |
| 44 | ) || exit $? |