Files
tools/stx/toCOPY/builder/userenv
Davlet Panech 65ecdbc0d8 debian: stx tool: std/rt support
Make sure the stx tool passes std/rt flags to download and build scripts.

TESTS
===========================

stx build download -s -t std
stx build download -s -t rt
stx build download -b -t std
stx build download -b -t rt

stx build world -t std
stx build world -t rt

stx build image -t std
stx build image -t rt

Story: 2009897
Task: 45279

Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
Change-Id: I7f26239fd6bd3f8fb1233a64679dd7c076e76db8
2022-05-05 07:41:09 -04:00

53 lines
1.2 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
# Allow local overrides of env variables
if [[ -f $BUILDRC_DIR/buildrc ]]; then
source $BUILDRC_DIR/buildrc
fi
if [ ! -d $MY_REPO_ROOT_DIR ]; then
mkdir -p $MY_REPO_ROOT_DIR > /dev/null 2>&1
fi
if [ ! -d $MY_WORKSPACE ]; then
mkdir -p $MY_WORKSPACE > /dev/null 2>&1
fi
if echo $- | grep -q i ; then
cat <<EOF
To ease checkout do:
!!!! Mandatory:
sudo apt-get update
git config --global user.name <username>
git config --global user.email <email>
If proxy used:
ssh -D 8080 -qTfnN <proxy host>
echo "alias wget='proxychains wget'" >>~/.bashrc
echo "alias repo='proxychains repo'" >>~/.bashrc
source ~/.bashrc
To start a fresh source tree:
cd \$MY_REPO_ROOT_DIR
repo init -u https://opendev.org/starlingx/manifest.git -m default.xml
repo sync
To download the sources & 3rd-party to local mirror:
downloader -b -s
To build all packages:
build-pkgs -a | build-pkgs -p <packageA,packageB...>
To make image:
build-image [ --std|--rt ]
EOF
fi
cd ${MY_WORKSPACE}