Move all to deprecated folder.
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
From 2fb04c2245167e247b95400112b5dbea12fcb206 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Wed, 30 Dec 2015 20:02:29 +0100
|
||||
Subject: [PATCH] hidtest: dont' use a C++ source file, since it's pure C
|
||||
|
||||
This allows to build the test program with toolchains that don't have
|
||||
C++ support.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
hidtest/Makefile.am | 6 +++---
|
||||
hidtest/{hidtest.cpp => hidtest.c} | 0
|
||||
2 files changed, 3 insertions(+), 3 deletions(-)
|
||||
rename hidtest/{hidtest.cpp => hidtest.c} (100%)
|
||||
|
||||
diff --git a/hidtest/Makefile.am b/hidtest/Makefile.am
|
||||
index d278644..5f52c3f 100644
|
||||
--- a/hidtest/Makefile.am
|
||||
+++ b/hidtest/Makefile.am
|
||||
@@ -4,17 +4,17 @@ AM_CPPFLAGS = -I$(top_srcdir)/hidapi/
|
||||
if OS_LINUX
|
||||
noinst_PROGRAMS = hidtest-libusb hidtest-hidraw
|
||||
|
||||
-hidtest_hidraw_SOURCES = hidtest.cpp
|
||||
+hidtest_hidraw_SOURCES = hidtest.c
|
||||
hidtest_hidraw_LDADD = $(top_builddir)/linux/libhidapi-hidraw.la
|
||||
|
||||
-hidtest_libusb_SOURCES = hidtest.cpp
|
||||
+hidtest_libusb_SOURCES = hidtest.c
|
||||
hidtest_libusb_LDADD = $(top_builddir)/libusb/libhidapi-libusb.la
|
||||
else
|
||||
|
||||
# Other OS's
|
||||
noinst_PROGRAMS = hidtest
|
||||
|
||||
-hidtest_SOURCES = hidtest.cpp
|
||||
+hidtest_SOURCES = hidtest.c
|
||||
hidtest_LDADD = $(top_builddir)/$(backend)/libhidapi.la
|
||||
|
||||
endif
|
||||
diff --git a/hidtest/hidtest.cpp b/hidtest/hidtest.c
|
||||
similarity index 100%
|
||||
rename from hidtest/hidtest.cpp
|
||||
rename to hidtest/hidtest.c
|
||||
--
|
||||
2.6.4
|
||||
|
||||
16
deprecated/firmware/buildroot/package/hidapi/Config.in
Normal file
16
deprecated/firmware/buildroot/package/hidapi/Config.in
Normal file
@@ -0,0 +1,16 @@
|
||||
config BR2_PACKAGE_HIDAPI
|
||||
bool "hidapi"
|
||||
depends on BR2_PACKAGE_HAS_UDEV
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
|
||||
select BR2_PACKAGE_LIBUSB
|
||||
select BR2_PACKAGE_LIBGUDEV
|
||||
select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
|
||||
help
|
||||
HIDAPI is a multi-platform library which allows an application
|
||||
to interface with USB and Bluetooth HID-Class devices on
|
||||
Windows, Linux, and Mac OS X.
|
||||
|
||||
http://www.signal11.us/oss/hidapi/
|
||||
|
||||
comment "hidapi needs udev /dev management and a toolchain w/ threads"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_PACKAGE_HAS_UDEV
|
||||
2
deprecated/firmware/buildroot/package/hidapi/hidapi.hash
Normal file
2
deprecated/firmware/buildroot/package/hidapi/hidapi.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 33e206f5e145fc1bc6aeb55084d71b55d686533d23ad5bb762746ceba81e728b hidapi-d17db57b9d4354752e0af42f5f33007a42ef2906.tar.gz
|
||||
24
deprecated/firmware/buildroot/package/hidapi/hidapi.mk
Normal file
24
deprecated/firmware/buildroot/package/hidapi/hidapi.mk
Normal file
@@ -0,0 +1,24 @@
|
||||
################################################################################
|
||||
#
|
||||
# hidapi
|
||||
#
|
||||
################################################################################
|
||||
|
||||
# Use master version as the current stable is very old and some bugs
|
||||
# have been fixed since then.
|
||||
HIDAPI_VERSION = d17db57b9d4354752e0af42f5f33007a42ef2906
|
||||
HIDAPI_SITE = $(call github,signal11,hidapi,$(HIDAPI_VERSION))
|
||||
HIDAPI_INSTALL_STAGING = YES
|
||||
# No configure provided, so we need to autoreconf.
|
||||
HIDAPI_AUTORECONF = YES
|
||||
HIDAPI_LICENSE = GPLv3 or BSD-3c or HIDAPI license
|
||||
HIDAPI_LICENSE_FILES = LICENSE.txt LICENSE-gpl3.txt LICENSE-bsd.txt LICENSE-orig.txt
|
||||
|
||||
HIDAPI_DEPENDENCIES = libusb libgudev
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
||||
HIDAPI_DEPENDENCIES += libiconv
|
||||
HIDAPI_CONF_ENV += LIBS="-liconv"
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user