mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
From 2541ee3d709803096b17e45610ccc1404e2e5eee Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Sat, 8 Aug 2015 17:46:34 +0200
|
||||
Subject: [PATCH] fd_set requires inclusion of <sys/select.h>
|
||||
|
||||
According to POSIX.1-2001, the definition fd_set and related macros is
|
||||
in <sys/select.h>, so it should be included in files using fd_set to
|
||||
make the code compatible with all standard C libraries.
|
||||
|
||||
Submitted upstream: https://sourceforge.net/p/bcusdk/patches/3/
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
eibd/examples/common.h | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/eibd/examples/common.h b/eibd/examples/common.h
|
||||
index 51fc514..f038da1 100644
|
||||
--- a/eibd/examples/common.h
|
||||
+++ b/eibd/examples/common.h
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
+#include <sys/select.h>
|
||||
#include "eibclient.h"
|
||||
|
||||
/** unsigned char*/
|
||||
--
|
||||
2.5.0
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
From 6bd1b4958e949d83468e053c34bf6c89d14d687a Mon Sep 17 00:00:00 2001
|
||||
From: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
|
||||
Date: Fri, 25 Aug 2017 23:01:14 +0200
|
||||
Subject: [PATCH] eibd: drop local clock_gettime in USB backends
|
||||
|
||||
clock_gettime is defined locally, and calls pth_int_time, which
|
||||
in turn calls clock_gettime.
|
||||
The USB backend shouldn't overrule clock_gettime in the first place.
|
||||
This patch fixes this endless recursion by removing the local defition.
|
||||
|
||||
Signed-off-by: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
|
||||
---
|
||||
eibd/usb/linux_usbfs.c | 6 ------
|
||||
1 file changed, 6 deletions(-)
|
||||
|
||||
diff --git a/eibd/usb/linux_usbfs.c b/eibd/usb/linux_usbfs.c
|
||||
index c3ec410..957b908 100644
|
||||
--- a/eibd/usb/linux_usbfs.c
|
||||
+++ b/eibd/usb/linux_usbfs.c
|
||||
@@ -52,12 +52,6 @@ int pthread_mutex_trylock(pthread_mutex_t *mutex)
|
||||
return 0;
|
||||
}
|
||||
|
||||
-int clock_gettime(clockid_t clk_id, struct timespec *tp)
|
||||
-{
|
||||
- pth_int_time (tp);
|
||||
- return 0;
|
||||
-}
|
||||
-
|
||||
/* sysfs vs usbfs:
|
||||
* opening a usbfs node causes the device to be resumed, so we attempt to
|
||||
* avoid this during enumeration.
|
||||
--
|
||||
1.8.5.rc3
|
||||
|
||||
25
package/bcusdk/Config.in
Normal file
25
package/bcusdk/Config.in
Normal file
@@ -0,0 +1,25 @@
|
||||
config BR2_PACKAGE_BCUSDK
|
||||
bool "bcusdk"
|
||||
depends on BR2_USE_MMU # libpthsem
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
select BR2_PACKAGE_LIBPTHSEM
|
||||
select BR2_PACKAGE_ARGP_STANDALONE if BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_MUSL
|
||||
help
|
||||
A free development environment for the Bus Coupling Units of
|
||||
the European Installation Bus.
|
||||
|
||||
The European Installation Bus EIB is a home and building
|
||||
automation bus system. It is optimized for low-speed control
|
||||
applications like lighting and blinds control.
|
||||
|
||||
BCUs (Bus Coupling Units) are standardized, generic
|
||||
platforms for embedded EIB devices. They include the entire
|
||||
physical layer network interface, power supply and a
|
||||
microcontroller with an implementation of the EIB protocol
|
||||
stack stored in the ROM.
|
||||
|
||||
http://www.auto.tuwien.ac.at/~mkoegler/eib/
|
||||
|
||||
comment "bcusdk needs a toolchain w/ C++"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_INSTALL_LIBSTDCPP
|
||||
2
package/bcusdk/bcusdk.hash
Normal file
2
package/bcusdk/bcusdk.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 014cdaafc36f223c584b39ae5d698dd037a8e15aba4e78a2e531b51ff1331304 bcusdk_0.0.5.tar.gz
|
||||
34
package/bcusdk/bcusdk.mk
Normal file
34
package/bcusdk/bcusdk.mk
Normal file
@@ -0,0 +1,34 @@
|
||||
################################################################################
|
||||
#
|
||||
# bcusdk
|
||||
#
|
||||
################################################################################
|
||||
|
||||
BCUSDK_VERSION = 0.0.5
|
||||
BCUSDK_SOURCE = bcusdk_$(BCUSDK_VERSION).tar.gz
|
||||
BCUSDK_SITE = http://www.auto.tuwien.ac.at/~mkoegler/eib
|
||||
BCUSDK_LICENSE = GPL-2.0+
|
||||
BCUSDK_LICENSE_FILES = COPYING
|
||||
BCUSDK_INSTALL_STAGING = YES
|
||||
BCUSDK_CONF_OPTS = \
|
||||
--enable-onlyeibd \
|
||||
--enable-ft12 \
|
||||
--enable-pei16 \
|
||||
--enable-tpuarts \
|
||||
--enable-eibnetip \
|
||||
--enable-eibnetipserver \
|
||||
--enable-eibnetiptunnel \
|
||||
--without-pth-test \
|
||||
--with-pth=$(STAGING_DIR)/usr
|
||||
|
||||
BCUSDK_DEPENDENCIES = \
|
||||
libpthsem \
|
||||
$(if $(BR2_PACKAGE_ARGP_STANDALONE),argp-standalone)
|
||||
|
||||
define BCUSDK_REMOVE_EXAMPLES
|
||||
$(RM) -rf $(TARGET_DIR)/usr/share/bcusdk
|
||||
endef
|
||||
|
||||
BCUSDK_POST_INSTALL_TARGET_HOOKS += BCUSDK_REMOVE_EXAMPLES
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user