summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2016-09-10 14:01:08 +0200
committerMartin Roth <martinroth@google.com>2016-09-12 20:04:33 +0200
commitc7702536ed7b9d80058e2d41c396828c3a1ac20b (patch)
tree8075a2f0e659b9181139b848615314bc78a5ecdb
parent746b6abea51105c97ee7106bb5d4621213ada7e7 (diff)
Makefile.inc: build ifdtool using its own makefile
Change-Id: I67c73c101b928d104e231064e05d367bf9584730 Signed-off-by: Alexander Couzens <lynxis@fe80.eu> Reviewed-on: https://review.coreboot.org/16571 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
-rw-r--r--Makefile.inc7
1 files 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