From 86c5ee1936307b607c04b42d856c4da1053d5b41 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Mon, 17 Nov 2014 19:45:23 +0100 Subject: [PATCH] Add stlink tools recipe. --- dev-embedded/stlink/stlink-1.0.0.recipe | 57 +++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 dev-embedded/stlink/stlink-1.0.0.recipe diff --git a/dev-embedded/stlink/stlink-1.0.0.recipe b/dev-embedded/stlink/stlink-1.0.0.recipe new file mode 100644 index 000000000..0c833830a --- /dev/null +++ b/dev-embedded/stlink/stlink-1.0.0.recipe @@ -0,0 +1,57 @@ +SUMMARY="stm32 discovery line programmer" +DESCRIPTION="stlink is a cheap adapter used to program and debug STM32 +microcontrollers. This tool allows interfacing the stlink with GDB for easy +programming and debugging of these chips." +HOMEPAGE="https://github.com/texane/stlink" +LICENSE="BSD (3-clause)" +COPYRIGHT="2011 The Capt'ns Missing Link Authors" +REVISION="1" + +ARCHITECTURES="" +if [ $effectiveTargetArchitecture != x86_gcc2 ]; then + # x86_gcc2 is fine as primary target architecture as long as we're building + # for a different secondary architecture. + ARCHITECTURES="$ARCHITECTURES x86_gcc2" +fi +SECONDARY_ARCHITECTURES="x86" + +SRC_URI="https://github.com/texane/stlink/archive/1.0.0.tar.gz" +CHECKSUM_SHA256="d80af441be2c2be8a8e431e4ff6608f7c5ae52017c590d1c04b28bf0af0a3ddb" + +PROVIDES=" + stlink$secondaryArchSuffix = $portVersion + cmd:st_flash$secondaryArchSuffix + cmd:st_info$secondaryArchSuffix + cmd:st_term$secondaryArchSuffix + cmd:st_util$secondaryArchSuffix +" + +REQUIRES=" + haiku$secondaryArchSuffix + lib:libusb_1.0$secondaryArchSuffix +" + +BUILD_REQUIRES=" + devel:libusb_1.0$secondaryArchSuffix +" + +BUILD_PREREQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + cmd:aclocal + cmd:autoreconf + cmd:gcc$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix +" + +BUILD() +{ + ./autogen.sh + runConfigure ./configure + make $jobArgs LDFLAGS=-lnetwork +} + +INSTALL() +{ + make install +}