This repository has been archived by the owner on Jan 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
globals.sh
59 lines (49 loc) · 1.77 KB
/
globals.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/usr/bin/env bash
# Copyright (C) 2019 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
NAMESPACE=${NAMESPACE:?"NAMESPACE cannot be Null/Unset"}
WORK_DIR=${WORK_DIR:-"${PWD}/${NAMESPACE}/work"}
# Distribution
# If this update stream is either a downstream or an upstream
# A Downstream Mix makes reference to an external update stream to reuse content
IS_DOWNSTREAM=${IS_DOWNSTREAM:-true}
# If this build should be a min version
MIN_VERSION=${MIN_VERSION:-false}
# If this build should be a format bump
# Only used by upstream mixes. Downstream mixes can only track upstream mixes
# format bumps, which is automated
FORMAT_BUMP=${FORMAT_BUMP:-false}
# Servers
CLR_PUBLIC_DL_URL=${CLR_PUBLIC_DL_URL:-"https://download.clearlinux.org"}
# Mixer
MIX_INCREMENT=${MIX_INCREMENT:-10}
# Global options to apply to all mixer calls
MIXER_OPTS=${MIXER_OPTS:-""}
# Number of builds from the current build to generate deltas
NUM_DELTA_BUILDS=${NUM_DELTA_BUILDS:-10}
# Minimum version of mixer that is supported
MIXER_VER_MIN=${MIXER_VER_MIN:-6.2.3}
# Width of MCA statistics table
MCA_TABLE_WIDTH=${MCA_TABLE_WIDTH:-120}
# Workspace
BUNDLES_DIR=${BUNDLES_DIR:-"${WORK_DIR}/bundles"}
LOG_DIR="${WORK_DIR}/logs"
REPO_DIR="${WORK_DIR}/repo"
VARS_DIR="${WORK_DIR}/.vars"
BUILD_ARCH="${BUILD_ARCH:-x86_64}"
PKGS_DIR_SUFFIX="${BUILD_ARCH}/os/packages"
PKGS_DIR="${REPO_DIR}/${PKGS_DIR_SUFFIX}"
BUILD_FILE=build-env
BUNDLES_FILE=bundles-def
CONTENT_REPO=content
MCA_FILE=mca-report
PKG_LIST_FILE=packages-nvr
PKG_LICENSES_FILE=packages-license-info
PKG_LIST_TMP=packages_
RELEASE_NOTES=release-notes
# List of words to be filtered out from $PKG_LICENSES_FILE as they are not real licenses
# Space-separated
LICENSES_FILTER=${LICENSES_FILTER-"and"}
# Images
CHKSUM_FILE_SUFFIX=${CHKSUM_FILE_SUFFIX:-"SHA512SUM"}