summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/drivers/mrc_cache/Makefile.inc11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/drivers/mrc_cache/Makefile.inc b/src/drivers/mrc_cache/Makefile.inc
index 819d637e4f..7c8732fb73 100644
--- a/src/drivers/mrc_cache/Makefile.inc
+++ b/src/drivers/mrc_cache/Makefile.inc
@@ -1,6 +1,7 @@
+ifeq ($(CONFIG_CACHE_MRC_SETTINGS),y)
-romstage-$(CONFIG_CACHE_MRC_SETTINGS) += mrc_cache.c
-ramstage-$(CONFIG_CACHE_MRC_SETTINGS) += mrc_cache.c
+romstage-y += mrc_cache.c
+ramstage-y += mrc_cache.c
# Create and add the MRC cache to the cbfs image
ifneq ($(CONFIG_CHROMEOS),y)
@@ -9,8 +10,10 @@ $(obj)/mrc.cache: $(obj)/config.h
bs=$(shell printf "%d" $(CONFIG_MRC_SETTINGS_CACHE_SIZE) ) | \
tr '\000' '\377' > $@
-cbfs-files-$(CONFIG_CACHE_MRC_SETTINGS) += mrc.cache
+cbfs-files-y += mrc.cache
mrc.cache-file := $(obj)/mrc.cache
mrc.cache-position := $(CONFIG_MRC_SETTINGS_CACHE_BASE)
mrc.cache-type := mrc_cache
-endif
+endif # ifneq ($(CONFIG_CHROMEOS),y)
+
+endif # ifeq ($(CONFIG_CACHE_MRC_SETTINGS),y)