diff --git a/debian/.gitignore b/debian/.gitignore new file mode 100644 index 000000000..7624d1c9b --- /dev/null +++ b/debian/.gitignore @@ -0,0 +1,10 @@ +.debhelper +files +debhelper-build-stamp +*.log +*.substvars +libstlink-dev +libstlink +stlink-gui +stlink-tools +tmp diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 000000000..26f17b1fb --- /dev/null +++ b/debian/changelog @@ -0,0 +1,177 @@ +stlink (1.6.1+ds-1) unstable; urgency=medium + + * Merge tag 'v1.6.1' into debian + * Update Files-Excluded in d/copyright for new layout + * Fix d/watch intermediary file name + * Drop cross.patch, merged upstream in v1.6.1 + * Bump Build-Depends to cmake >= 3.4.2 + * Add new symbols from upstream version 1.6.1 + * Adjust install files, some files moved + * Remove unused variable from d/rules + * Generate pkgconfig file from d/rules, upstream doesn't do it + * Switch to debhelper-compat 12 + + -- Luca Boccassi Sat, 06 Jun 2020 14:44:54 +0100 + +stlink (1.6.0+ds-1) unstable; urgency=medium + + * Merge tag 'v1.6.0' into debian + * Bump Standards-Version to 4.5.0, no changes. + * Update libstlink1 symbols file for 1.6.0. + + -- Luca Boccassi Tue, 25 Feb 2020 22:08:33 +0000 + +stlink (1.5.1+ds-2) unstable; urgency=medium + + * Mark library packages as Multi-Arch: same. + * Apply cross.patch to fix cross-compiling the GUI. Thanks Helmut for + the patch! (Closes: #941320) + * Vcs-Git: add -b debian + * Set Rules-Requires-Root: no + * Bump Standards-Version to 4.4.0 + + -- Luca Boccassi Sun, 29 Sep 2019 12:50:58 +0100 + +stlink (1.5.1+ds-1) unstable; urgency=medium + + * Merge tag 'v1.5.1' into debian. See upstream changelog for info: + https://github.com/texane/stlink/releases/tag/v1.5.1 + * Mark packages as linux-any, other systems not supported. + + -- Luca Boccassi Fri, 28 Sep 2018 10:26:39 +0100 + +stlink (1.5.0+ds-1) unstable; urgency=medium + + * Upload to unstable. (Closes: #869421) + + -- Luca Boccassi Fri, 16 Mar 2018 16:56:17 +0000 + +stlink (1.5.0) unstable; urgency=medium + + [ Jerry Jacobs ] + * README.md: Update version badge to v1.4.0 + + [ Viallard Anthony ] + * Add support of STM32L496xx/4A6xx devices (#615) + + [ rdlim ] + * Fix verification of flash error for STM32L496x device (#617) (#618) + + [ dflogeras ] + * Add note about availability in Gentoo package manager (#622) + + [ yaofei zheng ] + * update debian package version (#630) + + [ Lyle Cheatham ] + * Minor formatting fix in FAQ section of README.md (#631) + + [ Vasiliy Glazov ] + * README.md: Added information about Fedora and RedHat/CentOS packages. + (#635) + * Added LIB_INSTALL_DIR to correct libs install on 64-bit systems (#636) + + [ Gwenhael Goavec-Merou ] + * fix write for microcontroler with RAM size less or equal to 32K (#637) + + [ Mateusz Krawiec ] + * Fix memory map for stm32l496xx boards. (#639) + + [ Rüdiger Fortanier ] + * Add unknown chip output (#641) + + [ Slyshyk Oleksiy ] + * fix __FILE__ base name extraction, #628 (#648) + + [ texane ] + * STM32F72xx73xx support, from bob.feretich@rafresearch.com + + [ Kirill Kolyshkin ] + * debian/triggers: add (to run ldconfig) (#664) + + [ Slyshyk Oleksiy ] + * Try to fix #666 issue (#667) + * Try to fix 666 issue (#668) + + [ Jerry Jacobs ] + * Update ChangeLog.md + * Update README.md + + [ texane ] + * STM32F042K6 Nucleo-32 Board reported to work, by frank@bauernoeppel.de + + [ Anatol Pomozov ] + * Update .version file to match release number (#670) + + -- Anatol Pomozov Mon, 19 Feb 2018 11:00:29 -0800 + +libstlink (1.4.0) unstable; urgency=low + + * Major changes and added features + - Add support for STM32L452 target (#608) + - Initial support to compile with Microsoft Visual Studio 2017 (#602) + - Added support for flashing second bank on STM32F10x_XL (#592) + - Add support for STM32L011 target (#572) + - Allow building of debian package with CPack (@xor-gate) + * Updates and fixes + - Fix compilation with GCC 7 (#590) + - Skip GTK detection if we're cross-compiling (#588) + - Fix possible memory leak (#570) + - Fix building with mingw64 (#569, #610) + - Update libusb to 1.0.21 for Windows (#562) + - Fixing low-voltage flashing on STM32F7 parts. (#567) + - Update libusb to 1.0.21 for Windows (#562) + + -- Andrew 'Necromant' Andrianov Sat, 01 Jul 2017 00:00:00 +0000 + +libstlink (1.3.1) unstable; urgency=low + + * Major changes and added features: + - Add preliminary support for STM32L011 to see it after probe (chipid 0x457) (@xor-gate) + - Strip full paths to source files in log (commit #2c0ab7f) + - Add support for STM32F413 target (#549) + - Add support for Semihosting SYS_READC (#546) + * Updates and fixes: + - Update documentation markdown files + - Compilation fixes (#552) + - Fix compilation when path includes spaces (#561) + + -- Andrew 'Necromant' Andrianov Sat, 25 Feb 2017 00:00:00 +0000 + +libstlink (1.3.0) unstable; urgency=low + + * Major changes and added features: + - Deprecation of autotools (autoconf, automake) (@xor-gate) + - Removal of undocumented st-term utility, which is now replaced by st-util ARM semihosting feature (#3fd0f09) + - Add support for native debian packaging (#444, #485) + - Add intel hex file reading for st-flash (#459) + - Add --reset command to st-flash (#505) + - Support serial numbers argument for st-util and st-flash for multi-programmer setups (#541) + - Add kill ('k') command to gdb-server for st-util (#9804416) + - Add manpages (generated with pandoc from Markdown) (#464) + - Rewrite commandline parsing for st-flash (#459) + - Add support for ARM semihosting to st-util (#454, #455) + * Chip support added for: + - STM32L432 (#501) + - STM32F412 (#538) + - STM32F410 (#9c635e4) + - Add memory map for STM32F401XE (#460) + - L0x Category 5 devices (#406) + - Add L0 Category 2 device (chip id: 0x425) (#72b8e5e) + * Updates and fixes: + - Fixed STM32F030 erase error (#442) + - Fixed Cygwin build (#68b0f3b) + - Reset flash mass erase (MER) bit after mass erase for safety (#489) + - Fix memory map for STM32F4 (@zulusw) + - Fix STM32L-problem with flash loader (issue #390) (Tom de Boer) + - st-util don't read target voltage on startup as it crashes STM32F100 (probably stlink/v1) (Greg Alexander) + - Do a JTAG reset prior to reading CPU information when processor is in deep sleep (@andyg24) + - Redesign of st-flash commandline options parsing (pull-request #459) (@dev26th) + + -- Andrew 'Necromant' Andrianov Sat, 28 Jan 2017 00:00:00 +0000 + +libstlink (1.2.1) unstable; urgency=low + + * Initial Debian-Packaged Release. + + -- Andrew 'Necromant' Andrianov Sat, 09 Jul 2016 23:16:07 +0300 diff --git a/debian/control b/debian/control new file mode 100644 index 000000000..7172583e9 --- /dev/null +++ b/debian/control @@ -0,0 +1,52 @@ +Source: stlink +Priority: optional +Maintainer: Luca Boccassi +Build-Depends: debhelper-compat (= 12), cmake (>= 3.4.2), libusb-1.0-0-dev, libgtk-3-dev +Standards-Version: 4.5.0 +Rules-Requires-Root: no +Section: electronics +Homepage: https://github.com/texane/stlink +Vcs-Git: https://github.com/bluca/stlink.git -b debian +Vcs-Browser: https://github.com/bluca/stlink + +Package: libstlink-dev +Section: libdevel +Architecture: linux-any +Multi-Arch: same +Depends: libstlink1 (= ${binary:Version}), ${misc:Depends} +Description: OpenSource ST-Link tools replacement. + Flashing tools for STMicroelectronics STM32VL and STM32L. The transport layers + STLINKv1 and STLINKv2 are supported. + . + This package contains the development files for stlink. + +Package: libstlink1 +Section: libs +Architecture: linux-any +Multi-Arch: same +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: OpenSource ST-Link tools replacement. + Flashing tools for STMicroelectronics STM32VL and STM32L. The transport layers + STLINKv1 and STLINKv2 are supported. + . + This package contains the shared library for stlink. + +Package: stlink-tools +Architecture: linux-any +Depends: libstlink1 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} +Description: OpenSource ST-Link tools replacement. + Flashing tools for STMicroelectronics STM32VL and STM32L. The transport layers + STLINKv1 and STLINKv2 are supported. + . + This package contains commandline utilities for stlink, and modprobe and + udev rules. + +Package: stlink-gui +Architecture: linux-any +Depends: libstlink1 (= ${binary:Version}), stlink-tools (= ${binary:Version}), + ${shlibs:Depends}, ${misc:Depends} +Description: OpenSource ST-Link tools replacement. + Flashing tools for STMicroelectronics STM32VL and STM32L. The transport layers + STLINKv1 and STLINKv2 are supported. + . + This package contains a GUI tool for stlink. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 000000000..cf13a5b4f --- /dev/null +++ b/debian/copyright @@ -0,0 +1,177 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: stlink +Upstream-Contact: Andrew 'Necromant' Andrianov +Source: https://github.com/texane/stlink +Comment: Upstream tarball has been repackaged to remove binary OSX kernel + drivers that are of unknown license and of no use to Debian. +Files-Excluded: stlinkv1_macos_driver + +Files: * +Copyright: 2011-2018 agpanarin + 2011-2018 Alexey Cherevatenko + 2011-2018 Anatoli + 2011-2018 Andrea Mucignat + 2011-2018 Andrew 'Necromant' Andrianov + 2011-2018 Andrey Yurovsky + 2011-2018 Andy Isaacson + 2011-2018 Áron RADICS + 2011-2018 A Sheaff + 2011-2018 Björn Hauffe + 2011-2018 bob + 2011-2018 Breton M. Saunders + 2011-2018 Bruno Dal Bo + 2011-2018 Burns + 2011-2018 Chris Dew + 2011-2018 Chris Hiszpanski + 2011-2018 Chris Li + 2011-2018 Chris Samuelson + 2011-2018 Christophe Levantis + 2011-2018 Craig Lilley + 2011-2018 dandev37 + 2011-2018 Dan Hepler + 2011-2018 Daniel Campoverde [alx741] + 2011-2018 Daniel O'Connor + 2011-2018 Dave Flogeras + 2011-2018 Dave Murphy + 2011-2018 Dave Vandervies + 2011-2018 Denis Fokin + 2011-2018 Denis Osterland + 2011-2018 Dmitry Bravikov + 2011-2018 Efe Can İçöz + 2011-2018 Ethan Zonca + 2011-2018 Fabien Chouteau + 2011-2018 Fabien Le Mentec + 2011-2018 fhars + 2011-2018 Friedrich Beckmann + 2011-2018 Geoffrey Brown + 2011-2018 George Talusan + 2011-2018 Georg von Zengen + 2011-2018 giuseppe barba + 2011-2018 Greg Alexander + 2011-2018 Greg Meiste + 2011-2018 Hakkavélin + 2011-2018 htk + 2011-2018 Ian Griffiths <6thimage@gmail.com> + 2011-2018 Jack Peel + 2011-2018 Jakub Tyszkowski + 2011-2018 Jan Sarenik + 2011-2018 Jean-Luc Béchennec + 2011-2018 Jean-Marie Lemetayer + 2011-2018 Jeff Kent + 2011-2018 Jeffrey Nelson + 2011-2018 Jens Hoffmann + 2011-2018 Jerome Lambourg + 2011-2018 Jerry Jacobs + 2011-2018 Jim Paris + 2011-2018 Jiří Netolický + 2011-2018 jnosky + 2011-2018 jnosky + 2011-2018 JohannesTaelman + 2011-2018 Jonas Danielsson + 2011-2018 Jonas Norling + 2011-2018 Josh Bialkowski + 2011-2018 Karl Palsson + 2011-2018 kevin + 2011-2018 Kyle Manna + 2011-2018 Lari Lehtomäki + 2011-2018 le mentec fabien + 2011-2018 Martin Nowak + 2011-2018 Matteo Collina + 2011-2018 Max Chen + 2011-2018 Maxime Coquelin + 2011-2018 Maxime Vincent + 2011-2018 Michael Pratt + 2011-2018 Michael Sparmann + 2011-2018 Mike Szczys + 2011-2018 mlundinse + 2011-2018 mux + 2011-2018 Ned Konz + 2011-2018 Nic McDonald + 2011-2018 Nicolas Schodet + 2011-2018 Nikolay + 2011-2018 nullsub + 2011-2018 Olivier Croquette + 2011-2018 Olivier Gay + 2011-2018 Onno Kortmann + 2011-2018 orangeudav + 2011-2018 Pavel Kirienko + 2011-2018 Pekka Nikander + 2011-2018 Pete + 2011-2018 Peter Zotov + 2011-2018 Petteri Aimonen + 2011-2018 Piotr Haber + 2011-2018 Rene Hopf + 2011-2018 Robin Kreis + 2011-2018 Rob Spanton + 2011-2018 Rytis Karpuska + 2011-2018 Sean Simmons + 2011-2018 Sergey Alirzaev + 2011-2018 Simon Wright + 2011-2018 Stany MARCEL + 2011-2018 Stefan Misik + 2011-2018 Sven Wegener + 2011-2018 Tectu + 2011-2018 tekaikko + 2011-2018 texane + 2011-2018 Theodore A. Roth + 2011-2018 Thomas Gärtner + 2011-2018 Tobias Badertscher + 2011-2018 Tom de Boer + 2011-2018 Tristan Gingold + 2011-2018 Uli Köhler + 2011-2018 Uwe Bonnes + 2011-2018 Vadim Kaushan + 2011-2018 Vegard Storheil Eriksen + 2011-2018 Viacheslav Dobromyslov + 2011-2018 Victor Mayoral Vilches + 2011-2018 Wojciech A. Koszek + 2011-2018 Woodrow Douglass + 2011-2018 The "Capt'ns Missing Link" Authors. +License: BSD-3-clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + . + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + * Neither the name of Intel Corporation nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "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 COPYRIGHT + OWNER OR CONTRIBUTORS 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. + +Files: flashloaders/stm32l0x.s + flashloaders/stm32lx.s +Copyright: 2010 Spencer Oliver + 2011 Øyvind Harboe + 2011 Clement Burin des Roziers +License: GPL-2+ + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 000000000..418e536e9 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,7 @@ +[buildpackage] +upstream-tag = %(version)s +debian-branch = debian + +[dch] +git-log = --first-parent +customizations = /usr/share/doc/git-buildpackage/examples/wrap_cl.py diff --git a/debian/libstlink-dev.install b/debian/libstlink-dev.install new file mode 100644 index 000000000..0c3543cd9 --- /dev/null +++ b/debian/libstlink-dev.install @@ -0,0 +1,5 @@ +usr/include/* +usr/lib/*/lib*.a +usr/lib/*/pkgconfig/* +usr/lib/*/lib*.so + diff --git a/debian/libstlink1.install b/debian/libstlink1.install new file mode 100644 index 000000000..3ddde5841 --- /dev/null +++ b/debian/libstlink1.install @@ -0,0 +1 @@ +usr/lib/*/lib*.so.* diff --git a/debian/libstlink1.symbols b/debian/libstlink1.symbols new file mode 100644 index 000000000..159f27d0f --- /dev/null +++ b/debian/libstlink1.symbols @@ -0,0 +1,141 @@ +libstlink.so.1 libstlink1 #MINVER# + Md5Calculate@Base 1.6.1 + Md5Finalise@Base 1.6.1 + Md5Initialise@Base 1.6.1 + Md5Update@Base 1.6.1 + _parse_version@Base 1.5.0 + _stlink_sg_close@Base 1.5.0 + _stlink_sg_core_id@Base 1.5.0 + _stlink_sg_current_mode@Base 1.5.0 + _stlink_sg_enter_jtag_mode@Base 1.5.0 + _stlink_sg_enter_swd_mode@Base 1.5.0 + _stlink_sg_exit_debug_mode@Base 1.5.0 + _stlink_sg_exit_dfu_mode@Base 1.5.0 + _stlink_sg_force_debug@Base 1.5.0 + _stlink_sg_jtag_reset@Base 1.5.0 + _stlink_sg_read_all_regs@Base 1.5.0 + _stlink_sg_read_debug32@Base 1.5.0 + _stlink_sg_read_mem32@Base 1.5.0 + _stlink_sg_read_reg@Base 1.5.0 + _stlink_sg_reset@Base 1.5.0 + _stlink_sg_run@Base 1.5.0 + _stlink_sg_status@Base 1.5.0 + _stlink_sg_step@Base 1.5.0 + _stlink_sg_version@Base 1.5.0 + _stlink_sg_write_debug32@Base 1.5.0 + _stlink_sg_write_mem32@Base 1.5.0 + _stlink_sg_write_mem8@Base 1.5.0 + _stlink_sg_write_reg@Base 1.5.0 + _stlink_usb_close@Base 1.5.0 + _stlink_usb_core_id@Base 1.5.0 + _stlink_usb_current_mode@Base 1.5.0 + _stlink_usb_enter_swd_mode@Base 1.5.0 + _stlink_usb_exit_debug_mode@Base 1.5.0 + _stlink_usb_exit_dfu_mode@Base 1.5.0 + _stlink_usb_force_debug@Base 1.5.0 + _stlink_usb_get_rw_status@Base 1.6.1 + _stlink_usb_jtag_reset@Base 1.5.0 + _stlink_usb_read_all_regs@Base 1.5.0 + _stlink_usb_read_all_unsupported_regs@Base 1.5.0 + _stlink_usb_read_debug32@Base 1.5.0 + _stlink_usb_read_mem32@Base 1.5.0 + _stlink_usb_read_reg@Base 1.5.0 + _stlink_usb_read_unsupported_reg@Base 1.5.0 + _stlink_usb_reset@Base 1.5.0 + _stlink_usb_run@Base 1.5.0 + _stlink_usb_set_swdclk@Base 1.5.0 + _stlink_usb_status@Base 1.5.0 + _stlink_usb_status_v2@Base 1.6.1 + _stlink_usb_step@Base 1.5.0 + _stlink_usb_target_voltage@Base 1.5.0 + _stlink_usb_version@Base 1.5.0 + _stlink_usb_write_debug32@Base 1.5.0 + _stlink_usb_write_mem32@Base 1.5.0 + _stlink_usb_write_mem8@Base 1.5.0 + _stlink_usb_write_reg@Base 1.5.0 + _stlink_usb_write_unsupported_reg@Base 1.5.0 + calculate_F4_sectornum@Base 1.5.0 + calculate_F7_sectornum@Base 1.5.0 + calculate_L4_page@Base 1.5.0 + is_bigendian@Base 1.5.0 + read_uint16@Base 1.5.0 + read_uint32@Base 1.5.0 + send_recv@Base 1.5.0 + send_usb_data_only@Base 1.5.0 + send_usb_mass_storage_command@Base 1.5.0 + stlink_calculate_pagesize@Base 1.5.0 + stlink_chip_id@Base 1.5.0 + stlink_chipid_get_params@Base 1.5.0 + stlink_close@Base 1.5.0 + stlink_clr_hw_bp@Base 1.5.0 + stlink_core_id@Base 1.5.0 + stlink_core_stat@Base 1.5.0 + stlink_cpu_id@Base 1.5.0 + stlink_current_mode@Base 1.5.0 + stlink_enter_swd_mode@Base 1.5.0 + stlink_erase_flash_mass@Base 1.5.0 + stlink_erase_flash_page@Base 1.5.0 + stlink_exit_debug_mode@Base 1.5.0 + stlink_exit_dfu_mode@Base 1.5.0 + stlink_fcheck_flash@Base 1.5.0 + stlink_flash_loader_init@Base 1.5.0 + stlink_flash_loader_run@Base 1.5.0 + stlink_flash_loader_write_to_sram@Base 1.5.0 + stlink_force_debug@Base 1.5.0 + stlink_fread@Base 1.5.0 + stlink_fwrite_flash@Base 1.5.0 + stlink_fwrite_option_bytes@Base 1.6.0 +#MISSING: 1.6.1# stlink_fwrite_option_bytes_32bit@Base 1.6.0 + stlink_fwrite_sram@Base 1.5.0 + stlink_get_erased_pattern@Base 1.5.0 + stlink_is_core_halted@Base 1.5.0 + stlink_jtag_reset@Base 1.5.0 + stlink_load_device_params@Base 1.5.0 + stlink_mwrite_flash@Base 1.5.0 + stlink_mwrite_sram@Base 1.5.0 + stlink_open_usb@Base 1.5.0 + stlink_parse_ihex@Base 1.5.0 + stlink_print_data@Base 1.5.0 + stlink_probe_usb@Base 1.5.0 + stlink_probe_usb_free@Base 1.5.0 + stlink_q@Base 1.5.0 + stlink_read_all_regs@Base 1.5.0 + stlink_read_all_unsupported_regs@Base 1.5.0 + stlink_read_debug32@Base 1.5.0 + stlink_read_mem32@Base 1.5.0 + stlink_read_option_bytes32@Base 1.6.1 + stlink_read_option_bytes_Gx@Base 1.6.1 + stlink_read_option_bytes_f2@Base 1.6.0 + stlink_read_option_bytes_f4@Base 1.6.0 + stlink_read_option_bytes_generic@Base 1.6.1 + stlink_read_reg@Base 1.5.0 + stlink_read_unsupported_reg@Base 1.5.0 + stlink_reset@Base 1.5.0 + stlink_run@Base 1.5.0 + stlink_run_at@Base 1.5.0 + stlink_set_hw_bp@Base 1.5.0 + stlink_set_swdclk@Base 1.5.0 + stlink_stat@Base 1.5.0 + stlink_status@Base 1.5.0 + stlink_step@Base 1.5.0 + stlink_target_voltage@Base 1.5.0 + stlink_v1_open@Base 1.5.0 + stlink_v1_open_inner@Base 1.5.0 + stlink_verify_write_flash@Base 1.5.0 + stlink_version@Base 1.5.0 + stlink_write_debug32@Base 1.5.0 + stlink_write_dreg@Base 1.5.0 + stlink_write_flash@Base 1.5.0 + stlink_write_mem32@Base 1.5.0 + stlink_write_mem8@Base 1.5.0 + stlink_write_option_bytes32@Base 1.6.1 + stlink_write_option_bytes@Base 1.6.0 + stlink_write_reg@Base 1.5.0 + stlink_write_unsupported_reg@Base 1.5.0 + stm32l1_write_half_pages@Base 1.5.0 + ugly_init@Base 1.5.0 + ugly_libusb_log_level@Base 1.6.1 + ugly_log@Base 1.5.0 + write_buffer_to_sram@Base 1.5.0 + write_uint16@Base 1.5.0 + write_uint32@Base 1.5.0 diff --git a/debian/rules b/debian/rules new file mode 100755 index 000000000..512bd533f --- /dev/null +++ b/debian/rules @@ -0,0 +1,23 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +#DH_VERBOSE = 1 + +# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/* +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/default.mk + +# see FEATURE AREAS in dpkg-buildflags(1) +export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +%: + dh $@ --buildsystem cmake + +override_dh_auto_configure: + dh_auto_configure -- \ + -DSTLINK_UDEV_RULES_DIR='/lib/udev/rules.d' + +override_dh_auto_install: + dh_auto_install + mkdir -p $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig + sed -e "s/@VERSION@/$(DEB_VERSION_UPSTREAM)/" -e "s/@DEB_HOST_MULTIARCH@/$(DEB_HOST_MULTIARCH)/" $(CURDIR)/debian/stlink.pc.in > $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/stlink.pc diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 000000000..163aaf8d8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/source/options b/debian/source/options new file mode 100644 index 000000000..506210d2c --- /dev/null +++ b/debian/source/options @@ -0,0 +1 @@ +extend-diff-ignore=stlinkv1_macos_driver diff --git a/debian/stlink-gui.install b/debian/stlink-gui.install new file mode 100644 index 000000000..5620a25e5 --- /dev/null +++ b/debian/stlink-gui.install @@ -0,0 +1,4 @@ +/usr/bin/stlink-gui +/usr/bin/stlink-gui.ui /usr/share/stlink/ +/usr/share/stlink/applications/stlink-gui.desktop /usr/share/applications/ +/usr/share/stlink/icons/hicolor/scalable/apps/stlink-gui.svg /usr/share/icons/hicolor/scalable/apps/stlink-gui.svg diff --git a/debian/stlink-tools.install b/debian/stlink-tools.install new file mode 100644 index 000000000..ca875a0e6 --- /dev/null +++ b/debian/stlink-tools.install @@ -0,0 +1,3 @@ +/usr/bin/st-* +lib/udev/rules.d/*.rules +etc/modprobe.d/*.conf diff --git a/debian/stlink-tools.manpages b/debian/stlink-tools.manpages new file mode 100644 index 000000000..049509abe --- /dev/null +++ b/debian/stlink-tools.manpages @@ -0,0 +1,3 @@ +usr/share/stlink/man/man1/st-flash.1 +usr/share/stlink/man/man1/st-info.1 +usr/share/stlink/man/man1/st-util.1 diff --git a/debian/stlink.pc.in b/debian/stlink.pc.in new file mode 100644 index 000000000..7fde2d968 --- /dev/null +++ b/debian/stlink.pc.in @@ -0,0 +1,10 @@ +prefix=/usr +includedir=${prefix}/include/stlink +libdir=${prefix}/lib/@DEB_HOST_MULTIARCH@ + +Name: stlink +Description: Open source version of the STMicroelectronics Stlink Tools +Version: @VERSION@ +Requires: libusb-1.0 +Libs: -L${libdir} -lstlink +Cflags: -I${includedir} diff --git a/debian/watch b/debian/watch new file mode 100644 index 000000000..45fece19b --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts=dversionmangle=s/\+ds$//,repacksuffix=+ds,filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/stlink-$1\.tar\.gz/ \ + https://github.com/texane/stlink/tags .*/v?(\d\S+)\.tar\.gz