src/: Replace GPL boilerplate with SPDX headers
[coreboot.git] / src / commonlib / storage / Makefile.inc
blobda56354ff1ae66d36abea35af5f9c38b08bb2c6d
2 # This file is part of the coreboot project.
4 # SPDX-License-Identifier: GPL-2.0-only
6 ifeq ($(CONFIG_COMMONLIB_STORAGE),y)
8 bootblock-y += sd_mmc.c
9 bootblock-y += storage.c
11 verstage-y += sd_mmc.c
12 verstage-y += storage.c
14 romstage-y += sd_mmc.c
15 romstage-y += storage.c
17 postcar-y += sd_mmc.c
18 postcar-y += storage.c
20 ramstage-y += sd_mmc.c
21 ramstage-y += storage.c
23 # Determine the type of controller being used
24 ifeq ($(CONFIG_SDHCI_CONTROLLER),y)
25 bootblock-y += pci_sdhci.c
26 bootblock-y += sdhci.c
27 bootblock-$(CONFIG_SDHCI_ADMA_IN_BOOTBLOCK) += sdhci_adma.c
28 bootblock-y += sdhci_display.c
30 verstage-y += pci_sdhci.c
31 verstage-y += sdhci.c
32 verstage-$(CONFIG_SDHCI_ADMA_IN_VERSTAGE) += sdhci_adma.c
33 verstage-y += sdhci_display.c
35 romstage-y += pci_sdhci.c
36 romstage-y += sdhci.c
37 romstage-$(CONFIG_SDHCI_ADMA_IN_ROMSTAGE) += sdhci_adma.c
38 romstage-y += sdhci_display.c
40 postcar-y += pci_sdhci.c
41 postcar-y += sdhci.c
42 postcar-y += sdhci_adma.c
43 postcar-y += sdhci_display.c
45 ramstage-y += pci_sdhci.c
46 ramstage-y += sdhci.c
47 ramstage-y += sdhci_adma.c
48 ramstage-y += sdhci_display.c
50 # Determine if the bounce buffer is necessary
51 ifeq ($(CONFIG_SDHCI_BOUNCE_BUFFER),y)
52 bootblock-y += bouncebuf.c
53 verstage-y += bouncebuf.c
54 romstage-y += bouncebuf.c
55 postcar-y += bouncebuf.c
56 ramstage-y += bouncebuf.c
57 endif # CONFIG_SDHCI_BOUNCE_BUFFER
59 endif # CONFIG_SDHCI_CONTROLLER
61 # Determine if MultiMediaCards or embedded MMC devices are supported
62 ifeq ($(CONFIG_COMMONLIB_STORAGE_MMC),y)
63 bootblock-y += mmc.c
64 verstage-y += mmc.c
65 romstage-y += mmc.c
66 postcar-y += mmc.c
67 ramstage-y += mmc.c
68 endif # CONFIG_COMMONLIB_STORAGE_MMC
70 # Determine if Secure Digital cards are supported
71 ifeq ($(CONFIG_COMMONLIB_STORAGE_SD),y)
72 bootblock-y += sd.c
73 verstage-y += sd.c
74 romstage-y += sd.c
75 postcar-y += sd.c
76 ramstage-y += sd.c
77 endif # CONFIG_COMMONLIB_STORAGE_SD
79 # Determine if erase operations are supported
80 ifeq ($(CONFIG_STORAGE_ERASE),y)
81 bootblock-$(CONFIG_STORAGE_EARLY_ERASE) += storage_erase.c
82 verstage-$(CONFIG_STORAGE_EARLY_ERASE) += storage_erase.c
83 romstage-y += storage_erase.c
84 postcar-y += storage_erase.c
85 ramstage-y += storage_erase.c
86 endif # CONFIG_STORAGE_ERASE
88 # Determine if write operations are supported
89 ifeq ($(CONFIG_STORAGE_WRITE),y)
90 bootblock-$(CONFIG_STORAGE_EARLY_WRITE) += storage_write.c
91 verstage-$(CONFIG_STORAGE_EARLY_WRITE) += storage_write.c
92 romstage-y += storage_write.c
93 postcar-y += storage_write.c
94 ramstage-y += storage_write.c
95 endif # CONFIG_STORAGE_WRITE
97 endif # CONFIG_COMMONLIB_STORAGE