diff options
author | Daniil Baturin <daniil@vyos.io> | 2022-10-06 12:08:40 -0400 |
---|---|---|
committer | Daniil Baturin <daniil@vyos.io> | 2022-10-06 17:55:01 -0400 |
commit | 3979b25dcf137600b6ba7ccd361ae78515c012e8 (patch) | |
tree | 2480bb35911dbb09557be01869d71c782e882e5e /scripts/vyos_build_defaults.py | |
parent | 7149a2aa2e51abe6ffb2d81db4ff58da825f0da8 (diff) | |
download | vyos-build-3979b25dcf137600b6ba7ccd361ae78515c012e8.tar.gz vyos-build-3979b25dcf137600b6ba7ccd361ae78515c012e8.zip |
T3664: initial implementation of the build flavor system
Diffstat (limited to 'scripts/vyos_build_defaults.py')
-rw-r--r-- | scripts/vyos_build_defaults.py | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/scripts/vyos_build_defaults.py b/scripts/vyos_build_defaults.py new file mode 100644 index 00000000..ac82dbc4 --- /dev/null +++ b/scripts/vyos_build_defaults.py @@ -0,0 +1,45 @@ +# Copyright (C) 2018 VyOS maintainers and contributors +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 or later as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# +# File: defaults.py +# Purpose: Various default values for use in build scripts. + + +import os + +# Relative to the repository directory + +BUILD_DIR = 'build' +BUILD_CONFIG = os.path.join(BUILD_DIR, 'build-config.toml') + +DEFAULTS_FILE = 'data/defaults.toml' + +BUILD_TYPES_DIR = 'data/build-types' +BUILD_ARCHES_DIR = 'data/architectures' +BUILD_FLAVORS_DIR = 'data/build-flavors' + +# Relative to the build directory + +PBUILDER_CONFIG = 'pbuilderrc' +PBUILDER_DIR = 'pbuilder' + +LB_CONFIG_DIR = 'config' + +CHROOT_INCLUDES_DIR = 'config/includes.chroot' +ARCHIVES_DIR = 'config/archives/' + +VYOS_REPO_FILE = 'config/archives/vyos.list.chroot' +CUSTOM_REPO_FILE = 'config/archives/custom.list.chroot' +PACKAGE_LIST_FILE = 'config/package-lists/custom.list.chroot' + |