summaryrefslogtreecommitdiffstats
path: root/Makefile.inc
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@chromium.org>2012-08-16 14:05:42 -0700
committerRonald G. Minnich <rminnich@gmail.com>2012-11-13 00:24:26 +0100
commit5b635795cc6b104e4d30218817c9b0dc80e4c1c3 (patch)
tree0a91ef51ae31db28ba9239458e2c9f47ebc5f0a1 /Makefile.inc
parentcd986c049c28f06e88dd27d361f03b2ad61ddfba (diff)
downloadcoreboot-staging-5b635795cc6b104e4d30218817c9b0dc80e4c1c3.zip
coreboot-staging-5b635795cc6b104e4d30218817c9b0dc80e4c1c3.tar.gz
SandyBridge/IvyBridge: Add IFD and ME firmware automatically
Right now coreboot's build process produces images that are not booting on actual hardware because they are smaller than the actual flash device and also don't have an IFD nor an ME firmware in them. In order to produce bootable images, you needed a wrapper script / extra step until now. With this change, the resulting coreboot.rom is actually bootable. Change-Id: I82714069fb004d4badc41698747a704bd9fed4da Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/1771 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile.inc b/Makefile.inc
index 2a5e821..4e31e83 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -164,7 +164,7 @@ CFLAGS += -Werror
endif
CFLAGS += -fno-common -ffreestanding -fno-builtin -fomit-frame-pointer
-additional-dirs := $(objutil)/cbfstool $(objutil)/romcc $(objutil)/options
+additional-dirs := $(objutil)/cbfstool $(objutil)/romcc $(objutil)/ifdtool $(objutil)/options
#######################################################################
# generate build support files
@@ -222,6 +222,11 @@ $(ROMCC): $(top)/util/romcc/romcc.c
@# http://www.coreboot.org/pipermail/coreboot/2010-February/055825.html
$(HOSTCC) -g $(STACK) -Wall -o $@ $<
+IFDTOOL:=$(objutil)/ifdtool/ifdtool
+$(IFDTOOL): $(top)/util/ifdtool/ifdtool.c
+ @printf " HOSTCC $(subst $(obj)/,,$(@))\n"
+ $(HOSTCC) $(HOSTCFLAGS) -o $@ $<
+
#######################################################################
# needed objects that every mainboard uses
# Creation of these is architecture and mainboard independent
OpenPOWER on IntegriCloud