diff options
-rw-r--r-- | development/stm32cubeide/README | 23 | ||||
-rw-r--r-- | development/stm32cubeide/ST-LINK_gdbserver.in | 5 | ||||
-rw-r--r-- | development/stm32cubeide/doinst.sh | 3 | ||||
-rw-r--r-- | development/stm32cubeide/slack-desc | 19 | ||||
-rw-r--r-- | development/stm32cubeide/stm32cubeide.SlackBuild | 129 | ||||
-rw-r--r-- | development/stm32cubeide/stm32cubeide.desktop | 10 | ||||
-rw-r--r-- | development/stm32cubeide/stm32cubeide.hint | 1 | ||||
-rw-r--r-- | development/stm32cubeide/stm32cubeide.info | 10 |
8 files changed, 200 insertions, 0 deletions
diff --git a/development/stm32cubeide/README b/development/stm32cubeide/README new file mode 100644 index 0000000000..f11c88cf4c --- /dev/null +++ b/development/stm32cubeide/README @@ -0,0 +1,23 @@ +STM32CubeIDE is an advanced C/C++ development platform with peripheral +configuration, code generation, code compilation, and debug features +for STM32 microcontrollers and microprocessors. It is based on +the ECLIPSE/CDT framework and GCC toolchain for the development, +and GDB for the debugging. + +STM32CubeIDE integrates STM32 configuration and project creation +functionalities from STM32CubeMX to offer all-in-one tool experience +and save installation and development time. + +STM32CubeIDE includes build and stack analyzers that provide the user +with useful information about project status and memory requirements. + +STM32CubeIDE also includes standard and advanced debugging features +including views of CPU core registers, memories, and peripheral +registers, as well as live variable watch, Serial Wire Viewer +interface, or fault analyzer. + +NOTE: + +- The source tarball has to be downloaded manually from the website. + Choose STM32CubeIDE-Lnx package. +- udev rules for ST-LINK and J-Link are not installed. diff --git a/development/stm32cubeide/ST-LINK_gdbserver.in b/development/stm32cubeide/ST-LINK_gdbserver.in new file mode 100644 index 0000000000..2c591a74ac --- /dev/null +++ b/development/stm32cubeide/ST-LINK_gdbserver.in @@ -0,0 +1,5 @@ +#!/bin/bash + +exec -- @ST_LINK_GDBSERVER@ \ + --stm32cubeprogrammer-path @STM32_CUBEPROGRAMMER_DIR@ \ + "${@}" diff --git a/development/stm32cubeide/doinst.sh b/development/stm32cubeide/doinst.sh new file mode 100644 index 0000000000..5fb28930db --- /dev/null +++ b/development/stm32cubeide/doinst.sh @@ -0,0 +1,3 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi diff --git a/development/stm32cubeide/slack-desc b/development/stm32cubeide/slack-desc new file mode 100644 index 0000000000..c1f7567f89 --- /dev/null +++ b/development/stm32cubeide/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +stm32cubeide: stm32cubeide (C/C++ development platform for STM32 microcontrollers) +stm32cubeide: +stm32cubeide: STM32CubeIDE is an advanced C/C++ development platform with +stm32cubeide: peripheral configuration, code generation, code compilation, +stm32cubeide: and debug features for STM32 microcontrollers and microprocessors. +stm32cubeide: It is based on the ECLIPSE/CDT framework and GCC toolchain +stm32cubeide: for the development, and GDB for the debugging. +stm32cubeide: +stm32cubeide: Homepage: https://www.st.com/en/development-tools/stm32cubeide.html +stm32cubeide: +stm32cubeide: diff --git a/development/stm32cubeide/stm32cubeide.SlackBuild b/development/stm32cubeide/stm32cubeide.SlackBuild new file mode 100644 index 0000000000..d7d30273a0 --- /dev/null +++ b/development/stm32cubeide/stm32cubeide.SlackBuild @@ -0,0 +1,129 @@ +#!/bin/bash + +# Slackware build script for STM32CubeIDE + +# Copyright 2024 Andrzej Telszewski, Koszalin +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=stm32cubeide +VERSION=${VERSION:-1.17.0_23558_20241125_2245} +SRCNAM=st-stm32cubeide_${VERSION}_amd64 +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -eu + +if [ "${ARCH}" != x86_64 ]; then + echo "error: Only x86_64 is supported, exiting." + exit 1 +fi + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP + +rm -rf $PRGNAM-$VERSION +mkdir -p $PRGNAM-$VERSION +cd $PRGNAM-$VERSION + +unzip $CWD/en.${SRCNAM}.sh.zip + +chmod +x ${SRCNAM}.sh +./${SRCNAM}.sh --noexec --nox11 --nochown --target $(pwd) + +mkdir -p $PKG/opt/stm32cubeide +tar zvxf ${SRCNAM}.tar.gz -C $PKG/opt/stm32cubeide + +chown -R root:root $PKG +chmod -R a-st,u+rwX,go-w+rX $PKG + +# NOTE: +# +# Do _not_ strip binaries/libraries as some of them are for +# STM32 ARM architecture. + +# Expose ST-LINK GDB Server. + +ST_LINK_GDBSERVER=$(cd $PKG; echo opt/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.linux64_*/tools/bin/ST-LINK_gdbserver) +STM32_CUBEPROGRAMMER_DIR=$(cd $PKG; echo opt/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.linux64_*/tools/bin) + +gdb_server_found=1 + +if ! [ -f $PKG/$ST_LINK_GDBSERVER ]; then + echo "error: not a file: ${ST_LINK_GDBSERVER}" + gdb_server_found=0 +fi + +if ! [ -d $PKG/$STM32_CUBEPROGRAMMER_DIR ]; then + echo "error: not a dir: ${STM32_CUBEPROGRAMMER_DIR}" + gdb_server_found=0 +fi + +if [ $gdb_server_found -ne 1 ]; then + exit 1 +fi + +ST_LINK_GDBSERVER="/"${ST_LINK_GDBSERVER} +STM32_CUBEPROGRAMMER_DIR="/"${STM32_CUBEPROGRAMMER_DIR} + +mkdir -p $PKG/usr/bin + +sed -e "s|@ST_LINK_GDBSERVER@|${ST_LINK_GDBSERVER}|g" \ + -e "s|@STM32_CUBEPROGRAMMER_DIR@|${STM32_CUBEPROGRAMMER_DIR}|g" \ + $CWD/ST-LINK_gdbserver.in \ + > $PKG/usr/bin/ST-LINK_gdbserver +chmod +x $PKG/usr/bin/ST-LINK_gdbserver + +chmod 0644 $PKG/opt/stm32cubeide/icon.xpm +mkdir -p $PKG/usr/share/pixmaps +cp -a $PKG/opt/stm32cubeide/icon.xpm $PKG/usr/share/pixmaps/stm32cubeide.xpm + +mkdir -p $PKG/usr/share/applications +cat $CWD/stm32cubeide.desktop > $PKG/usr/share/applications/stm32cubeide.desktop + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/development/stm32cubeide/stm32cubeide.desktop b/development/stm32cubeide/stm32cubeide.desktop new file mode 100644 index 0000000000..dd0ff7f520 --- /dev/null +++ b/development/stm32cubeide/stm32cubeide.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=STM32CubeIDE +GenericName=STM32CubeIDE +Exec=/opt/stm32cubeide/stm32cubeide %F +Icon=stm32cubeide +Path=/opt/stm32cubeide +Terminal=false +StartupNotify=true +Type=Application +Categories=Development;IDE diff --git a/development/stm32cubeide/stm32cubeide.hint b/development/stm32cubeide/stm32cubeide.hint new file mode 100644 index 0000000000..76a97c7243 --- /dev/null +++ b/development/stm32cubeide/stm32cubeide.hint @@ -0,0 +1 @@ +DOWNLOAD="no" diff --git a/development/stm32cubeide/stm32cubeide.info b/development/stm32cubeide/stm32cubeide.info new file mode 100644 index 0000000000..3ad31b3493 --- /dev/null +++ b/development/stm32cubeide/stm32cubeide.info @@ -0,0 +1,10 @@ +PRGNAM="stm32cubeide" +VERSION="1.17.0_23558_20241125_2245" +HOMEPAGE="https://www.st.com/en/development-tools/stm32cubeide.html" +DOWNLOAD="UNSUPPORTED" +MD5SUM="" +DOWNLOAD_x86_64="https://www.st.com/en/development-tools/stm32cubeide.html" +MD5SUM_x86_64="22e0e167c025ff20129b270359ccd284" +REQUIRES="" +MAINTAINER="Andrzej Telszewski" +EMAIL="andrzej@telszewski.com" |