
To make easier for the user to utilize the patch-builder tool we made 3 different changes: - stx-builder.Dockerfile: Add python modules to be installed when building the image. - buildrc: Add /stx/patch to $PATCH env variable, making "patch-builder" script more easy execute. - userenv: Update information in the "welcome" message for builder container. Test plan: PASS: Rebuild all containers, using: "./stx-init-env --rebuild" PASS: Test usual build process, using: "downloader" "build-pkgs" "build-image" PASS: Test patch builder, using: "patch-builder --recipe <path>" Story: 2010676 Task: 50438 Change-Id: Ic458f58d376a64d3654c6f19e5d11d0e99f8d6f9 Signed-off-by: Dostoievski Batista <dostoievski.albinobatista@windriver.com>
42 lines
1.5 KiB
Plaintext
42 lines
1.5 KiB
Plaintext
# Common configuration for StarlingX builder
|
|
|
|
# Find the other rc files
|
|
BUILDRC_DIR=$(cd $(dirname "${BASH_SOURCE:-$0}") && pwd)
|
|
|
|
# Allow local overrides of env variables
|
|
if [[ -f $BUILDRC_DIR/localrc ]]; then
|
|
source $BUILDRC_DIR/localrc
|
|
fi
|
|
|
|
# In the docker run command this will be correct for the host side of the mapping
|
|
LOCALDISK="/localdisk"
|
|
|
|
# Release Variable
|
|
export MY_RELEASE=${MY_RELEASE:-6.0}
|
|
|
|
# avoid calling your project 'build' it will break some SDEBs
|
|
export PROJECT=${PROJECT:-stx}
|
|
|
|
# These are used in the Dockerfile, not sure where else
|
|
export MYUNAME=${MYUNAME:-builder}
|
|
|
|
# All of the below are dependent on variables defined earlier, right now
|
|
# we are not going to support directly setting them in localrc
|
|
export MY_BUILD_PKG_DIR=${LOCALDISK}/loadbuild/$MYUNAME/$PROJECT/
|
|
export MY_WORKSPACE=${LOCALDISK}/loadbuild/$MYUNAME/$PROJECT/
|
|
export MY_LOCAL_DISK=${LOCALDISK}/designer/$MYUNAME
|
|
export MY_REPO_ROOT_DIR=$MY_LOCAL_DISK/$PROJECT
|
|
export MY_REPO=$MY_REPO_ROOT_DIR/cgcs-root
|
|
export MY_BUILD_TOOLS_DIR=$MY_REPO/build-tools
|
|
export LAYER=$LAYER
|
|
export STX_CONFIG_DIR=$MY_REPO_ROOT_DIR/stx-tools
|
|
export PREFIX_BINARYLIST_DIR=debian-mirror-tools/config/debian/
|
|
export STX_BINARYLIST_DIR=$STX_CONFIG_DIR/$PREFIX_BINARYLIST_DIR
|
|
export STX_GIT_SRC_DIR=$MY_REPO/stx/git
|
|
export PATCH_BUILDER_PATH=$MY_REPO/build-tools/stx/patch
|
|
|
|
export PATH=$PATH:$MY_BUILD_TOOLS_DIR/stx:/opt/LAT/lat:$PATCH_BUILDER_PATH
|
|
export PYTHONPATH=$PYTHONPATH:$MY_BUILD_TOOLS_DIR/stx
|
|
|
|
export STX_MIRROR=/import/mirrors/starlingx
|