[Mod] First commit

This commit is contained in:
2022-10-31 22:18:58 +08:00
commit 1c8a3d9709
13090 changed files with 526733 additions and 0 deletions

View File

@ -0,0 +1,28 @@
From 2d0450bfa3fb7003098da1a7fe24c3ae140912dc Mon Sep 17 00:00:00 2001
From: Gregory Hermant <gregory.hermant@calao-systems.com>
Date: Mon, 22 Oct 2012 15:11:53 +0200
Subject: [PATCH] pthsem build on Linux 3.x host
Signed-off-by: Michael Markstaller <mm@elabnet.de>
Signed-off-by: Gregory Hermant <gregory.hermant@calao-systems.com>
---
acinclude.m4 | 2 ++
1 file changed, 2 insertions(+)
diff --git a/acinclude.m4 b/acinclude.m4
index 03b42de..fea9bc8 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -892,6 +892,8 @@ case $PLATFORM in
case "x`uname -r`" in
changequote(, )dnl
x2.[23456789]* ) ;;
+changequote(, )dnl
+ x3.* ) ;;
changequote([, ])
* ) braindead=yes ;;
esac
--
1.7.9.5

View File

@ -0,0 +1,18 @@
config BR2_PACKAGE_LIBPTHSEM
bool "libpthsem"
depends on BR2_USE_MMU # fork()
help
GNU pth is a user mode multi threading library. pthsem is an
extend version, with support for semaphores added.
http://www.auto.tuwien.ac.at/~mkoegler/pth/
if BR2_PACKAGE_LIBPTHSEM
config BR2_PACKAGE_LIBPTHSEM_COMPAT
bool "libpth compatibility"
help
This option enables the compatibility with the original
libpth library.
endif

View File

@ -0,0 +1,3 @@
# Locally calculated
sha256 4024cafdd5d4bce2b1778a6be5491222c3f6e7ef1e43971264c451c0012c5c01 pthsem_2.0.8.tar.gz
sha256 f1b95d3728077d1a3efe7fc17928b1953b1224f6caf9c528e30e570158b7520d COPYING

View File

@ -0,0 +1,37 @@
################################################################################
#
# libpthsem
#
################################################################################
LIBPTHSEM_VERSION = 2.0.8
LIBPTHSEM_SOURCE = pthsem_$(LIBPTHSEM_VERSION).tar.gz
LIBPTHSEM_SITE = http://www.auto.tuwien.ac.at/~mkoegler/pth
LIBPTHSEM_LICENSE = LGPL-2.1+
LIBPTHSEM_LICENSE_FILES = COPYING
LIBPTHSEM_AUTORECONF = YES
LIBPTHSEM_INSTALL_STAGING = YES
LIBPTHSEM_CONFIG_SCRIPTS = pthsem-config
# Force the setjmp/longjmp detection, because the test being done in
# the AC_CHECK_SJLJ macro is not cross-compilation safe: it checks the
# running kernel with 'uname -r', and checks the C library version by
# looking at /usr/include/features.h. In terms of kernel version, it
# assumes any version later than 2.2.x is fine, except that it doesn't
# recognize 4.x as a valid kernel version, recognizing such systems as
# "braindead" and therefore falling back to the 'sjljlx' value for
# ac_cv_check_sjlj. In terms of C library version, it wants
# __GLIBC_MINOR to be at least 1. Since both conditions are true for
# all Buildroot systems, we can simply force the setjmp/longjmp
# detection to ssjlj.
LIBPTHSEM_CONF_ENV += \
ac_cv_check_sjlj=ssjlj
ifeq ($(BR2_PACKAGE_LIBPTHSEM_COMPAT),y)
LIBPTHSEM_CONF_OPTS += --enable-compat
LIBPTHSEM_CONFIG_SCRIPTS += pth-config
else
LIBPTHSEM_CONF_OPTS += --disable-compat
endif
$(eval $(autotools-package))