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

21
package/libpri/Config.in Normal file
View File

@@ -0,0 +1,21 @@
config BR2_PACKAGE_LIBPRI
bool "libpri"
depends on BR2_USE_MMU # fork()
depends on BR2_LINUX_KERNEL
depends on BR2_TOOLCHAIN_HAS_THREADS
select BR2_PACKAGE_DAHDI_LINUX
select BR2_PACKAGE_DAHDI_TOOLS
help
libpri is an open source library that encapsulates the
protocols used to communicate over ISDN Primary Rate
Interfaces (T1, E1, J1).
http://www.asterisk.org/downloads/libpri
comment "libpri needs a Linux kernel to be built"
depends on BR2_USE_MMU
depends on !BR2_LINUX_KERNEL
comment "libpri needs a toolchain w/ threads"
depends on BR2_USE_MMU
depends on !BR2_TOOLCHAIN_HAS_THREADS

View File

@@ -0,0 +1,7 @@
# sha1 and sha256 from http://downloads.asterisk.org/pub/telephony/libpri/releases/
sha1 8440007477ebf131020afb00f57672b108b4db2c libpri-1.6.0.tar.gz
sha256 7225ea7ec334a115f9dc08e71f55589c38cb4e00b13964cd2f08cc4e6123e3f6 libpri-1.6.0.tar.gz
# License files, locally calculated
sha256 fa5fc1d1eec39532ea517518eeefd7b6e3c14341a55e5880a0e2a49eee47a5b7 LICENSE
sha256 53b8b3aea4faec23fd9dbd4936044aca80c9b00343e6e58ee3303cec19512b33 README

53
package/libpri/libpri.mk Normal file
View File

@@ -0,0 +1,53 @@
################################################################################
#
# libpri
#
################################################################################
LIBPRI_VERSION = 1.6.0
LIBPRI_SITE = http://downloads.asterisk.org/pub/telephony/libpri/releases
LIBPRI_LICENSE = GPL-2.0 with OpenH323 exception
LIBPRI_LICENSE_FILES = LICENSE README
LIBPRI_DEPENDENCIES = dahdi-linux dahdi-tools
LIBPRI_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)
LIBPRI_LIBS = libpri.a
LIBPRI_UTILS += pritest rosetest testprilib
define LIBPRI_INSTALL_A
$(INSTALL) -D -m 0644 $(@D)/libpri.a $(1)/usr/lib/libpri.a
endef
endif
ifneq ($(BR2_STATIC_LIBS),y)
LIBPRI_LIBS += libpri.so.1.4
LIBPRI_UTILS += pridump
define LIBPRI_INSTALL_SO
$(INSTALL) -D -m 0644 $(@D)/libpri.so.1.4 $(1)/usr/lib/libpri.so.1.4
ln -sf libpri.so.1.4 $(1)/usr/lib/libpri.so
endef
endif
define LIBPRI_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE1) $(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS) -fPIC" -C $(@D) \
$(LIBPRI_LIBS) $(LIBPRI_UTILS)
endef
define LIBPRI_INSTALL_STAGING_CMDS
$(call LIBPRI_INSTALL_A,$(STAGING_DIR))
$(call LIBPRI_INSTALL_SO,$(STAGING_DIR))
$(INSTALL) -D -m 0644 $(@D)/libpri.h $(STAGING_DIR)/usr/include/libpri.h
endef
define LIBPRI_INSTALL_TARGET_CMDS
$(foreach u,$(LIBPRI_UTILS),\
$(INSTALL) -D -m 0755 $(@D)/$(u) $(TARGET_DIR)/usr/sbin/$(u)$(sep))
$(call LIBPRI_INSTALL_SO,$(TARGET_DIR))
endef
$(eval $(generic-package))