summaryrefslogtreecommitdiff
path: root/package/stlink
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-10-05 20:09:44 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2017-10-05 20:09:48 +0200
commitd80594100af21feb7ff66d60f308c02a4e609810 (patch)
tree033b971a8298b5f87d096912fb3fb985c5a451c5 /package/stlink
parent6473d101da4e151ef09d27fb86c086dc8482736f (diff)
stlink: add hosttool for stm32 flashing
Diffstat (limited to 'package/stlink')
-rw-r--r--package/stlink/Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/package/stlink/Makefile b/package/stlink/Makefile
new file mode 100644
index 000000000..a5c51d7f3
--- /dev/null
+++ b/package/stlink/Makefile
@@ -0,0 +1,32 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(ADK_TOPDIR)/rules.mk
+
+PKG_NAME:= stlink
+PKG_VERSION:= 04dc7ead42f99d80696cd12496ee2299428675e7
+PKG_RELEASE:= 1
+PKG_DESCR:= st flash utility
+PKG_SECTION:= dev/tools
+HOST_BUILDDEP:= cmake-host
+PKG_SITES:= https://github.com/texane/stlink.git
+
+PKG_CFLINE_STLINK:= depends on ADK_HOST_ONLY
+
+include $(ADK_TOPDIR)/mk/host.mk
+include $(ADK_TOPDIR)/mk/package.mk
+
+$(eval $(call HOST_template,STLINK,stlink,$(PKG_VERSION)-${PKG_RELEASE}))
+
+HOST_STYLE:= cmake
+
+host-build:
+ (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
+ ${HOST_MAKE_FLAGS} ${HOST_ALL_TARGET})
+
+hostpost-install:
+ (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
+ DESTDIR=$(STAGING_HOST_DIR) ${HOST_FAKE_FLAGS} ${HOST_INSTALL_TARGET})
+
+include ${ADK_TOPDIR}/mk/host-bottom.mk
+include ${ADK_TOPDIR}/mk/pkg-bottom.mk