mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
pkg: add support for lz4 fast compression library
This commit is contained in:
parent
d573401319
commit
03ea09b699
@ -29,6 +29,7 @@ rsource "libfixmath/Kconfig"
|
|||||||
rsource "libhydrogen/Kconfig"
|
rsource "libhydrogen/Kconfig"
|
||||||
rsource "lora-serialization/Kconfig"
|
rsource "lora-serialization/Kconfig"
|
||||||
rsource "lvgl/Kconfig"
|
rsource "lvgl/Kconfig"
|
||||||
|
rsource "lz4/Kconfig"
|
||||||
rsource "micro-ecc/Kconfig"
|
rsource "micro-ecc/Kconfig"
|
||||||
rsource "microcoap/Kconfig"
|
rsource "microcoap/Kconfig"
|
||||||
rsource "minmea/Kconfig"
|
rsource "minmea/Kconfig"
|
||||||
|
9
pkg/lz4/Kconfig
Normal file
9
pkg/lz4/Kconfig
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# Copyright (c) 2021 Inria
|
||||||
|
#
|
||||||
|
# This file is subject to the terms and conditions of the GNU Lesser
|
||||||
|
# General Public License v2.1. See the file LICENSE in the top level
|
||||||
|
# directory for more details.
|
||||||
|
|
||||||
|
config PACKAGE_LZ4
|
||||||
|
bool "LZ4 fast compression library"
|
||||||
|
depends on TEST_KCONFIG
|
9
pkg/lz4/Makefile
Normal file
9
pkg/lz4/Makefile
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
PKG_NAME=lz4
|
||||||
|
PKG_URL=https://github.com/lz4/lz4
|
||||||
|
PKG_VERSION=d44371841a2f1728a3f36839fd4b7e872d0927d3 # v1.9.3
|
||||||
|
PKG_LICENSE=BSD
|
||||||
|
|
||||||
|
include $(RIOTBASE)/pkg/pkg.mk
|
||||||
|
|
||||||
|
all:
|
||||||
|
$(QQ)"$(MAKE)" -f $(CURDIR)/$(PKG_NAME).mk -C $(PKG_SOURCE_DIR)/lib
|
2
pkg/lz4/Makefile.dep
Normal file
2
pkg/lz4/Makefile.dep
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# lz4 cannot be built on 8bit and 16bit architectures
|
||||||
|
FEATURES_BLACKLIST += arch_8bit arch_16bit
|
1
pkg/lz4/Makefile.include
Normal file
1
pkg/lz4/Makefile.include
Normal file
@ -0,0 +1 @@
|
|||||||
|
INCLUDES += -I$(PKGDIRBASE)/lz4/lib
|
19
pkg/lz4/doc.txt
Normal file
19
pkg/lz4/doc.txt
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
/**
|
||||||
|
* @defgroup pkg_lz4 LZ4 compression library
|
||||||
|
* @ingroup pkg
|
||||||
|
* @brief LZ4 is a fast compression library
|
||||||
|
*
|
||||||
|
* # Note about memory
|
||||||
|
*
|
||||||
|
* By default, the LZ4 implementation allocates memory on the stack. This
|
||||||
|
* way compression/decompression functions are fast but this comes at the cost
|
||||||
|
* of RAM usage.
|
||||||
|
* It is important to allocated enough stack memory (at least 16384 bytes) to
|
||||||
|
* any thread using LZ4 primitives.
|
||||||
|
*
|
||||||
|
* # License
|
||||||
|
*
|
||||||
|
* Licensed under BSD 2-clause.
|
||||||
|
*
|
||||||
|
* @see https://github.com/lz4/lz4
|
||||||
|
*/
|
8
pkg/lz4/lz4.mk
Normal file
8
pkg/lz4/lz4.mk
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
MODULE = lz4
|
||||||
|
|
||||||
|
SRC := \
|
||||||
|
lz4.c \
|
||||||
|
lz4hc.c \
|
||||||
|
#
|
||||||
|
|
||||||
|
include $(RIOTBASE)/Makefile.base
|
Loading…
Reference in New Issue
Block a user