kopia lustrzana https://github.com/stlink-org/stlink
Corrected install paths & changelog files
- man-pages - desktop-file and icons - Fix for external CMAKE_MODULE_PATH - udev-rules - headers & stlink-gui.uipull/1004/head
rodzic
66c6696337
commit
2694214df7
|
@ -19,7 +19,7 @@ Features:
|
|||
* Support for STM32L1, SM32L4 option bytes write ([#596](https://github.com/stlink-org/stlink/pull/596), [#844](https://github.com/stlink-org/stlink/pull/844), [#847](https://github.com/stlink-org/stlink/pull/847))
|
||||
* Added CMAKEFLAGS and install target ([#804](https://github.com/stlink-org/stlink/pull/804), [#935](https://github.com/stlink-org/stlink/pull/935))
|
||||
* Support for STM32G4 ([#822](https://github.com/stlink-org/stlink/pull/822))
|
||||
* Add aliased SRAM2 region in the L496 memory map ([#824](https://github.com/stlink-org/stlink/pull/824))
|
||||
* Added aliased SRAM2 region in the L496 memory map ([#824](https://github.com/stlink-org/stlink/pull/824))
|
||||
* Improved support for STM32G0 ([#825](https://github.com/stlink-org/stlink/pull/825), [#850](https://github.com/stlink-org/stlink/pull/850), [#856](https://github.com/stlink-org/stlink/pull/856), [#857](https://github.com/stlink-org/stlink/pull/857))
|
||||
* Added postinst script with 'depmod -a' for 'make package' ([#845](https://github.com/stlink-org/stlink/pull/845), [#931](https://github.com/stlink-org/stlink/pull/931))
|
||||
* Calculate checksums for flash operations ([#862](https://github.com/stlink-org/stlink/pull/862), [#924](https://github.com/stlink-org/stlink/pull/924))
|
||||
|
@ -358,6 +358,7 @@ Chip support added for:
|
|||
* STM32F469/STM32F479 ([#345](https://github.com/stlink-org/stlink/pull/345), [#555](https://github.com/stlink-org/stlink/pull/555)) (Release v1.2.0)
|
||||
* STM32L1xx Cat.2 devices (Nicolas Schodet)
|
||||
* STM32L1xx (chip-ID 0x427) ([#152](https://github.com/stlink-org/stlink/pull/152), [#163](https://github.com/stlink-org/stlink/pull/163), [#165](https://github.com/stlink-org/stlink/pull/165)) (Release v1.0.0)
|
||||
* Added SIGINT handler for stlink cleanup ([#31](https://github.com/stlink-org/stlink/pull/31), [#135](https://github.com/stlink-org/stlink/pull/135)) (Release v1.0.0)
|
||||
|
||||
Board support added for:
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
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_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)
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
||||
|
@ -94,6 +94,13 @@ include_directories(${PROJECT_SOURCE_DIR}/include/stlink/tools)
|
|||
include_directories(src)
|
||||
include_directories(src/tools) ### TODO: Clean this up...
|
||||
|
||||
## Set installation directory for header files
|
||||
set(STLINK_INCLUDE_PATH ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME} CACHE PATH "Main include install directory")
|
||||
|
||||
## Subordinate CMakeLists for version config & header installation
|
||||
#add_subdirectory(inc)
|
||||
|
||||
## Define source- and headerfiles for stlink library
|
||||
set(STLINK_HEADERS
|
||||
include/stlink.h
|
||||
include/stlink/backend.h
|
||||
|
@ -143,7 +150,7 @@ endif ()
|
|||
set(STLINK_LIBRARY_PATH ${CMAKE_INSTALL_LIBDIR} CACHE PATH "Main library install directory")
|
||||
|
||||
# Set the environment variable LD_LIBRARY_PATH to point to /usr/local/lib (per default).
|
||||
execute_process (COMMAND bash -c "export LD_LIBRARY_PATH="${CMAKE_INSTALL_LIBDIR}" ")
|
||||
execute_process(COMMAND bash -c "export LD_LIBRARY_PATH=${CMAKE_INSTALL_LIBDIR}")
|
||||
|
||||
|
||||
###
|
||||
|
@ -259,8 +266,8 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
|||
set(STLINK_MODPROBED_DIR "/etc/modprobe.d" CACHE PATH "modprobe.d directory")
|
||||
install(FILES ${CMAKE_SOURCE_DIR}/config/modprobe.d/stlink_v1.conf DESTINATION ${STLINK_MODPROBED_DIR})
|
||||
|
||||
## Install udev rules files to /etc/udev/rules.d/ (explicitly hardcoded)
|
||||
set(STLINK_UDEV_RULES_DIR "/etc/udev/rules.d" CACHE PATH "udev rules directory")
|
||||
## Install udev rules files to /lib/udev/rules.d/ (explicitly hardcoded)
|
||||
set(STLINK_UDEV_RULES_DIR "/lib/udev/rules.d" CACHE PATH "udev rules directory")
|
||||
file(GLOB RULES_FILES ${CMAKE_SOURCE_DIR}/config/udev/rules.d/*.rules)
|
||||
install(FILES ${RULES_FILES} DESTINATION ${STLINK_UDEV_RULES_DIR})
|
||||
endif ()
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
stlink (1.6.1) unstable; urgency=medium
|
||||
stlink (1.6.1+ds-1) unstable; urgency=medium
|
||||
|
||||
* Initial Debian-packaged Release.
|
||||
* Initial cpack-based package release for Debian/Ubuntu
|
||||
|
||||
-- Nightwalker-87 <stlink-org> Mon, 01 Jun 2020 00:00:00 +0100
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
* Mon Jun 01 2020 Vasiliy Glazov <vascom@fedoraproject.org> - 1.6.1
|
||||
- Initial RPM-packaged release
|
||||
* Mon Jun 01 2020 Nightwalker-87 <stlink-org> - 1.6.1
|
||||
- Initial cpack-based RPM package release
|
||||
|
|
|
@ -30,7 +30,7 @@ foreach (manpage ${MANPAGES})
|
|||
endif ()
|
||||
|
||||
if (f AND NOT WIN32)
|
||||
install(FILES ${f} DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}/man/man1)
|
||||
install(FILES ${f} DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/man/man1)
|
||||
unset(f)
|
||||
endif ()
|
||||
endforeach ()
|
||||
|
|
|
@ -68,7 +68,7 @@ NOTE: In order to use a STLINK/v1 programmer on macOS, versions 10.13, 10.14 or
|
|||
|
||||
## Unsupported Operating Systems (as of Release v1.6.1)
|
||||
|
||||
| Operating System | libusb<br />version | cmake<br />version | End of OS-Support | Notes |
|
||||
| Operating System | libusb<br />version | cmake<br />version | End of<br />OS-Support | Notes |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| CentOS 7 | 1.0.21 | **2.8.12.2** | | named `libusbx`, but<br />`libusb`-codebase is used |
|
||||
| Debian 8 (Jessie) | 1.0.**19** | 3.**0.2** | Jun 2020 |
|
||||
|
|
|
@ -13,11 +13,11 @@ if (NOT WIN32)
|
|||
|
||||
# Install desktop application entry
|
||||
install(FILES stlink-gui.desktop
|
||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}/applications)
|
||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications)
|
||||
|
||||
# Install icons
|
||||
install(FILES icons/stlink-gui.svg
|
||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}/icons/hicolor/scalable/apps)
|
||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/apps)
|
||||
|
||||
set(GUI_SOURCES gui.c gui.h)
|
||||
|
||||
|
@ -30,9 +30,9 @@ if (NOT WIN32)
|
|||
|
||||
## stlink-gui
|
||||
add_executable(stlink-gui ${GUI_SOURCES})
|
||||
install(FILES stlink-gui.ui DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
install(FILES stlink-gui.ui DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME})
|
||||
set_target_properties(stlink-gui PROPERTIES
|
||||
COMPILE_DEFINITIONS STLINK_UI_DIR="${CMAKE_INSTALL_PREFIX}/bin")
|
||||
COMPILE_DEFINITIONS STLINK_UI_DIR="${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}")
|
||||
target_link_libraries(stlink-gui ${STLINK_LIB_SHARED} ${SSP_LIB} ${GTK3_LDFLAGS})
|
||||
install(TARGETS stlink-gui DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue