blob: 2003e18425883589ad258adf4fc4ab1a6149e889 [file] [log] [blame]
Brandon Maier4b9b25d2023-01-12 10:27:45 -06001# SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
2# ################################################################
3# Copyright (c) Facebook, Inc.
4# All rights reserved.
5#
6# This source code is licensed under both the BSD-style license (found in the
7# LICENSE file in the root directory of this source tree) and the GPLv2 (found
8# in the COPYING file in the root directory of this source tree).
9# You may select, at your option, one of the above-listed licenses.
10# ################################################################
Marek BehĂșn8509f222019-04-29 22:40:44 +020011obj-y += zstd_decompress.o
Brandon Maier4b9b25d2023-01-12 10:27:45 -060012obj-y += zstd_common.o
Marek BehĂșn8509f222019-04-29 22:40:44 +020013
Brandon Maier4b9b25d2023-01-12 10:27:45 -060014ifeq ($(CONFIG_ZSTD_LIB_MINIFY),y)
15ccflags-y += -DHUF_FORCE_DECOMPRESS_X1
16ccflags-y += -DZSTD_FORCE_DECOMPRESS_SEQUENCES_SHORT
17ccflags-y += -DZSTD_NO_INLINE
18ccflags-y += -DZSTD_STRIP_ERROR_STRINGS
19ccflags-y += -DDYNAMIC_BMI2=0
20endif
21
22zstd_decompress-y := \
23 zstd_decompress_module.o \
24 decompress/huf_decompress.o \
25 decompress/zstd_ddict.o \
26 decompress/zstd_decompress.o \
27 decompress/zstd_decompress_block.o \
28 zstd.o \
29
30zstd_common-y := \
31 zstd_common_module.o \
32 common/debug.o \
33 common/entropy_common.o \
34 common/error_private.o \
35 common/fse_decompress.o \
36 common/zstd_common.o \