Brandon Maier | 4b9b25d | 2023-01-12 10:27:45 -0600 | [diff] [blame] | 1 | # 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Ășn | 8509f22 | 2019-04-29 22:40:44 +0200 | [diff] [blame] | 11 | obj-y += zstd_decompress.o |
Brandon Maier | 4b9b25d | 2023-01-12 10:27:45 -0600 | [diff] [blame] | 12 | obj-y += zstd_common.o |
Marek BehĂșn | 8509f22 | 2019-04-29 22:40:44 +0200 | [diff] [blame] | 13 | |
Brandon Maier | 4b9b25d | 2023-01-12 10:27:45 -0600 | [diff] [blame] | 14 | ifeq ($(CONFIG_ZSTD_LIB_MINIFY),y) |
| 15 | ccflags-y += -DHUF_FORCE_DECOMPRESS_X1 |
| 16 | ccflags-y += -DZSTD_FORCE_DECOMPRESS_SEQUENCES_SHORT |
| 17 | ccflags-y += -DZSTD_NO_INLINE |
| 18 | ccflags-y += -DZSTD_STRIP_ERROR_STRINGS |
| 19 | ccflags-y += -DDYNAMIC_BMI2=0 |
| 20 | endif |
| 21 | |
| 22 | zstd_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 | |
| 30 | zstd_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 \ |