summaryrefslogtreecommitdiff
path: root/src/drivers/mrc_cache/Makefile.inc
blob: 7c8732fb730373f786167f3b537aa5be9b7854d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
ifeq ($(CONFIG_CACHE_MRC_SETTINGS),y)

romstage-y += mrc_cache.c
ramstage-y += mrc_cache.c

# Create and add the MRC cache to the cbfs image
ifneq ($(CONFIG_CHROMEOS),y)
$(obj)/mrc.cache: $(obj)/config.h
	dd if=/dev/zero count=1 \
	bs=$(shell printf "%d" $(CONFIG_MRC_SETTINGS_CACHE_SIZE) ) | \
	tr '\000' '\377' > $@

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 # ifneq ($(CONFIG_CHROMEOS),y)

endif # ifeq ($(CONFIG_CACHE_MRC_SETTINGS),y)