initial buildroot for linux 5.15

This commit is contained in:
Huan.Feng
2021-12-06 14:12:13 +08:00
parent d7767d594e
commit 7b6fc358fa
12736 changed files with 508822 additions and 0 deletions
+45
View File
@@ -0,0 +1,45 @@
config BR2_PACKAGE_LIBMDBX
bool "libmdbx"
depends on BR2_USE_MMU
depends on BR2_TOOLCHAIN_HAS_SYNC_4
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_4
help
One of the fastest compact key-value ACID database
without WAL. libmdbx has a specific set of properties
and capabilities, focused on creating unique lightweight
solutions.
libmdbx surpasses the legendary LMDB in terms of
reliability, features and performance.
https://github.com/erthink/libmdbx
if BR2_PACKAGE_LIBMDBX
config BR2_PACKAGE_LIBMDBX_TOOLS
bool "install tools"
help
Install libmdbx tools for checking, dump, restore
and show statistics of databases.
config BR2_PACKAGE_LIBMDBX_CXX
bool "C++ API"
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735
help
Enable modern C++11/14/17/20 API for libmdbx.
comment "libmdbx C++ support needs a toolchain w/ C++11, gcc >= 4.8 w/o bug#64735"
depends on !BR2_INSTALL_LIBSTDCPP || \
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 || \
BR2_TOOLCHAIN_HAS_GCC_BUG_64735
endif
comment "libmdbx needs MMU, a toolchain w/ threads, gcc >= 4.4 w/ 4-byte atomics"
depends on BR2_USE_MMU
depends on !BR2_TOOLCHAIN_HAS_THREADS || \
!BR2_TOOLCHAIN_HAS_SYNC_4 || \
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_4
+5
View File
@@ -0,0 +1,5 @@
# Hashes from: https://github.com/erthink/libmdbx/releases/
sha256 a8f2436c4d008886e044f568a22bda44329fb1c67f175d91a929ff8e2065340a libmdbx-amalgamated-0.10.3.tar.gz
# Locally calculated
sha256 310fe25c858a9515fc8c8d7d1f24a67c9496f84a91e0a0e41ea9975b1371e569 LICENSE
+42
View File
@@ -0,0 +1,42 @@
################################################################################
#
# libmdbx
#
################################################################################
LIBMDBX_VERSION = 0.10.3
LIBMDBX_SOURCE = libmdbx-amalgamated-$(LIBMDBX_VERSION).tar.gz
LIBMDBX_SITE = https://github.com/erthink/libmdbx/releases/download/v$(LIBMDBX_VERSION)
LIBMDBX_SUPPORTS_IN_SOURCE_BUILD = NO
LIBMDBX_LICENSE = OLDAP-2.8
LIBMDBX_LICENSE_FILES = LICENSE
LIBMDBX_REDISTRIBUTE = YES
LIBMDBX_STRIP_COMPONENTS = 0
LIBMDBX_INSTALL_STAGING = YES
# Set CMAKE_BUILD_TYPE to Release to remove -Werror and avoid a build failure
# with glibc < 2.12
LIBMDBX_CONF_OPTS = \
-DCMAKE_BUILD_TYPE=Release \
-DMDBX_INSTALL_MANPAGES=OFF \
-DBUILD_FOR_NATIVE_CPU=OFF \
-DMDBX_BUILD_CXX=$(if $(BR2_PACKAGE_LIBMDBX_CXX),ON,OFF) \
-DMDBX_BUILD_TOOLS=$(if $(BR2_PACKAGE_LIBMDBX_TOOLS),ON,OFF)
ifeq ($(BR2_STATIC_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
LIBMDBX_CONF_OPTS += -DMDBX_INSTALL_STATIC=ON
else
LIBMDBX_CONF_OPTS += -DMDBX_INSTALL_STATIC=OFF
endif
ifeq ($(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
LIBMDBX_CONF_OPTS += \
-DMDBX_BUILD_SHARED_LIBRARY=ON \
-DMDBX_LINK_TOOLS_NONSTATIC=ON
else
LIBMDBX_CONF_OPTS += \
-DMDBX_BUILD_SHARED_LIBRARY=OFF \
-DMDBX_LINK_TOOLS_NONSTATIC=OFF
endif
$(eval $(cmake-package))