aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2021-09-15 08:03:11 +0300
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-09-15 09:42:37 +0000
commite215eee231de47a63a97c2c35e5c49ea829bf73f (patch)
treed573941a06c5deb2802c10a9522345ddcdb44859
parenta8f85381970d7e50e847cc311e276c550be0ca8c (diff)
Remove obsolete functionality from b2qt-init-build-env script
Recommended way to initialize Boot2Qt env is now to use the repo tool with the boot2qt-manifests. Remove old commands from the script that no longer work: device include files where updated making list-device unfunctional and bsp layer initialization can only be done using repo tool. Fixes: QTBUG-96122 Change-Id: I2aeb641d1352a076f0edb211b3e34990c6957915 Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io> (cherry picked from commit fd6756f71548104713f7bceed8d78b338b124175) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rwxr-xr-xb2qt-init-build-env39
1 files changed, 5 insertions, 34 deletions
diff --git a/b2qt-init-build-env b/b2qt-init-build-env
index 27683cd9..0a2d1a43 100755
--- a/b2qt-init-build-env
+++ b/b2qt-init-build-env
@@ -34,16 +34,12 @@ usage() {
echo "Usage: $(basename $0) COMMAND [ARGS]"
echo
echo "Initialize build environment:"
- echo " $(basename $0) init [--bsp <layer name>]"
- echo " [--manifest <manifest xml>] [--manifest-dir <dir path>]"
+ echo " $(basename $0) init [--manifest <manifest xml>] [--manifest-dir <dir path>]"
echo " [--reference <mirror path>] [--internal]"
- echo " --bsp <layer name>: name of the boot2qt bsp layer which was used for the repo init"
echo " --manifest <manifest xml>: name of the manifest to be used for initialization"
echo " --manifest-dir <dir path>: path to a directory containing repo manifest file(s)"
echo " --reference <mirror path>: path to local mirror, initialized previously with 'repo init --mirror'"
echo " --internal: fetch internal repositories, available only inside The Qt Company network."
- echo "List available devices:"
- echo " $(basename $0) list-devices"
}
while test -n "$1"; do
@@ -72,10 +68,6 @@ while test -n "$1"; do
shift
MANIFEST_DIR="$(readlink -f $1)"
;;
- "--bsp")
- shift
- BSPLAYER=$1
- ;;
"--internal")
PROJECT_GROUPS="all"
;;
@@ -119,20 +111,10 @@ get_repo() {
fi
}
-list_devices() {
- echo "Available device configurations:"
- for device in $(ls ${DIR}/meta-boot2qt-distro/conf/distro/include/*.conf); do
- echo " $(basename ${device%%.conf})"
- done
-}
-
init() {
- # local manifests are used with boot2qt bsp layers that don't need init
- if [ ! -d ".repo/local_manifests" ]; then
- mkdir -p .repo/manifests
- cp ${MANIFEST_DIR}/${MANIFEST} .repo/manifests/default.xml
- ${REPO} init ${REPO_URL} -u ${PWD}/.repo/repo -b default -g "${PROJECT_GROUPS}" ${REFERENCE}
- fi
+ mkdir -p .repo/manifests
+ cp ${MANIFEST_DIR}/${MANIFEST} .repo/manifests/default.xml
+ ${REPO} init ${REPO_URL} -u ${PWD}/.repo/repo -b default -g "${PROJECT_GROUPS}" ${REFERENCE}
${REPO} sync --optimized-fetch
if [ ! -e "sources/meta-boot2qt" ]; then
@@ -143,15 +125,7 @@ init() {
ln -s ${DIR}/scripts/setup-environment.sh setup-environment.sh
fi
- if [ -n "${BSPLAYER}" ] && [ ! -e "sources/${BSPLAYER}" ]; then
- ln -s ../.repo/manifests sources/${BSPLAYER}
- fi
-
- if [ -n "${BSPLAYER}" ]; then
- ln -sfn ${BSPLAYER}/conf sources/templates
- else
- ln -sfn meta-boot2qt/meta-boot2qt-distro/conf sources/templates
- fi
+ ln -sfn meta-boot2qt/meta-boot2qt-distro/conf sources/templates
# handle lfs repos which need manual lfs pull
LFS_REPOS=$(grep filter=lfs -l sources/*/.gitattributes 2>/dev/null || true)
@@ -169,9 +143,6 @@ case "$COMMAND" in
"mirror")
mirror
;;
- "list-devices")
- list_devices
- ;;
*)
echo "Unknown command"
usage