From 17b4cccd6f7a7bf1de72c64e1264696130581f3a Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Sat, 10 Sep 2016 14:01:08 +0200 Subject: [PATCH] UPSTREAM: Makefile.inc: build ifdtool using its own makefile BUG=None BRANCH=None TEST=None Signed-off-by: Alexander Couzens Reviewed-on: https://review.coreboot.org/16571 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth Change-Id: I67c73c101b928d104e231064e05d367bf9584730 Reviewed-on: https://chromium-review.googlesource.com/384972 Commit-Ready: Furquan Shaikh Tested-by: Furquan Shaikh Reviewed-by: Aaron Durbin --- 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