update/sw-patch/scripts/patch_build.sh

22 lines
479 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 patch_build tool
exec $SWPATCH_DIR/bin/patch_build "$@"