update/sw-patch/scripts/setup_patch_repo.sh
Al Bailey 0eb171c11c Setup debian patching scripts
The previous patching scripts were specific to the
centos rpm patching directories, so these scripts
are cloned for the debian env and updated to reflect
the new python and binary locations.

These scripts affect build commands and not runtime.
These scripts are not operational as they point to
utilities and imports that are not converted to ostree
yet.

Test Plan:
 Verify build and ISO creation for debian succeed.

Story: 2009969
Task: 45198
Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: Ia903c6b4f07e3d1409c04c2cc17ff40a2e5a4c7f
2022-04-28 16:16:48 +00:00

22 lines
489 B
Bash
Executable File

#!/bin/bash
#
# Copyright (c) 2018-2022 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
SCRIPTPATH=$(dirname $(readlink -f $0))
SWPATCH_DIR=$SCRIPTPATH/..
# Source release-info
. $SCRIPTPATH/../../../utilities/utilities/build-info/release-info.inc
export PLATFORM_RELEASE
# Set environment variables for python
export PYTHONPATH=$SWPATCH_DIR/cgcs-patch
export PYTHONDONTWRITEBYTECODE=true
# Run the setup_patch_repo tool
exec $SWPATCH_DIR/bin/setup_patch_repo "$@"