/ src / commonlib / Makefile.mk
Makefile.mk
 1  ## SPDX-License-Identifier: GPL-2.0-only
 2  
 3  subdirs-y += storage
 4  
 5  bootblock-y += mem_pool.c
 6  verstage-y += mem_pool.c
 7  romstage-y += mem_pool.c
 8  ramstage-y += mem_pool.c
 9  postcar-y += mem_pool.c
10  smm-y += mem_pool.c
11  
12  bootblock-y += iobuf.c
13  verstage-y += iobuf.c
14  romstage-y += iobuf.c
15  ramstage-y += iobuf.c
16  smm-y += iobuf.c
17  postcar-y += iobuf.c
18  
19  bootblock-y += region.c
20  verstage-y += region.c
21  romstage-y += region.c
22  ramstage-y += region.c
23  smm-y += region.c
24  postcar-y += region.c
25  
26  romstage-y += rational.c
27  ramstage-y += rational.c
28  
29  ramstage-$(CONFIG_PLATFORM_USES_FSP1_1) += fsp_relocate.c
30  ifeq ($(CONFIG_FSP_M_XIP),)
31  romstage-$(CONFIG_PLATFORM_USES_FSP2_0) += fsp_relocate.c
32  endif
33  ramstage-$(CONFIG_PLATFORM_USES_FSP2_0) += fsp_relocate.c
34  
35  romstage-$(CONFIG_FLATTENED_DEVICE_TREE) += device_tree.c
36  ramstage-$(CONFIG_FLATTENED_DEVICE_TREE) += device_tree.c
37  
38  bootblock-y += bsd/cbfs_private.c
39  verstage-y += bsd/cbfs_private.c
40  romstage-y += bsd/cbfs_private.c
41  postcar-y += bsd/cbfs_private.c
42  ramstage-y += bsd/cbfs_private.c
43  smm-y += bsd/cbfs_private.c
44  
45  bootblock-y += bsd/cbfs_mcache.c
46  verstage-y += bsd/cbfs_mcache.c
47  romstage-y += bsd/cbfs_mcache.c
48  postcar-y += bsd/cbfs_mcache.c
49  ramstage-y += bsd/cbfs_mcache.c
50  smm-y += bsd/cbfs_mcache.c
51  
52  decompressor-y += bsd/lz4_wrapper.c
53  bootblock-y += bsd/lz4_wrapper.c
54  verstage-y += bsd/lz4_wrapper.c
55  romstage-y += bsd/lz4_wrapper.c
56  ramstage-y += bsd/lz4_wrapper.c
57  postcar-y += bsd/lz4_wrapper.c
58  
59  all-y += list.c
60  
61  ramstage-y += sort.c
62  
63  romstage-y += bsd/elog.c
64  ramstage-y += bsd/elog.c
65  smm-y += bsd/elog.c
66  
67  decompressor-y += bsd/gcd.c
68  all-y += bsd/gcd.c
69  
70  all-y += bsd/ipchksum.c
71  
72  decompressor-y += bsd/string.c
73  smm-y += bsd/string.c
74  all-y += bsd/string.c