root/build-tools/wheel-utils.sh
Scott Little a4174a1e0a Remove CentOS/OpenSUSE build support
StarlingX stopped supporting CentOS builds in the after release 7.0.
This update will strip CentOS from our code base.  It will also
remove references to the failed OpenSUSE feature as well.

There is still one CentOS based docker image (n3000), so
this update will leave limited CentOS support in download
and docker image building tools.

Verified with a full Jenkins master branch build for Debian.
- download full and incremental
- package build full and incremental
- iso build
- build of base container image
- build all flock container images
- helm chart build.

Story: 2011110
Task: 49939
Change-Id: I57939d2026d7df76091e8658750b4bd0fa8e4f5f
Signed-off-by: Scott Little <scott.little@windriver.com>
2024-08-06 13:43:50 +00:00

37 lines
794 B
Bash
Executable File

#
# Copyright (c) 2020 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
#
# A place for any functions related to wheels.inc files
#
WHEEL_UTILS_DIR="$(dirname "$(readlink -f "${BASH_SOURCE[0]}" )" )"
source "${WHEEL_UTILS_DIR}/git-utils.sh"
#
# wheels_inc_list <stream> <distro> [<layer>]
#
# Parameters:
# stream: One of 'stable', 'dev'
# distro: One of 'debian', ...
#
# Returns: A list of unique packages that contain needed wheel
# files. This is the union per git wheels.inc files.
wheels_inc_list () {
local stream=$1
local distro=$2
local search_target=${distro}_${stream}_wheels.inc
(
for d in $GIT_LIST; do
find $d/ -maxdepth 1 -name "${search_target}" -exec grep '^[^#]' {} +
done
) | sort --unique
}