Debug balast
This commit is contained in:
@@ -5,15 +5,16 @@ project(TEST)
|
|||||||
## Target
|
## Target
|
||||||
set(CMAKE_CXX_STANDARD 11)
|
set(CMAKE_CXX_STANDARD 11)
|
||||||
set(TEST_SRCS main.cpp TimeoutSerial.cpp Ymodem.cpp YmodemFileReceive.cpp)
|
set(TEST_SRCS main.cpp TimeoutSerial.cpp Ymodem.cpp YmodemFileReceive.cpp)
|
||||||
add_definitions(-DBOOST_LOG_DYN_LINK)
|
#add_definitions(-DBOOST_LOG_DYN_LINK)
|
||||||
add_executable(usbserial-dw ${TEST_SRCS})
|
add_executable(usbserial-dw ${TEST_SRCS})
|
||||||
|
|
||||||
## Link libraries
|
## Link libraries
|
||||||
|
#set(Boost_USE_STATIC_LIBS ON)
|
||||||
set(BOOST_LIBS date_time system log program_options)
|
set(BOOST_LIBS date_time system log program_options)
|
||||||
find_package(Boost COMPONENTS ${BOOST_LIBS} REQUIRED)
|
find_package(Boost COMPONENTS ${BOOST_LIBS} REQUIRED)
|
||||||
target_link_libraries(usbserial-dw ${Boost_LIBRARIES})
|
target_link_libraries(usbserial-dw ${Boost_LIBRARIES})
|
||||||
find_package(Threads REQUIRED)
|
find_package(Threads REQUIRED)
|
||||||
target_link_libraries(usbserial-dw ${CMAKE_THREAD_LIBS_INIT})
|
##target_link_libraries(usbserial-dw ${CMAKE_THREAD_LIBS_INIT})
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
install(TARGETS usbserial-dw DESTINATION ${CMAKE_INSTALL_BINDIR})
|
install(TARGETS usbserial-dw DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||||
@@ -146,7 +146,7 @@ Ymodem::Code YmodemFileReceive::callback(Status status, uint8_t *buff, uint32_t
|
|||||||
fileCount = 0;
|
fileCount = 0;
|
||||||
|
|
||||||
|
|
||||||
BOOST_LOG_TRIVIAL(debug) << "File open: " << filePath + fileName ;
|
BOOST_LOG_TRIVIAL(debug) << "File open: " << filePath + fileName << " Size:" << fileSize << " Original: " << name;
|
||||||
|
|
||||||
file.open(filePath + fileName, ios::out | ios::binary);
|
file.open(filePath + fileName, ios::out | ios::binary);
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=usbserial-dw
|
PKG_NAME:=usbserial-dw
|
||||||
PKG_VERSION:=0.2.4
|
PKG_VERSION:=0.2.4
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL:=https://git.bh.ttx.sk/jaro/usbserial-dw.git
|
PKG_SOURCE_URL:=https://git.bh.ttx.sk/jaro/usbserial-dw.git
|
||||||
|
|||||||
Reference in New Issue
Block a user