blob: 3e9218f200a22d5429fef0a8d02b3fede6bc1443 [file] [log] [blame]
Joe Onorato366c6222024-06-03 17:22:58 -07001#/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 Onorato91ece412024-12-06 12:56:54 -080017set -x
18
19source build/make/shell_utils.sh
Joe Onorato366c6222024-06-03 17:22:58 -070020
21export TARGET_PRODUCT=aosp_arm64
22export TARGET_RELEASE=trunk_staging
23export TARGET_BUILD_VARIANT=eng
24
Joe Onorato91ece412024-12-06 12:56:54 -080025import_build_vars \
26 OUT_DIR \
27 DIST_DIR \
28 HOST_OUT_EXECUTABLES \
29 || exit $?
30
LaMont Jonesb7679762024-10-03 07:09:46 -070031TARGETS=(
Ronish Kaliaf7c2fbe2024-09-13 23:38:46 +000032 all_teams
Joe Onorato91ece412024-12-06 12:56:54 -080033 source_tree_size
LaMont Jonesb7679762024-10-03 07:09:46 -070034 release_config_metadata
35)
Joe Onorato366c6222024-06-03 17:22:58 -070036
Joe Onorato91ece412024-12-06 12:56:54 -080037# Build modules
38build/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 $?