summaryrefslogtreecommitdiff
path: root/util/kconfig/Makefile
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2012-09-13 22:13:33 +0200
committerAnton Kochkov <anton.kochkov@gmail.com>2012-09-14 07:33:07 +0200
commitb3a18acb569f439dff565092d48d6517525490f6 (patch)
tree3a08b5d33e5ecb7447481fce5b6ef4d472edac3d /util/kconfig/Makefile
parent4adb19bd79df5982a58340529ee1cf423cefe8c2 (diff)
Isolate Kconfig host compiler options
This reverts commit 645f2dd5d97ffbaa80da7fbd776a08a76eb758e3. Instead of adding a special case to nvramtool to avoid it picking up Kconfig's regex.h, have the host compiler only consider util/kconfig for includes (ie. -Iutil/kconfig) for kconfig related object files. Change-Id: Ie4f97ce38cb3e911f6e6c1e5b6f86f6998d93f69 Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/1509 Tested-by: build bot (Jenkins) Reviewed-by: Zheng Bao <zheng.bao@amd.com> Reviewed-by: Anton Kochkov <anton.kochkov@gmail.com>
Diffstat (limited to 'util/kconfig/Makefile')
-rw-r--r--util/kconfig/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/kconfig/Makefile b/util/kconfig/Makefile
index 6cdc845913..75c4ff7a32 100644
--- a/util/kconfig/Makefile
+++ b/util/kconfig/Makefile
@@ -344,3 +344,5 @@ $(objk)/lxdialog/lxdialog: $(objk)/dochecklxdialog \
$(objk)/lxdialog/%.o: $(srck)/lxdialog/%.c
$(HOSTCC) $(HOSTCFLAGS) $(HOST_EXTRACFLAGS) $^ -c -o $@
+$(objk)/%.o: HOSTCFLAGS+=-I$(srck) -I$(objk)
+$(objk)/%.o: HOSTCXXFLAGS+=-I$(srck) -I$(objk)