From d566e095f5454d3e2b333cacdb239eef501bd52e Mon Sep 17 00:00:00 2001 From: Scott Little Date: Wed, 1 Aug 2018 12:32:18 -0400 Subject: [PATCH] Relocate extras to stx-update/extras Move content from stx-utils into stx-integ or stx-update Packages will be relocated to stx-update: enable-dev-patch extras stx-integ: config-files/ io-scheduler filesystem/ filesystem-scripts grub/ grubby logging/ logmgmt tools/ collector monitor-tools tools/engtools/ hostdata-collectors parsers utilities/ build-info branding (formerly wrs-branding) platform-util Change-Id: I4143fb20bba179d5c1910edd89921b8d8b5195d5 Story: 2002801 Task: 22687 Signed-off-by: Scott Little --- extras/scripts/make_patch.sh | 16 ++++++++++++++++ extras/scripts/modify_patch.sh | 16 ++++++++++++++++ extras/scripts/patch_build.sh | 15 +++++++++++++++ extras/scripts/query_patch.sh | 16 ++++++++++++++++ 4 files changed, 63 insertions(+) create mode 100755 extras/scripts/make_patch.sh create mode 100755 extras/scripts/modify_patch.sh create mode 100755 extras/scripts/patch_build.sh create mode 100755 extras/scripts/query_patch.sh diff --git a/extras/scripts/make_patch.sh b/extras/scripts/make_patch.sh new file mode 100755 index 00000000..3a645545 --- /dev/null +++ b/extras/scripts/make_patch.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +pushd `dirname $0` > /dev/null +SCRIPTPATH=`pwd` +popd > /dev/null + +# CGCSPATCH_DIR=$MY_REPO/addons/wr-cgcs/layers/cgcs/middleware/patching/recipes-common/cgcs-patch +CGCSPATCH_DIR=$SCRIPTPATH/../../middleware/patching/recipes-common/cgcs-patch + +# Set environment variables for python +export PYTHONPATH=$CGCSPATCH_DIR/cgcs-patch +export PYTHONDONTWRITEBYTECODE=true + +# Run the patch_build tool +exec $CGCSPATCH_DIR/bin/make_patch "$@" + diff --git a/extras/scripts/modify_patch.sh b/extras/scripts/modify_patch.sh new file mode 100755 index 00000000..91cdff2c --- /dev/null +++ b/extras/scripts/modify_patch.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +pushd `dirname $0` > /dev/null +SCRIPTPATH=`pwd` +popd > /dev/null + +# CGCSPATCH_DIR=$MY_REPO/addons/wr-cgcs/layers/cgcs/middleware/patching/recipes-common/cgcs-patch +CGCSPATCH_DIR=$SCRIPTPATH/../../middleware/patching/recipes-common/cgcs-patch + +# Set environment variables for python +export PYTHONPATH=$CGCSPATCH_DIR/cgcs-patch +export PYTHONDONTWRITEBYTECODE=true + +# Run the patch_build tool +exec $CGCSPATCH_DIR/bin/modify_patch "$@" + diff --git a/extras/scripts/patch_build.sh b/extras/scripts/patch_build.sh new file mode 100755 index 00000000..e1f4cd00 --- /dev/null +++ b/extras/scripts/patch_build.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +CGCSPATCH_DIR=$MY_REPO/addons/wr-cgcs/layers/cgcs/middleware/patching/recipes-common/cgcs-patch + +# Source release-info +. $MY_REPO/addons/wr-cgcs/layers/cgcs/middleware/recipes-common/build-info/release-info.inc +export PLATFORM_RELEASE + +# Set environment variables for python +export PYTHONPATH=$CGCSPATCH_DIR/cgcs-patch +export PYTHONDONTWRITEBYTECODE=true + +# Run the patch_build tool +exec $CGCSPATCH_DIR/bin/patch_build "$@" + diff --git a/extras/scripts/query_patch.sh b/extras/scripts/query_patch.sh new file mode 100755 index 00000000..be89ce30 --- /dev/null +++ b/extras/scripts/query_patch.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +pushd `dirname $0` > /dev/null +SCRIPTPATH=`pwd` +popd > /dev/null + +# CGCSPATCH_DIR=$MY_REPO/addons/wr-cgcs/layers/cgcs/middleware/patching/recipes-common/cgcs-patch +CGCSPATCH_DIR=$SCRIPTPATH/../../middleware/patching/recipes-common/cgcs-patch + +# Set environment variables for python +export PYTHONPATH=$CGCSPATCH_DIR/cgcs-patch +export PYTHONDONTWRITEBYTECODE=true + +# Run the patch_build tool +exec $CGCSPATCH_DIR/bin/query_patch "$@" +