Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
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.
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

View File

@@ -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 definition.
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

View File

@@ -0,0 +1,50 @@
From 1c78aa3541f730e9624504168fb0e1f413e5cbb8 Mon Sep 17 00:00:00 2001
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Date: Fri, 2 Aug 2024 19:28:36 +0200
Subject: [PATCH] m4/ccforbuild.m4: include <stdlib.h> in test program
The GMP_PROG_CC_FOR_BUILD_WORKS and GMP_PROG_EXEEXT_FOR_BUILD macros
do various checks to verify if the host compiler works, but their test
programs lack the inclusion of <stdlib.h>, needed for exit(). This
causes a build failure with gcc 14.x:
conftest.c: In function 'main':
conftest.c:4:3: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
4 | exit(0);
which then causes the configure script to think that the host compiler
does not work:
configure: error: Specified CC_FOR_BUILD doesn't seem to work
so let's include <stdlib.h> to fix this issue.
Upstream: https://sourceforge.net/p/bcusdk/patches/4/
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
m4/ccforbuild.m4 | 2 ++
1 file changed, 2 insertions(+)
diff --git a/m4/ccforbuild.m4 b/m4/ccforbuild.m4
index a466cab..389deaa 100644
--- a/m4/ccforbuild.m4
+++ b/m4/ccforbuild.m4
@@ -66,6 +66,7 @@ AC_DEFUN([GMP_PROG_CC_FOR_BUILD_WORKS],
# remove anything that might look like compiler output to our "||" expression
rm -f conftest* a.out b.out a.exe a_out.exe
cat >conftest.c <<EOF
+#include <stdlib.h>
int
main ()
{
@@ -140,6 +141,7 @@ AC_DEFUN([GMP_PROG_EXEEXT_FOR_BUILD],
AC_CACHE_CHECK([for build system executable suffix],
gmp_cv_prog_exeext_for_build,
[cat >conftest.c <<EOF
+#include <stdlib.h>
int
main ()
{
--
2.45.2

View File

@@ -0,0 +1,40 @@
From 8402c1ffccb2eeb47581d2d80b81e94433cdacb7 Mon Sep 17 00:00:00 2001
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Date: Fri, 2 Aug 2024 19:35:02 +0200
Subject: [PATCH] configure.in: replace obsolete AM_PATH_XML2 by
PKG_CHECK_MODULES
According to the libxml2 code:
AM_PATH_XML2 is deprecated, use PKG_CHECK_MODULES instead
See:
https://gitlab.gnome.org/GNOME/libxml2/-/blob/master/libxml.m4
Upstream: https://sourceforge.net/p/bcusdk/patches/5/
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
configure.in | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/configure.in b/configure.in
index 7f3a8bd..82176d9 100644
--- a/configure.in
+++ b/configure.in
@@ -81,7 +81,11 @@ AM_CONDITIONAL(HAVE_ONLYEIBD, test x$onlyeibd = xtrue)
if test x$onlyeibd = xfalse ; then
-AM_PATH_XML2(2.6.16,,[AC_MSG_ERROR([limxml2 not found])])
+PKG_CHECK_MODULES(XML, [libxml-2.0 >= 2.6.16], [], [AC_MSG_ERROR([limxml2 not found])])
+XML_CPPFLAGS=$XML_CFLAGS
+AC_SUBST(XML_CPPFLAGS)
+AC_SUBST(XML_LIBS)
+
AC_PATH_PROG(TAS,[m68hc05-as],,[$PATH:$bindir:$prefix/bin])
AC_PATH_PROG(TLD,[m68hc05-ld],,[$PATH:$bindir:$prefix/bin])
AC_PATH_PROG(TAR,[m68hc05-ar],,[$PATH:$bindir:$prefix/bin])
--
2.45.2

View File

@@ -0,0 +1,70 @@
From 7fe256a6e3b28e3ca5c163e38844c9e7c05099c1 Mon Sep 17 00:00:00 2001
From: Thomas Perale <thomas.perale@mind.be>
Date: Tue, 12 Aug 2025 18:43:26 +0200
Subject: [PATCH] include unistd for close declaration
When using gcc-14 the compilation fails with the following error
message:
```
close.c: In function 'EIBClose':
close.c:38:3: error: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration]
38 | close (con->fd);
| ^~~~~
| pclose
openlocal.c: In function 'EIBSocketLocal':
openlocal.c:57:7: error: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration]
57 | close (con->fd);
| ^~~~~
| pclose
make[6]: *** [Makefile:611: close.lo] Error 1
```
This patch include <unistd.h> to include the declaration of close.
Upstream: https://sourceforge.net/p/bcusdk/patches/6/
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
---
eibd/client/c/close.c | 1 +
eibd/client/c/openlocal.c | 1 +
eibd/client/c/openremote.c | 1 +
3 files changed, 3 insertions(+)
diff --git a/eibd/client/c/close.c b/eibd/client/c/close.c
index 900fcd8..f7508bb 100644
--- a/eibd/client/c/close.c
+++ b/eibd/client/c/close.c
@@ -24,6 +24,7 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#include <unistd.h>
#include "eibclient-int.h"
diff --git a/eibd/client/c/openlocal.c b/eibd/client/c/openlocal.c
index c7fd5d7..df2e9f9 100644
--- a/eibd/client/c/openlocal.c
+++ b/eibd/client/c/openlocal.c
@@ -27,6 +27,7 @@
#include <sys/socket.h>
#include <sys/un.h>
+#include <unistd.h>
#include "eibclient-int.h"
diff --git a/eibd/client/c/openremote.c b/eibd/client/c/openremote.c
index 24d7ecd..9b2be39 100644
--- a/eibd/client/c/openremote.c
+++ b/eibd/client/c/openremote.c
@@ -30,6 +30,7 @@
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <netdb.h>
+#include <unistd.h>
#include "eibclient-int.h"
--
2.50.1

25
package/bcusdk/Config.in Normal file
View 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

View File

@@ -0,0 +1,3 @@
# Locally calculated
sha256 014cdaafc36f223c584b39ae5d698dd037a8e15aba4e78a2e531b51ff1331304 bcusdk_0.0.5.tar.gz
sha256 32b1062f7da84967e7019d01ab805935caa7ab7321a7ced0e30ebe75e5df1670 COPYING

41
package/bcusdk/bcusdk.mk Normal file
View File

@@ -0,0 +1,41 @@
################################################################################
#
# 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
# 0003-m4-ccforbuild.m4-include-stdlib.h-in-test-program.patch
# 0004-configure.in-replace-obsolete-AM_PATH_XML2-by-PKG_CH.patch
BCUSDK_AUTORECONF = 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
# host-pkgconf is only needed because of autoreconf
BCUSDK_DEPENDENCIES = libpthsem host-pkgconf
ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y)
BCUSDK_DEPENDENCIES += argp-standalone $(TARGET_NLS_DEPENDENCIES)
BCUSDK_CONF_ENV += LIBS=$(TARGET_NLS_LIBS)
endif
define BCUSDK_REMOVE_EXAMPLES
$(RM) -rf $(TARGET_DIR)/usr/share/bcusdk
endef
BCUSDK_POST_INSTALL_TARGET_HOOKS += BCUSDK_REMOVE_EXAMPLES
$(eval $(autotools-package))