aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.inc
diff options
context:
space:
mode:
authorPaul Burton <paul.burton@imgtec.com>2014-06-14 00:09:49 +0100
committerPatrick Georgi <pgeorgi@google.com>2015-03-21 16:57:22 +0100
commitb1688caa6fa43c004af8c51502bf45dd5782fbdf (patch)
tree28369dbb447e19662e5bb655b78f2b814449351e /Makefile.inc
parentb2e465d060dafa070f140f92672cd1bf66d68f50 (diff)
downloadcoreboot-b1688caa6fa43c004af8c51502bf45dd5782fbdf.tar.gz
coreboot-b1688caa6fa43c004af8c51502bf45dd5782fbdf.tar.xz
coreboot-b1688caa6fa43c004af8c51502bf45dd5782fbdf.zip
imgtec/danube: Build BIMG boot images
Add a new utility named bimgtool, a simple tool which generates boot images in the BIMG format. This is the format the Danube boot ROM expects the user supplied code to be wrapped in, it is described by struct bimg_header in the code. This utility will be used to wrap the coreboot bootblock when building Danube targets. BUG=chrome-os-partner:31438 TEST=none yet Change-Id: I08ddb1b70d0b1feb1ffb3d62c4e5e6f07f4acdb7 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: 7fe6a9f383b79120f9ae231453d4b3a0f85b4fa7 Original-Change-Id: I63b9f5e09cd1f12765317b38e2a0dd033cdd6d39 Original-Signed-off-by: Paul Burton <paul.burton@imgtec.com> Original-Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/207975 Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/8768 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile.inc b/Makefile.inc
index 41c5778ab..bf1b95a1d 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -265,10 +265,9 @@ else
CFLAGS_common += -Os
endif
-
additional-dirs := $(objutil)/cbfstool $(objutil)/romcc $(objutil)/ifdtool \
$(objutil)/ifdfake $(objutil)/options $(objutil)/fletcher \
- $(objutil)/cbootimage
+ $(objutil)/cbootimage $(objutil)/bimgtool
#######################################################################
# generate build support files
@@ -333,6 +332,11 @@ CBOOTIMAGE:=$(objutil)/cbootimage/cbootimage
subdirs-y += util/nvidia
+BIMGTOOL:=$(objutil)/bimgtool/bimgtool
+$(BIMGTOOL): $(top)/util/bimgtool/bimgtool.c
+ @printf " HOSTCC $(subst $(obj)/,,$(@))\n"
+ $(HOSTCC) $(HOSTCFLAGS) -o $@ $<
+
#######################################################################
# needed objects that every mainboard uses
# Creation of these is architecture and mainboard independent