first commit: base 2024.08

Signed-off-by: maoxiaochuan <maoxiaochuan@loongson.cn>
This commit is contained in:
tao89959
2025-02-12 17:59:29 +08:00
committed by maoxiaochuan
commit f3217a7708
14356 changed files with 572894 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
config BR2_PACKAGE_LIBSS7
bool "libss7"
depends on BR2_USE_MMU # dahdi-tools <- perl
depends on BR2_LINUX_KERNEL
depends on BR2_TOOLCHAIN_HAS_THREADS
select BR2_PACKAGE_DAHDI_LINUX
select BR2_PACKAGE_DAHDI_TOOLS
help
libss7 is an open source library that encapsulates the
protocols used to communicate using Signaling System 7
over ISDN (T1, E1).
http://www.asterisk.org/downloads/libss7
comment "libss7 needs a Linux kernel to be built"
depends on !BR2_LINUX_KERNEL
comment "libss7 needs a toolchain w/ threads"
depends on !BR2_TOOLCHAIN_HAS_THREADS
+6
View File
@@ -0,0 +1,6 @@
# Hashes from http://downloads.asterisk.org/pub/telephony/libss7/releases/
sha1 301fd3eff4387db6407cbc72c3fec9aed5bc3860 libss7-2.0.1.tar.gz
sha256 091f1c14dcf13a094021334218cde363041816fa5b5037caee38719e4e6891c7 libss7-2.0.1.tar.gz
# License file, locally calculated
sha256 fa5fc1d1eec39532ea517518eeefd7b6e3c14341a55e5880a0e2a49eee47a5b7 LICENSE
+56
View File
@@ -0,0 +1,56 @@
################################################################################
#
# libss7
#
################################################################################
LIBSS7_VERSION = 2.0.1
LIBSS7_SITE = http://downloads.asterisk.org/pub/telephony/libss7/releases
LIBSS7_LICENSE = GPL-2.0
LIBSS7_LICENSE_FILES = LICENSE
LIBSS7_DEPENDENCIES = dahdi-linux dahdi-tools
LIBSS7_INSTALL_STAGING = YES
# The Makefile default rule will always try to generate both libraries.
# So we need to explicitly build only what we can.
ifneq ($(BR2_SHARED_LIBS),y)
LIBSS7_LIBS = libss7.a
define LIBSS7_INSTALL_A
$(INSTALL) -D -m 0644 $(@D)/libss7.a $(1)/usr/lib/libss7.a
endef
endif
ifneq ($(BR2_STATIC_LIBS),y)
LIBSS7_LIBS += libss7.so.2.0
define LIBSS7_INSTALL_SO
$(INSTALL) -D -m 0644 $(@D)/libss7.so.2.0 $(1)/usr/lib/libss7.so.2.0
ln -sf libss7.so.2.0 $(1)/usr/lib/libss7.so
endef
endif
# The Makefile erroneously looks for host headers to decide what utilities
# to build, and thus misses the test utilities. So we explicitly build them
# as they can be useful to validate that the hardware does work.
LIBSS7_UTILS = parser_debug ss7test ss7linktest
define LIBSS7_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS) -fPIC" -C $(@D) \
$(LIBSS7_LIBS) $(LIBSS7_UTILS)
endef
define LIBSS7_INSTALL_STAGING_CMDS
$(call LIBSS7_INSTALL_A,$(STAGING_DIR))
$(call LIBSS7_INSTALL_SO,$(STAGING_DIR))
$(INSTALL) -D -m 0644 $(@D)/libss7.h $(STAGING_DIR)/usr/include/libss7.h
endef
define LIBSS7_INSTALL_TARGET_CMDS
$(foreach u,$(LIBSS7_UTILS),\
$(INSTALL) -D -m 0755 $(@D)/$(u) $(TARGET_DIR)/usr/sbin/$(u)$(sep))
$(call LIBSS7_INSTALL_SO,$(TARGET_DIR))
endef
$(eval $(generic-package))