diff --git a/pkg/Kconfig b/pkg/Kconfig index 50a70066d5..99234e4217 100644 --- a/pkg/Kconfig +++ b/pkg/Kconfig @@ -53,6 +53,7 @@ rsource "umorse/Kconfig" rsource "utensor/Kconfig" rsource "uwb-core/Kconfig" rsource "uwb-dw1000/Kconfig" +rsource "uzlib/Kconfig" rsource "wakaama/Kconfig" rsource "yxml/Kconfig" diff --git a/pkg/uzlib/Kconfig b/pkg/uzlib/Kconfig new file mode 100644 index 0000000000..5919182e37 --- /dev/null +++ b/pkg/uzlib/Kconfig @@ -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_UZLIB + bool "uzlib - Deflate/Zlib-compatible LZ77 compression/decompression library" + depends on TEST_KCONFIG diff --git a/pkg/uzlib/Makefile b/pkg/uzlib/Makefile new file mode 100644 index 0000000000..48dc3d7276 --- /dev/null +++ b/pkg/uzlib/Makefile @@ -0,0 +1,11 @@ +PKG_NAME=uzlib +PKG_URL=https://github.com/pfalcon/uzlib +PKG_VERSION=27e4f4c15ba30c2cfc89575159e8efb50f95037e # v2.9.5 +PKG_LICENSE=zlib + +include $(RIOTBASE)/pkg/pkg.mk + +CFLAGS += -Wno-sign-compare + +all: + $(QQ)"$(MAKE)" -C $(PKG_SOURCE_DIR)/src -f $(CURDIR)/$(PKG_NAME).mk diff --git a/pkg/uzlib/Makefile.dep b/pkg/uzlib/Makefile.dep new file mode 100644 index 0000000000..4fc0b10519 --- /dev/null +++ b/pkg/uzlib/Makefile.dep @@ -0,0 +1,2 @@ +# uzlib contains code incompatible with 8bit and 16bit architectures +FEATURES_BLACKLIST += arch_8bit arch_16bit diff --git a/pkg/uzlib/Makefile.include b/pkg/uzlib/Makefile.include new file mode 100644 index 0000000000..2573f5e561 --- /dev/null +++ b/pkg/uzlib/Makefile.include @@ -0,0 +1 @@ +INCLUDES += -I$(PKGDIRBASE)/uzlib/src diff --git a/pkg/uzlib/doc.txt b/pkg/uzlib/doc.txt new file mode 100644 index 0000000000..5a33e034a6 --- /dev/null +++ b/pkg/uzlib/doc.txt @@ -0,0 +1,11 @@ +/** + * @defgroup pkg_uzlib uzlib + * @ingroup pkg + * @brief Deflate/Zlib-compatible LZ77 compression/decompression library + * + * # License + * + * Licensed under zlib. + * + * @see https://github.com/pfalcon/uzlib + */ diff --git a/pkg/uzlib/uzlib.mk b/pkg/uzlib/uzlib.mk new file mode 100644 index 0000000000..7925b4581c --- /dev/null +++ b/pkg/uzlib/uzlib.mk @@ -0,0 +1,3 @@ +MODULE = uzlib + +include $(RIOTBASE)/Makefile.base