kopia lustrzana https://github.com/stlink-org/stlink
				
				
				
			Reconfigured cmake packaging
- Refactoring for package config & build - deb-pkg: postinst script with depmod -a (Fixes #845)pull/931/head
							rodzic
							
								
									f48914512c
								
							
						
					
					
						commit
						68fdd3927d
					
				| 
						 | 
				
			
			@ -258,7 +258,7 @@ Updates and fixes:
 | 
			
		|||
 | 
			
		||||
* Fixed "unaligned addr or size" when trying to write a program in RAM ([#323](https://github.com/stlink-org/stlink/pull/323))
 | 
			
		||||
* Fixed flashing on STM32_F3_SMALL ([#325](https://github.com/stlink-org/stlink/pull/325))
 | 
			
		||||
* Fixed STM32L-problem with flash loader ([#390](https://github.com/stlink-org/stlink/pull/390), [#407](https://github.com/stlink-org/stlink/pull/407),[#408](https://github.com/stlink-org/stlink/pull/408))
 | 
			
		||||
* Fixed STM32L-problem with flash loader ([#390](https://github.com/stlink-org/stlink/pull/390), [#407](https://github.com/stlink-org/stlink/pull/407), [#408](https://github.com/stlink-org/stlink/pull/408))
 | 
			
		||||
* Don't read the target voltage on startup, because it crashes STM32F100 ([#423](https://github.com/stlink-org/stlink/pull/423), [#424](https://github.com/stlink-org/stlink/pull/424))
 | 
			
		||||
* Added a useful error message instead of "[!] send_recv" ([#425](https://github.com/stlink-org/stlink/pull/425), [#426](https://github.com/stlink-org/stlink/pull/426))
 | 
			
		||||
* Do a JTAG reset prior to reading CPU information when processor is in deep sleep ([#428](https://github.com/stlink-org/stlink/pull/428), [#430](https://github.com/stlink-org/stlink/pull/430), [#451](https://github.com/stlink-org/stlink/pull/451))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,8 +1,21 @@
 | 
			
		|||
###
 | 
			
		||||
# General cmake settings
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
cmake_minimum_required(VERSION 3.4.2)
 | 
			
		||||
cmake_policy(SET CMP0042 NEW)
 | 
			
		||||
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CMAKE_SOURCE_DIR}/cmake/modules")
 | 
			
		||||
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
 | 
			
		||||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
 | 
			
		||||
 | 
			
		||||
# Define GNU standard installation directories
 | 
			
		||||
include(GNUInstallDirs)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
# General project settings
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
project(stlink C)
 | 
			
		||||
set(PROJECT_DESCRIPTION "Open source version of the STMicroelectronics ST-LINK Tools")
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -14,10 +27,23 @@ option(STLINK_INSTALL_UDEV_RULES "Install udev rules files" ON)
 | 
			
		|||
option(STLINK_INSTALL_MODPROBE_CONF "Install modprobe conf files" ON)
 | 
			
		||||
option(STLINK_GENERATE_MANPAGES "Generate manpages with pandoc" OFF)
 | 
			
		||||
 | 
			
		||||
# Determine project version
 | 
			
		||||
include(${CMAKE_MODULE_PATH}/get_version.cmake)
 | 
			
		||||
 | 
			
		||||
# Set C build flags
 | 
			
		||||
if (NOT MSVC)
 | 
			
		||||
    include(${CMAKE_MODULE_PATH}/c_flags.cmake)
 | 
			
		||||
else ()
 | 
			
		||||
    message(STATUS "MSVC C Flags override to /MT")
 | 
			
		||||
    set(CMAKE_C_FLAGS_DEBUG_INIT          "/D_DEBUG /MTd /Zi /Ob0 /Od /RTC1")
 | 
			
		||||
    set(CMAKE_C_FLAGS_MINSIZEREL_INIT     "/MT /O1 /Ob1 /D NDEBUG")
 | 
			
		||||
    set(CMAKE_C_FLAGS_RELEASE_INIT        "/MT /O2 /Ob2 /D NDEBUG")
 | 
			
		||||
    set(CMAKE_C_FLAGS_RELWITHDEBINFO_INIT "/MT /Zi /O2 /Ob1 /D NDEBUG")
 | 
			
		||||
endif ()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# ====
 | 
			
		||||
 | 
			
		||||
#set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
 | 
			
		||||
#set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
 | 
			
		||||
#set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
 | 
			
		||||
 | 
			
		||||
if (IS_DIRECTORY ${LIB_INSTALL_DIR})
 | 
			
		||||
| 
						 | 
				
			
			@ -36,24 +62,12 @@ else ()
 | 
			
		|||
    set(STLINK_INCLUDE_PATH "${CMAKE_INSTALL_PREFIX}/${INCLUDE_INSTALL_DIR}")
 | 
			
		||||
endif ()
 | 
			
		||||
 | 
			
		||||
include(cmake/version.cmake)
 | 
			
		||||
 | 
			
		||||
if (NOT MSVC)
 | 
			
		||||
    include(cmake/c_flags.cmake)
 | 
			
		||||
else ()
 | 
			
		||||
    message(STATUS "MSVC C Flags override to /MT")
 | 
			
		||||
    set(CMAKE_C_FLAGS_DEBUG_INIT          "/D_DEBUG /MTd /Zi /Ob0 /Od /RTC1")
 | 
			
		||||
    set(CMAKE_C_FLAGS_MINSIZEREL_INIT     "/MT /O1 /Ob1 /D NDEBUG")
 | 
			
		||||
    set(CMAKE_C_FLAGS_RELEASE_INIT        "/MT /O2 /Ob2 /D NDEBUG")
 | 
			
		||||
    set(CMAKE_C_FLAGS_RELWITHDEBINFO_INIT "/MT /Zi /O2 /Ob1 /D NDEBUG")
 | 
			
		||||
endif ()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
# Dependencies
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
find_package(libusb REQUIRED)
 | 
			
		||||
find_package(_libusb REQUIRED)
 | 
			
		||||
 | 
			
		||||
if (NOT WIN32 AND NOT CMAKE_CROSSCOMPILING)
 | 
			
		||||
    find_package(PkgConfig)
 | 
			
		||||
| 
						 | 
				
			
			@ -243,17 +257,21 @@ add_subdirectory(src/stlink-gui)
 | 
			
		|||
# Others
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
add_subdirectory(debian/pkg-config)
 | 
			
		||||
add_subdirectory(include)                                                            ### TODO: Check path
 | 
			
		||||
add_subdirectory(doc/man)
 | 
			
		||||
add_subdirectory(tests)
 | 
			
		||||
 | 
			
		||||
include(cmake/cpack_config.cmake)
 | 
			
		||||
include(CPack)
 | 
			
		||||
 | 
			
		||||
# ====
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
# Package build
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
add_subdirectory(cmake/packaging)
 | 
			
		||||
include(cmake/packaging/cpack_config.cmake)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
# Uninstall target
 | 
			
		||||
###
 | 
			
		||||
| 
						 | 
				
			
			@ -261,11 +279,11 @@ include(CPack)
 | 
			
		|||
if (NOT TARGET uninstall)
 | 
			
		||||
    configure_file(
 | 
			
		||||
        "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
 | 
			
		||||
        "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
 | 
			
		||||
        "${CMAKE_CURRENT_BINARY_DIR}/cmake/cmake_uninstall.cmake"
 | 
			
		||||
        IMMEDIATE @ONLY
 | 
			
		||||
        )
 | 
			
		||||
    add_custom_target(
 | 
			
		||||
        uninstall COMMAND ${CMAKE_COMMAND}
 | 
			
		||||
        -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake
 | 
			
		||||
        -P ${CMAKE_CURRENT_BINARY_DIR}/cmake/cmake_uninstall.cmake
 | 
			
		||||
        )
 | 
			
		||||
endif ()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										11
									
								
								Makefile
								
								
								
								
							
							
						
						
									
										11
									
								
								Makefile
								
								
								
								
							| 
						 | 
				
			
			@ -18,7 +18,6 @@ help:
 | 
			
		|||
rebuild_cache: build/Debug build/Release
 | 
			
		||||
		@$(MAKE) -C build/Debug rebuild_cache
 | 
			
		||||
		@$(MAKE) -C build/Release rebuild_cache
 | 
			
		||||
		@$(MAKE) -C build/Binary rebuild_cache
 | 
			
		||||
 | 
			
		||||
debug: build/Debug
 | 
			
		||||
		@echo "[DEBUG]"
 | 
			
		||||
| 
						 | 
				
			
			@ -28,10 +27,6 @@ release: build/Release
 | 
			
		|||
		@echo "[RELEASE]"
 | 
			
		||||
		@$(MAKE) -C build/Release
 | 
			
		||||
 | 
			
		||||
binary: build/Binary
 | 
			
		||||
		@echo "[BINARY]"
 | 
			
		||||
		@$(MAKE) -C build/Binary
 | 
			
		||||
 | 
			
		||||
package: build/Release
 | 
			
		||||
		@echo "[PACKAGE] Release"
 | 
			
		||||
		@$(MAKE) -C build/Release package
 | 
			
		||||
| 
						 | 
				
			
			@ -45,11 +40,7 @@ build/Debug:
 | 
			
		|||
 | 
			
		||||
build/Release:
 | 
			
		||||
		@mkdir -p $@
 | 
			
		||||
		@cd $@ && cmake -Wno-dev -DCMAKE_BUILD_TYPE=Release $(CMAKEFLAGS) ../../
 | 
			
		||||
 | 
			
		||||
build/Binary:
 | 
			
		||||
		@mkdir -p $@
 | 
			
		||||
		@cd $@ && cmake -Wno-dev -DCMAKE_BUILD_TYPE=Binary $(CMAKEFLAGS) ../../
 | 
			
		||||
		@cd $@ && cmake -DCMAKE_BUILD_TYPE=Release $(CMAKEFLAGS) -Wno-dev ../../
 | 
			
		||||
 | 
			
		||||
clean:
 | 
			
		||||
		@echo "[CLEAN]"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,27 +0,0 @@
 | 
			
		|||
set(CPACK_PACKAGE_NAME ${PROJECT_NAME})
 | 
			
		||||
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
 | 
			
		||||
set(CPACK_SET_DESTDIR "ON")
 | 
			
		||||
 | 
			
		||||
if (APPLE)
 | 
			
		||||
	  set(CPACK_GENERATOR "ZIP")
 | 
			
		||||
	  set(CPACK_PACKAGE_FILE_NAME "${PROJECT_NAME}-${PROJECT_VERSION}-macosx-amd64")
 | 
			
		||||
	  file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/dist/osx")
 | 
			
		||||
	  set(CPACK_INSTALL_PREFIX "")
 | 
			
		||||
	  set(CPACK_OUTPUT_FILE_PREFIX "${CMAKE_BINARY_DIR}/dist/osx")
 | 
			
		||||
elseif (WIN32)
 | 
			
		||||
  	set(CPACK_GENERATOR "ZIP")
 | 
			
		||||
	  file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/dist/windows")
 | 
			
		||||
  	set(CPACK_INSTALL_PREFIX "")
 | 
			
		||||
	  set(CPACK_OUTPUT_FILE_PREFIX "${CMAKE_BINARY_DIR}/dist/windows")
 | 
			
		||||
elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND EXISTS "/etc/debian_version")
 | 
			
		||||
	  message(STATUS "Debian-based Linux OS detected")
 | 
			
		||||
	  set(CPACK_GENERATOR "DEB")
 | 
			
		||||
  	if ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64")
 | 
			
		||||
	    	set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${PROJECT_VERSION}-amd64" )
 | 
			
		||||
   	endif ()
 | 
			
		||||
 | 
			
		||||
  	set(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://github.com/stlink-org/stlink")
 | 
			
		||||
  	set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Luca Boccassi")
 | 
			
		||||
	  set(CPACK_PACKAGE_CONTACT "bluca@debian.org")
 | 
			
		||||
	  set(CPACK_DEBIAN_PACKAGE_DESCRIPTION "STM32 STlink programmer tools")
 | 
			
		||||
endif ()
 | 
			
		||||
| 
						 | 
				
			
			@ -1,25 +0,0 @@
 | 
			
		|||
# Sample toolchain file for building for Windows from a Debian/Ubuntu Linux system.
 | 
			
		||||
#
 | 
			
		||||
# Typical usage:
 | 
			
		||||
#    *) install cross compiler: `sudo apt-get install mingw-w64`
 | 
			
		||||
#    *) cd build
 | 
			
		||||
#    *) cmake -DCMAKE_TOOLCHAIN_FILE=./cmake/linux-mingw32.cmake ..
 | 
			
		||||
 | 
			
		||||
set(CMAKE_SYSTEM_NAME Windows)
 | 
			
		||||
set(TOOLCHAIN_PREFIX i686-w64-mingw32)
 | 
			
		||||
 | 
			
		||||
# cross compilers to use for C and C++
 | 
			
		||||
set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-gcc)
 | 
			
		||||
set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}-g++)
 | 
			
		||||
set(CMAKE_RC_COMPILER ${TOOLCHAIN_PREFIX}-windres)
 | 
			
		||||
 | 
			
		||||
# target environment on the build host system
 | 
			
		||||
# set 1st to dir with the cross compiler's C/C++ headers/libs
 | 
			
		||||
set(CMAKE_FIND_ROOT_PATH /usr/${TOOLCHAIN_PREFIX})
 | 
			
		||||
 | 
			
		||||
# modify default behavior of FIND_XXX() commands to
 | 
			
		||||
# search for headers/libs in the target environment and
 | 
			
		||||
# search for programs in the build host environment
 | 
			
		||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
 | 
			
		||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
 | 
			
		||||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
 | 
			
		||||
| 
						 | 
				
			
			@ -1,25 +0,0 @@
 | 
			
		|||
# Sample toolchain file for building for Windows from a Debian/Ubuntu Linux system.
 | 
			
		||||
#
 | 
			
		||||
# Typical usage:
 | 
			
		||||
#    *) install cross compiler: `sudo apt-get install mingw-w64`
 | 
			
		||||
#    *) cd build
 | 
			
		||||
#    *) cmake -DCMAKE_TOOLCHAIN_FILE=./cmake/linux-mingw64.cmake ..
 | 
			
		||||
 | 
			
		||||
set(CMAKE_SYSTEM_NAME Windows)
 | 
			
		||||
set(TOOLCHAIN_PREFIX x86_64-w64-mingw32)
 | 
			
		||||
 | 
			
		||||
# cross compilers to use for C and C++
 | 
			
		||||
set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-gcc)
 | 
			
		||||
set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}-g++)
 | 
			
		||||
set(CMAKE_RC_COMPILER ${TOOLCHAIN_PREFIX}-windres)
 | 
			
		||||
 | 
			
		||||
# target environment on the build host system
 | 
			
		||||
# set 1st to dir with the cross compiler's C/C++ headers/libs
 | 
			
		||||
set(CMAKE_FIND_ROOT_PATH /usr/${TOOLCHAIN_PREFIX})
 | 
			
		||||
 | 
			
		||||
# modify default behavior of FIND_XXX() commands to
 | 
			
		||||
# search for headers/libs in the target environment and
 | 
			
		||||
# search for programs in the build host environment
 | 
			
		||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
 | 
			
		||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
 | 
			
		||||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
 | 
			
		||||
| 
						 | 
				
			
			@ -1,7 +1,6 @@
 | 
			
		|||
# Find7zip.cmake
 | 
			
		||||
# Find_7zip.cmake
 | 
			
		||||
# Detect 7zip file archiver on Windows systems to extract (zip-)archives
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
find_program(
 | 
			
		||||
    ZIP_EXECUTABLE NAMES 7z.exe p7zip
 | 
			
		||||
	  HINTS "C:\\Program Files\\7-Zip\\" "C:\\Program Files (x86)\\7-Zip\\"
 | 
			
		||||
| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
# Findlibusb.cmake
 | 
			
		||||
# Find_libusb.cmake
 | 
			
		||||
# Once done this will define
 | 
			
		||||
#
 | 
			
		||||
#  LIBUSB_FOUND         libusb present on system
 | 
			
		||||
| 
						 | 
				
			
			@ -75,7 +75,9 @@ elseif (WIN32 OR (EXISTS "/etc/debian_version" AND ${CMAKE_BUILD_TYPE} MATCHES "
 | 
			
		|||
 | 
			
		||||
    if (NOT LIBUSB_FOUND OR EXISTS "/etc/debian_version")
 | 
			
		||||
        # Preparations for installing libusb library
 | 
			
		||||
        find_package(7zip REQUIRED)
 | 
			
		||||
 | 
			
		||||
        find_package(_7zip REQUIRED)
 | 
			
		||||
 | 
			
		||||
        set(LIBUSB_WIN_VERSION 1.0.23)          # set libusb version
 | 
			
		||||
        set(LIBUSB_WIN_ARCHIVE libusb-${LIBUSB_WIN_VERSION}.7z)
 | 
			
		||||
        set(LIBUSB_WIN_ARCHIVE_PATH ${CMAKE_BINARY_DIR}/${LIBUSB_WIN_ARCHIVE})
 | 
			
		||||
| 
						 | 
				
			
			@ -34,17 +34,17 @@ add_cflag_if_supported("-Wimplicit-function-declaration")
 | 
			
		|||
# /usr/include/sys/types.h:218: warning: previous declaration of 'truncate' was here
 | 
			
		||||
##
 | 
			
		||||
if (NOT CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
 | 
			
		||||
	  add_cflag_if_supported("-Wredundant-decls")
 | 
			
		||||
    add_cflag_if_supported("-Wredundant-decls")
 | 
			
		||||
endif ()
 | 
			
		||||
 | 
			
		||||
if (NOT WIN32)
 | 
			
		||||
	  add_cflag_if_supported("-fPIC")
 | 
			
		||||
    add_cflag_if_supported("-fPIC")
 | 
			
		||||
endif ()
 | 
			
		||||
 | 
			
		||||
if (${CMAKE_BUILD_TYPE} MATCHES "Debug")
 | 
			
		||||
	  add_cflag_if_supported("-ggdb")
 | 
			
		||||
	  add_cflag_if_supported("-O0")
 | 
			
		||||
else()
 | 
			
		||||
	  add_cflag_if_supported("-O2")
 | 
			
		||||
    add_cflag_if_supported("-ggdb")
 | 
			
		||||
    add_cflag_if_supported("-O0")
 | 
			
		||||
else ()
 | 
			
		||||
    add_cflag_if_supported("-O2")
 | 
			
		||||
    add_cflag_if_supported("-Werror")
 | 
			
		||||
endif ()
 | 
			
		||||
| 
						 | 
				
			
			@ -0,0 +1,4 @@
 | 
			
		|||
add_subdirectory(debian)
 | 
			
		||||
add_subdirectory(fedora)
 | 
			
		||||
add_subdirectory(opensuse)
 | 
			
		||||
add_subdirectory(windows)
 | 
			
		||||
| 
						 | 
				
			
			@ -0,0 +1,85 @@
 | 
			
		|||
###
 | 
			
		||||
# Configure package
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
set(CPACK_PACKAGE_NAME ${PROJECT_NAME})
 | 
			
		||||
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
 | 
			
		||||
set(CPACK_SET_DESTDIR "ON")
 | 
			
		||||
set(CPACK_OUTPUT_FILE_PREFIX "${CMAKE_BINARY_DIR}/dist")
 | 
			
		||||
 | 
			
		||||
if (APPLE)
 | 
			
		||||
    set(CPACK_GENERATOR "ZIP")
 | 
			
		||||
    set(CPACK_PACKAGE_FILE_NAME "${PROJECT_NAME}-${PROJECT_VERSION}-macosx-amd64")
 | 
			
		||||
    set(CPACK_INSTALL_PREFIX "")
 | 
			
		||||
elseif (WIN32)                                                                  ### TODO: Binary build config for windows...
 | 
			
		||||
    set(CPACK_GENERATOR "ZIP")
 | 
			
		||||
    set(CPACK_PACKAGE_FILE_NAME "${PROJECT_NAME}-${PROJECT_VERSION}-win32")
 | 
			
		||||
    set(CPACK_INSTALL_PREFIX "")
 | 
			
		||||
 | 
			
		||||
    # Sample toolchain file for building for Windows from a Debian/Ubuntu Linux system.
 | 
			
		||||
    # Typical usage:
 | 
			
		||||
    #    *) install cross compiler: `sudo apt-get install mingw-w64`
 | 
			
		||||
    #    *) cd build
 | 
			
		||||
    #    *) cmake -DCMAKE_TOOLCHAIN_FILE=./cmake/linux-mingw64.cmake ..
 | 
			
		||||
    #    *) cmake -DCMAKE_TOOLCHAIN_FILE=./cmake/linux-mingw32.cmake ..
 | 
			
		||||
 | 
			
		||||
    #set(CMAKE_SYSTEM_NAME Windows)
 | 
			
		||||
    #set(TOOLCHAIN_PREFIX x86_64-w64-mingw32)
 | 
			
		||||
    #set(TOOLCHAIN_PREFIX i686-w64-mingw32)
 | 
			
		||||
 | 
			
		||||
    # cross compilers to use for C and C++
 | 
			
		||||
    #set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-gcc)
 | 
			
		||||
    #set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}-g++)
 | 
			
		||||
    #set(CMAKE_RC_COMPILER ${TOOLCHAIN_PREFIX}-windres)
 | 
			
		||||
 | 
			
		||||
    # target environment on the build host system
 | 
			
		||||
    # set 1st to dir with the cross compiler's C/C++ headers/libs
 | 
			
		||||
    #set(CMAKE_FIND_ROOT_PATH /usr/${TOOLCHAIN_PREFIX})
 | 
			
		||||
 | 
			
		||||
    # modify default behavior of FIND_XXX() commands to
 | 
			
		||||
    # search for headers/libs in the target environment and
 | 
			
		||||
    # search for programs in the build host environment
 | 
			
		||||
    #set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
 | 
			
		||||
    #set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
 | 
			
		||||
    #set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
 | 
			
		||||
 | 
			
		||||
elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND EXISTS "/etc/debian_version")
 | 
			
		||||
    message(STATUS "Debian-based Linux OS detected")
 | 
			
		||||
 | 
			
		||||
    ### Debian-specific
 | 
			
		||||
    set(CPACK_GENERATOR "DEB")
 | 
			
		||||
    set(CPACK_DEBIAN_PACKAGE_DESCRIPTION "Open source STM32 MCU programming toolset")
 | 
			
		||||
    set(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://github.com/stlink-org/stlink")
 | 
			
		||||
    set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Luca Boccassi")
 | 
			
		||||
    set(CPACK_PACKAGE_CONTACT "bluca@debian.org")
 | 
			
		||||
 | 
			
		||||
    ## Set debian_revision number
 | 
			
		||||
    # Convention: Restart the debian_revision at 1 each time the upstream_version is increased.
 | 
			
		||||
    set(CPACK_DEBIAN_PACKAGE_RELEASE "0")
 | 
			
		||||
 | 
			
		||||
    ## Debian package name
 | 
			
		||||
    # CPack DEB generator generates package file name in deb format:
 | 
			
		||||
    # <PackageName>_<VersionNumber>-<DebianRevisionNumber>_<DebianArchitecture>.deb
 | 
			
		||||
    set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT)
 | 
			
		||||
 | 
			
		||||
    ## Add CHANGELOG in Debian-specific format
 | 
			
		||||
                                                                                ### TODO
 | 
			
		||||
 | 
			
		||||
    ## Add license file
 | 
			
		||||
                                                                                ### TODO
 | 
			
		||||
 | 
			
		||||
    # Include a postinst-script
 | 
			
		||||
    set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CMAKE_SOURCE_DIR}/cmake/packaging/debian/postinst")
 | 
			
		||||
 | 
			
		||||
    ### rpm-specific                                                            ### TODO: Package config for opensuse should go here...
 | 
			
		||||
 | 
			
		||||
else ()
 | 
			
		||||
                                                                                ### TODO: Package config for fedora should go here...
 | 
			
		||||
endif ()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
# Build package
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
include(CPack)
 | 
			
		||||
| 
						 | 
				
			
			@ -0,0 +1,226 @@
 | 
			
		|||
stlink (1.6.0) unstable; urgency=medium
 | 
			
		||||
 | 
			
		||||
Release date: 2020-02-20
 | 
			
		||||
 | 
			
		||||
Major changes and added features:
 | 
			
		||||
 | 
			
		||||
* Initial support for STM32L41X
 | 
			
		||||
* Working support for CKS32F103C8T6 and related CKS devices with Core-ID 0x2ba01477
 | 
			
		||||
* Added preliminary support for some STM32G0 chips
 | 
			
		||||
* Added support for mass erasing second bank on STM32F10x_XL
 | 
			
		||||
* Added call to clear PG bit after writing to flash
 | 
			
		||||
* Added support to write option bytes for the STM32G0
 | 
			
		||||
* Added support for STM32WB55 chips
 | 
			
		||||
* Added STLink V3SET VID:PIDs to the udev rules
 | 
			
		||||
* Support for "STM32+Audio" v2-1 firmware
 | 
			
		||||
* Build for Windows under Debian/Ubuntu
 | 
			
		||||
* Allow for 64 bytes serials
 | 
			
		||||
* Added full support for STLINK CHIP ID L4RX
 | 
			
		||||
* Added support for the STLink-v2.1 when flashed with no mass storage (PID 0x3752)
 | 
			
		||||
* Added support for writing option bytes on STM32L0xx
 | 
			
		||||
* Added support to read and write option bytes for STM32F2 series
 | 
			
		||||
* Added support to read and write option bytes for STM32F446
 | 
			
		||||
 | 
			
		||||
Updates and fixes:
 | 
			
		||||
 | 
			
		||||
* Fixed "unkown chip id", piped output and st-util -v
 | 
			
		||||
* Fixed an issue with versioning stuck at 1.4.0 for versions cloned with git
 | 
			
		||||
* Updated STM32F3xx chip ID that covers a few different devices
 | 
			
		||||
* Made udev rules and modprobe conf installation optional
 | 
			
		||||
* Fixed case when __FILE__ don't contain "/" nor "\\"
 | 
			
		||||
* Fixed double dash issue in doc/man
 | 
			
		||||
* Compiling documentation: package is called libusb-1.0-0-dev on Debian
 | 
			
		||||
* Only do bank calculation on STM32L4 devices with dual banked flash / Added chip-ID 0x464 for STM32L41xxx/L42xxx devices
 | 
			
		||||
* Added O_BINARY option to open file
 | 
			
		||||
* Fixed versioning when compiling from the checked out git-repo
 | 
			
		||||
* win32: move usleep definition to unistd.h
 | 
			
		||||
* Fixed relative path to the UI files needed by stlink-gui-local (GUI)
 | 
			
		||||
* Added howto for sending NRST signal through GDB
 | 
			
		||||
* Fixed package name "devscripts" in doc/compiling.md
 | 
			
		||||
* Fixed few potential memory/resource leaks
 | 
			
		||||
* Updated Linux source repositories in README.md: Debian and Ubuntu
 | 
			
		||||
* Do not issue JTAG reset on stlink-v1
 | 
			
		||||
* Fixed flash size of STM32 Discovery vl
 | 
			
		||||
* Updated documentation on software structure
 | 
			
		||||
 | 
			
		||||
General project updates:
 | 
			
		||||
 | 
			
		||||
* Updated README.md, CHANGELOG.md and issue templates
 | 
			
		||||
* Fixed travis build config file
 | 
			
		||||
* Added CODE_OF_CONDUCT
 | 
			
		||||
* Archived page from github project wiki to doc/wiki_old.md
 | 
			
		||||
 | 
			
		||||
-- Luca Boccassi <bluca@debian.org>  Tue, 25 Feb 2020 22:08:33 +0000
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
stlink (1.5.1) unstable; urgency=medium
 | 
			
		||||
 | 
			
		||||
Release date: 2018-09-13
 | 
			
		||||
 | 
			
		||||
Major changes and added features:
 | 
			
		||||
 | 
			
		||||
* Added reset through AIRCR
 | 
			
		||||
* Added creation of icons for .desktop file
 | 
			
		||||
* Added desktop file for linux
 | 
			
		||||
* Added button to export STM32 flash memory to a file
 | 
			
		||||
* Updated libusb to 1.0.22
 | 
			
		||||
* Added icons for STLink GUI
 | 
			
		||||
* Added support for STM32L4R9 target
 | 
			
		||||
* Added memory map for STM32F411RE target
 | 
			
		||||
* Implemented intel hex support for GTK GUI
 | 
			
		||||
 | 
			
		||||
Updates and fixes:
 | 
			
		||||
 | 
			
		||||
* Fixed missing flash_loader for STM32L0x
 | 
			
		||||
* Fix for stlink library calls exit() or _exit()
 | 
			
		||||
* Added semihosting parameter documentation in doc/man
 | 
			
		||||
* Fixed reference to non-exisiting st-term tool in doc/man
 | 
			
		||||
* Fixed serial number size mismatch with stlink_open_usb()
 | 
			
		||||
* Debian packaging, CMake and README.md fixes
 | 
			
		||||
* Disabled static library installation by default
 | 
			
		||||
* Fix for libusb deprecation
 | 
			
		||||
* Renamed STLINK_CHIPID_STM32_L4R9 to STLINK_CHIPID_STM32_L4RX
 | 
			
		||||
* Regression: stlink installation under Linux (Debian 9) is broken since #695
 | 
			
		||||
* Fixed flash memory map for STM32F72xxx target
 | 
			
		||||
* Proper flash page size calculation for STM32F412xx target
 | 
			
		||||
* Return correct value on EOF for Semihosting SYS_READ
 | 
			
		||||
* FreeBSD defines LIBUSB_API_VERSION instead of LIBUSBX_API_VERSION
 | 
			
		||||
 | 
			
		||||
-- Luca Boccassi <bluca@debian.org>  Fri, 28 Sep 2018 10:26:39 +0100
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
stlink (1.5.0) unstable; urgency=medium
 | 
			
		||||
 | 
			
		||||
Release date: 2018-02-16
 | 
			
		||||
 | 
			
		||||
Major changes and added features:
 | 
			
		||||
 | 
			
		||||
* Added support of STM32L496xx/4A6xx devices
 | 
			
		||||
* Added unknown chip dummy to obtain the serial of the ST-link by a call to st-info --probe
 | 
			
		||||
* Added support for STM32F72xx (chip-ID: 0x452) devices
 | 
			
		||||
 | 
			
		||||
Updates and fixes:
 | 
			
		||||
 | 
			
		||||
* Fixed verification of flash error for STM32L496x device
 | 
			
		||||
* Updated Linux source repositories in README.md: Gentoo, Fedora and RedHat/CentOS
 | 
			
		||||
* Updated changelog in debian package
 | 
			
		||||
* Added LIB_INSTALL_DIR to correct libs install on 64-bit systems
 | 
			
		||||
* Fixed write for microcontroller with RAM size less or equal to 32K
 | 
			
		||||
* Fixed memory map for STM32L496xx boards
 | 
			
		||||
* Fixed __FILE__ base name extraction
 | 
			
		||||
* Added debian/triggers to run ldconfig
 | 
			
		||||
* Fixed build on Fedora with GCC 8
 | 
			
		||||
 | 
			
		||||
-- Luca Boccassi <bluca@debian.org>  Fri, 16 Mar 2018 16:56:17 +0000
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
stlink (1.4.0) unstable; urgency=low
 | 
			
		||||
 | 
			
		||||
Release date: 2017-07-01
 | 
			
		||||
 | 
			
		||||
Major changes and added features:
 | 
			
		||||
 | 
			
		||||
* Allow building of debian package with CPack
 | 
			
		||||
* Added support for STM32L011 target
 | 
			
		||||
* Added support for flashing second bank on STM32F10x_XL
 | 
			
		||||
* Initial support to compile with Microsoft Visual Studio 2017
 | 
			
		||||
* Added support for STM32L452 target
 | 
			
		||||
 | 
			
		||||
Updates and fixes:
 | 
			
		||||
 | 
			
		||||
* Fixed gdb-server: STM32L0xx has no FP_CTRL register for breakpoints
 | 
			
		||||
* Added --flash=n[k][m] command line option to override device model
 | 
			
		||||
* Updated libusb to 1.0.21 for Windows
 | 
			
		||||
* Fixed low-voltage flashing on STM32F7 devices
 | 
			
		||||
* Fixed building with mingw64
 | 
			
		||||
* Fixed possible memory leak
 | 
			
		||||
* Fixed installation path for shared objects
 | 
			
		||||
* Fixed a few -Wformat warnings
 | 
			
		||||
* Removed unused defines in mimgw.h
 | 
			
		||||
* Skip GTK detection when cross-compiling
 | 
			
		||||
* Fixed compilation with GCC 7
 | 
			
		||||
* Fixed flashing to 'f0 device' targets
 | 
			
		||||
* Fixed wrong counting when flashing
 | 
			
		||||
 | 
			
		||||
-- Andrew 'Necromant' Andrianov <andrew@ncrmnt.org>  Sat, 01 Jul 2017 00:00:00 +0000
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
stlink (1.3.1) unstable; urgency=low
 | 
			
		||||
 | 
			
		||||
Release date: 2017-02-25
 | 
			
		||||
 | 
			
		||||
Major changes and added features:
 | 
			
		||||
 | 
			
		||||
* Added support for Semihosting `SYS_READC`
 | 
			
		||||
* Added support for STM32F413
 | 
			
		||||
* Added preliminary support for STM32L011 to see it after probe (chip-ID 0x457)
 | 
			
		||||
 | 
			
		||||
Updates and fixes:
 | 
			
		||||
 | 
			
		||||
* cmake/CPackConfig.cmake: Fixup OSX zip filename
 | 
			
		||||
* Updated source repositories in README.md: Windows, macOS, Alpine Linux
 | 
			
		||||
* Compilation fixes
 | 
			
		||||
* Stripped full paths to source files in log
 | 
			
		||||
* Fixed incorrect release folder name in docs
 | 
			
		||||
* Fixed compilation when path includes spaces
 | 
			
		||||
 | 
			
		||||
-- Andrew 'Necromant' Andrianov <andrew@ncrmnt.org>  Sat, 25 Feb 2017 00:00:00 +0000
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
stlink (1.3.0) unstable; urgency=low
 | 
			
		||||
 | 
			
		||||
Release date: 2017-01-28
 | 
			
		||||
 | 
			
		||||
Major changes and added features:
 | 
			
		||||
 | 
			
		||||
* Deprecation of autotools (autoconf, automake) and fixed build with MinGW
 | 
			
		||||
* Added intel hex file reading for `st-flash`
 | 
			
		||||
* Added support for ARM semihosting to `st-util`
 | 
			
		||||
* Added manpages (generated with pandoc from Markdown)
 | 
			
		||||
* Removal of undocumented `st-term` utility, which is now replaced by `st-util` ARM semihosting feature
 | 
			
		||||
* Support serial numbers argument for `st-util` and `st-flash` to probe and control multiple connected programmers
 | 
			
		||||
* Merge st-probe tool into st-info
 | 
			
		||||
* Added support for native debian packaging
 | 
			
		||||
* Rewritten commandline parsing for `st-flash`
 | 
			
		||||
* Added `--reset` command to `st-flash`
 | 
			
		||||
* st-util should detect when USB commands fail
 | 
			
		||||
 | 
			
		||||
Chip support added for:
 | 
			
		||||
 | 
			
		||||
* STM32F401XE: Added memory map for device
 | 
			
		||||
* STM32F410RBTx
 | 
			
		||||
* STM32F412
 | 
			
		||||
* STM32F7xx
 | 
			
		||||
* STM32F7x7x
 | 
			
		||||
* STM32L0xx Cat2 devices (chip-ID: 0x425)
 | 
			
		||||
* STM32L0xx Cat5 devices (chip-ID: 0x447)
 | 
			
		||||
* STM32L4xx
 | 
			
		||||
* STM32L432
 | 
			
		||||
 | 
			
		||||
Updates and fixes:
 | 
			
		||||
 | 
			
		||||
* Fixed "unaligned addr or size" when trying to write a program in RAM
 | 
			
		||||
* Fixed flashing on STM32_F3_SMALL
 | 
			
		||||
* Fixed STM32L-problem with flash loader
 | 
			
		||||
* Don't read the target voltage on startup, because it crashes STM32F100
 | 
			
		||||
* Added a useful error message instead of "[!] send_recv"
 | 
			
		||||
* Do a JTAG reset prior to reading CPU information when processor is in deep sleep
 | 
			
		||||
* Fixed STM32F030 erase error
 | 
			
		||||
* Fixed memory map for STM32F7xx
 | 
			
		||||
* Redesign of `st-flash` commandline options parsing
 | 
			
		||||
* Set SWDCLK and fixed jtag_reset bug
 | 
			
		||||
* doc/compiling.md: Add note about installation and ldconfig
 | 
			
		||||
* Fixed Release target to generate the man-pages with pandoc
 | 
			
		||||
* Fixed Cygwin build
 | 
			
		||||
* Reset flash mass erase (MER) bit after mass erase for safety
 | 
			
		||||
* Wrong extract command in FindLibUSB.cmake
 | 
			
		||||
* Fixed compilation error on Ubuntu 16.10
 | 
			
		||||
 | 
			
		||||
-- Andrew 'Necromant' Andrianov <andrew@ncrmnt.org>  Sat, 28 Jan 2017 00:00:00 +0000
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
libstlink (1.2.1) unstable; urgency=low
 | 
			
		||||
 | 
			
		||||
* Initial Debian-packaged release.
 | 
			
		||||
 | 
			
		||||
-- Andrew 'Necromant' Andrianov <andrew@ncrmnt.org>  Sat, 09 Jul 2016 23:16:07 +0300
 | 
			
		||||
| 
						 | 
				
			
			@ -0,0 +1,4 @@
 | 
			
		|||
#!/bin/bash
 | 
			
		||||
# This `DEBIAN/postinst` script is run post-installation
 | 
			
		||||
 | 
			
		||||
depmod -a
 | 
			
		||||
| 
						 | 
				
			
			@ -1,129 +0,0 @@
 | 
			
		|||
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 <anatol.pomozov@gmail.com>  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 <andrew@ncrmnt.org>  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 <andrew@ncrmnt.org>  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 <andrew@ncrmnt.org>  Sat, 28 Jan 2017 00:00:00 +0000
 | 
			
		||||
 | 
			
		||||
libstlink (1.2.1) unstable; urgency=low
 | 
			
		||||
 | 
			
		||||
  * Initial Debian-Packaged Release.
 | 
			
		||||
 | 
			
		||||
 -- Andrew 'Necromant' Andrianov <andrew@ncrmnt.org>  Sat, 09 Jul 2016 23:16:07 +0300
 | 
			
		||||
| 
						 | 
				
			
			@ -1,15 +1,15 @@
 | 
			
		|||
set(PKG_CONFIG_LIBDIR     "\${prefix}/lib/\${deb_host_multiarch}")
 | 
			
		||||
set(PKG_CONFIG_INCLUDEDIR "\${prefix}/include/\${deb_host_multiarch}/${PROJECT_NAME}")
 | 
			
		||||
set(PKG_CONFIG_LIBS       "-L\${libdir} -l:libstlink.so.${PROJECT_VERSION_MAJOR}")
 | 
			
		||||
set(PKG_CONFIG_CFLAGS     "-I\${includedir}")
 | 
			
		||||
set(PKG_CONFIG_REQUIRES   "libusb-1.0")
 | 
			
		||||
#set(PKG_CONFIG_LIBDIR     "\${prefix}/lib/\${deb_host_multiarch}")
 | 
			
		||||
#set(PKG_CONFIG_INCLUDEDIR "\${prefix}/include/\${deb_host_multiarch}/${PROJECT_NAME}")
 | 
			
		||||
#set(PKG_CONFIG_LIBS       "-L\${libdir} -l:libstlink.so.${PROJECT_VERSION_MAJOR}")
 | 
			
		||||
#set(PKG_CONFIG_CFLAGS     "-I\${includedir}")
 | 
			
		||||
#set(PKG_CONFIG_REQUIRES   "libusb-1.0")
 | 
			
		||||
 | 
			
		||||
configure_file(
 | 
			
		||||
    "${CMAKE_CURRENT_SOURCE_DIR}/pkg-config.pc.cmake"
 | 
			
		||||
    "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc"
 | 
			
		||||
    )
 | 
			
		||||
#configure_file(
 | 
			
		||||
#    "${CMAKE_CURRENT_SOURCE_DIR}/pkg-config.pc.cmake"
 | 
			
		||||
#    "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc"
 | 
			
		||||
#    )
 | 
			
		||||
 | 
			
		||||
install(
 | 
			
		||||
    FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc"
 | 
			
		||||
    DESTINATION ${STLINK_LIBRARY_PATH}/pkg-config/
 | 
			
		||||
    )
 | 
			
		||||
#install(
 | 
			
		||||
#    FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc"
 | 
			
		||||
#    DESTINATION ${STLINK_LIBRARY_PATH}/debian/
 | 
			
		||||
#    )
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
if (NOT GTK3_FOUND)
 | 
			
		||||
    message(STATUS "GTK3 not found!")
 | 
			
		||||
    return()                         # no GTK3 present => no GUI build
 | 
			
		||||
    return()                          # no GTK3 present => no GUI build
 | 
			
		||||
else (GTK3_FOUND)
 | 
			
		||||
    message(STATUS "Found GTK3: -I${GTK3_INCLUDE_DIRS}, ${GTK3_LIBRARIES}")
 | 
			
		||||
endif ()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Ładowanie…
	
		Reference in New Issue