From c7702536ed7b9d80058e2d41c396828c3a1ac20b Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Sat, 10 Sep 2016 14:01:08 +0200 Subject: [PATCH] Makefile.inc: build ifdtool using its own makefile Change-Id: I67c73c101b928d104e231064e05d367bf9584730 Signed-off-by: Alexander Couzens Reviewed-on: https://review.coreboot.org/16571 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- Makefile.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile.inc b/Makefile.inc index 0caab91fb3..21b07e666c 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -429,9 +429,10 @@ $(ROMCC_BIN): $(top)/util/romcc/romcc.c $(HOSTCC) -g $(STACK) -Wall -o $@ $< IFDTOOL:=$(objutil)/ifdtool/ifdtool -$(IFDTOOL): $(top)/util/ifdtool/ifdtool.c - @printf " HOSTCC $(subst $(obj)/,,$(@))\n" - $(HOSTCC) $(HOSTCFLAGS) -o $@ $< +$(IFDTOOL): + @printf " Compile IFDTOOL\n" + $(MAKE) -C $(top)/util/ifdtool + cp -a $(top)/util/ifdtool/ifdtool $@ IFDFAKE:=$(objutil)/ifdfake/ifdfake $(IFDFAKE): $(top)/util/ifdfake/ifdfake.c