Move all to deprecated folder.
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
From 46660112b76664473cc98b8ae6c863fd27c27d2d Mon Sep 17 00:00:00 2001
|
||||
From: Samuel Martin <s.martin49@gmail.com>
|
||||
Date: Fri, 29 Aug 2014 23:40:59 +0200
|
||||
Subject: [PATCH 1/1] cmake: handle static library and find required thread
|
||||
module
|
||||
|
||||
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
|
||||
---
|
||||
CMakeLists.txt | 2 ++
|
||||
src/CMakeLists.txt | 4 +++-
|
||||
2 files changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 79f644c..7779a2a 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -6,7 +6,9 @@ enable_testing()
|
||||
# use local module (for Findlibusb-1.0.cmake)
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
|
||||
|
||||
+find_package(Threads REQUIRED)
|
||||
find_package(libusb-1.0 REQUIRED)
|
||||
+
|
||||
if (NOT LIBUSB_1_FOUND)
|
||||
message(FATAL_ERROR "libusb-1.0 not installed. (try apt-get install libusb-1.0-0-dev)")
|
||||
endif (NOT LIBUSB_1_FOUND)
|
||||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
||||
index 149d198..0597ccd 100644
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -18,8 +18,10 @@ set (iqrf_sources
|
||||
|
||||
include_directories ("${LIBUSB_1_INCLUDE_DIRS}")
|
||||
|
||||
-add_library(iqrf SHARED ${iqrf_sources} ${iqrf_headers})
|
||||
+add_library(iqrf ${iqrf_sources} ${iqrf_headers})
|
||||
+
|
||||
target_link_libraries(iqrf ${LIBUSB_1_LIBRARIES})
|
||||
+target_link_libraries(iqrf ${CMAKE_THREAD_LIBS_INIT})
|
||||
|
||||
set_target_properties(iqrf PROPERTIES
|
||||
VERSION "${iqrf_version_major}.${iqrf_version_minor}"
|
||||
--
|
||||
2.1.0
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
Use only the C language
|
||||
|
||||
libirqf is written completely in C, but by default, CMake assumes that
|
||||
both C and C++ are used, and therefore verifies that a C++ compiler is
|
||||
installed. This may not necessarily be the case for a C-only package
|
||||
in Buildroot.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
|
||||
Index: b/src/CMakeLists.txt
|
||||
===================================================================
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -1,5 +1,3 @@
|
||||
-project(iqrf)
|
||||
-
|
||||
set (iqrf_version_major 0)
|
||||
set (iqrf_version_minor 1)
|
||||
set (iqrf_version_patch 2)
|
||||
Index: b/CMakeLists.txt
|
||||
===================================================================
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -1,3 +1,5 @@
|
||||
+project(iqrf C)
|
||||
+
|
||||
cmake_minimum_required(VERSION 2.8.1)
|
||||
enable_testing()
|
||||
|
||||
14
deprecated/firmware/buildroot/package/libiqrf/Config.in
Normal file
14
deprecated/firmware/buildroot/package/libiqrf/Config.in
Normal file
@@ -0,0 +1,14 @@
|
||||
config BR2_PACKAGE_LIBIQRF
|
||||
bool "libiqrf"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
|
||||
select BR2_PACKAGE_LIBUSB
|
||||
help
|
||||
This library implement specific protocol
|
||||
which is used for communicating with iqrf devices
|
||||
(http://iqrf.org) over usb. For usb access is used
|
||||
libusb library.
|
||||
|
||||
https://github.com/nandra/libiqrf
|
||||
|
||||
comment "libiqrf needs a toolchain w/ threads"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||
13
deprecated/firmware/buildroot/package/libiqrf/libiqrf.mk
Normal file
13
deprecated/firmware/buildroot/package/libiqrf/libiqrf.mk
Normal file
@@ -0,0 +1,13 @@
|
||||
################################################################################
|
||||
#
|
||||
# libiqrf
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBIQRF_VERSION = v0.1.2
|
||||
LIBIQRF_SITE = $(call github,nandra,libiqrf,$(LIBIQRF_VERSION))
|
||||
LIBIQRF_INSTALL_STAGING = YES
|
||||
LIBIQRF_DEPENDENCIES = libusb
|
||||
LIBIQRF_LICENSE = LGPLv2.1+
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user