summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2015-09-30 08:24:01 +0200
committerPatrick Georgi <pgeorgi@google.com>2015-09-30 06:56:47 +0000
commitb20a600ba736d8d7ed3e67a9d4e001ec044faee2 (patch)
treec3509bc1f7a6db006766191456c7b183ba53e6a1
parentdd6fa93dedc402cae65a333f5dff3d3c1a12f0c6 (diff)
downloadcoreboot-b20a600ba736d8d7ed3e67a9d4e001ec044faee2.tar.xz
intel/fsp1_0: Declare microcode to be size 0 if it doesn't exist
Change-Id: Id2063fb29226dcb55fe84f680b7b9cb10313ef2b Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/11753 Tested-by: build bot (Jenkins) Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
-rw-r--r--src/drivers/intel/fsp1_0/Makefile.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/drivers/intel/fsp1_0/Makefile.inc b/src/drivers/intel/fsp1_0/Makefile.inc
index 0ec52ecd91..629a60e190 100644
--- a/src/drivers/intel/fsp1_0/Makefile.inc
+++ b/src/drivers/intel/fsp1_0/Makefile.inc
@@ -29,9 +29,13 @@ ifneq ($(cpu_microcode-objs),)
$(objgenerated)/microcode_size.h: $(obj)/cpu_microcode_blob.bin
printf "#define MICROCODE_REGION_LENGTH $(call file-size,$<)" > $@.tmp \
&& cmp $@.tmp $@ 2>/dev/null || mv $@.tmp $@
+else
+$(objgenerated)/microcode_size.h:
+ printf "#define MICROCODE_REGION_LENGTH 0" > $@.tmp \
+ && cmp $@.tmp $@ 2>/dev/null || mv $@.tmp $@
+endif
cpu_incs-$(CONFIG_PLATFORM_USES_FSP1_0) += $(objgenerated)/microcode_size.h
-endif
cpu_incs-$(CONFIG_USE_GENERIC_FSP_CAR_INC) += $(src)/drivers/intel/fsp1_0/cache_as_ram.inc
ifeq ($(CONFIG_HAVE_FSP_BIN),y)