summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/configure-qtcreator.sh31
1 files changed, 24 insertions, 7 deletions
diff --git a/scripts/configure-qtcreator.sh b/scripts/configure-qtcreator.sh
index 22fd7ce..0ebbe55 100755
--- a/scripts/configure-qtcreator.sh
+++ b/scripts/configure-qtcreator.sh
@@ -97,7 +97,9 @@ BASEID="byos.${RELEASE}.${MACHINE}"
97 97
98${SDKTOOL} rmKit --id ${BASEID}.kit 2>/dev/null || true 98${SDKTOOL} rmKit --id ${BASEID}.kit 2>/dev/null || true
99${SDKTOOL} rmQt --id ${BASEID}.qt || true 99${SDKTOOL} rmQt --id ${BASEID}.qt || true
100${SDKTOOL} rmTC --id ProjectExplorer.ToolChain.Gcc:${BASEID}.tc || true 100${SDKTOOL} rmTC --id ProjectExplorer.ToolChain.Gcc:${BASEID}.gcc || true
101${SDKTOOL} rmTC --id ProjectExplorer.ToolChain.Gcc:${BASEID}.g++ || true
102${SDKTOOL} rmDebugger --id ${BASEID}.gdb || true
101 103
102if [ -n "${REMOVEONLY}" ]; then 104if [ -n "${REMOVEONLY}" ]; then
103 echo "Kit removed: ${NAME}" 105 echo "Kit removed: ${NAME}"
@@ -105,10 +107,25 @@ if [ -n "${REMOVEONLY}" ]; then
105fi 107fi
106 108
107${SDKTOOL} addTC \ 109${SDKTOOL} addTC \
108 --id "ProjectExplorer.ToolChain.Gcc:${BASEID}.tc" \ 110 --id "ProjectExplorer.ToolChain.Gcc:${BASEID}.gcc" \
109 --name "GCC (${NAME})" \ 111 --name "GCC (${NAME})" \
110 --path "$(type -p ${OE_QMAKE_CXX})" \ 112 --path "$(type -p ${CC})" \
111 --abi "${ABI}" 113 --abi "${ABI}" \
114 --language 1
115
116${SDKTOOL} addTC \
117 --id "ProjectExplorer.ToolChain.Gcc:${BASEID}.g++" \
118 --name "G++ (${NAME})" \
119 --path "$(type -p ${CXX})" \
120 --abi "${ABI}" \
121 --language 2
122
123${SDKTOOL} addDebugger \
124 --id "${BASEID}.gdb" \
125 --name "GDB (${NAME})" \
126 --engine 1 \
127 --binary "$(type -p ${GDB})" \
128 --abis "${ABI}"
112 129
113${SDKTOOL} addQt \ 130${SDKTOOL} addQt \
114 --id "${BASEID}.qt" \ 131 --id "${BASEID}.qt" \
@@ -120,11 +137,11 @@ ${SDKTOOL} addKit \
120 --id "${BASEID}.kit" \ 137 --id "${BASEID}.kit" \
121 --name "${NAME}" \ 138 --name "${NAME}" \
122 --qt "${BASEID}.qt" \ 139 --qt "${BASEID}.qt" \
123 --debuggerengine "1" \ 140 --debuggerid "${BASEID}.gdb" \
124 --debugger "$(type -p ${GDB})" \
125 --sysroot "${SDKTARGETSYSROOT}" \ 141 --sysroot "${SDKTARGETSYSROOT}" \
126 --devicetype "Boot2Qt.HwDevice" \ 142 --devicetype "Boot2Qt.HwDevice" \
127 --toolchain "ProjectExplorer.ToolChain.Gcc:${BASEID}.tc" \ 143 --Ctoolchain "ProjectExplorer.ToolChain.Gcc:${BASEID}.gcc" \
144 --Cxxtoolchain "ProjectExplorer.ToolChain.Gcc:${BASEID}.g++" \
128 --icon ":/boot2qt/images/B2Qt_QtC_icon.png" \ 145 --icon ":/boot2qt/images/B2Qt_QtC_icon.png" \
129 --mkspec "${MKSPEC}" 146 --mkspec "${MKSPEC}"
130 147