summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2012-05-24 21:39:12 +0000
committerVincent Palatin <vpalatin@chromium.org>2012-05-24 23:34:01 +0000
commit304d207117bb82db7f38303ba402c6f1be1112a8 (patch)
tree49e832bffd61dcd981c856237dabdf13424beb0f /Makefile.rules
parentb0fe45560828542ec3dd129db7d9cf59e92349d4 (diff)
downloadchrome-ec-304d207117bb82db7f38303ba402c6f1be1112a8.tar.gz
Split communication functions from host tools
Preparatory work to re-use the tools on ARM boards using I2C communications. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BUG=None TEST=make BOARD=link && make BOARD=bds && make BOard=DAISY Change-Id: I31d41f30c3231a4a9349b939bf6bba871ed4c383
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.rules b/Makefile.rules
index ba8574d842..c36cda2f06 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -37,7 +37,7 @@ cmd_elf = $(LD) $(LDFLAGS) $(objs) -o $@ -T $< -Map $(out)/$*.map
cmd_c_to_o = $(CC) $(CFLAGS) -MMD -MF $@.d -c $< -o $@
cmd_c_to_build = $(BUILDCC) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) \
-MMD -MF $@.d $< -o $@
-cmd_c_to_host = $(HOSTCC) $(HOST_CFLAGS) -MMD -MF $@.d $< -o $@
+cmd_c_to_host = $(HOSTCC) $(HOST_CFLAGS) -MMD -MF $@.d $^ -o $@
cmd_qemu = ./util/run_qemu_test --image=build/$(BOARD)/$*/$*.bin test/$*.py \
$(silent)
cmd_version = ./util/getversion.sh > $@
@@ -118,7 +118,7 @@ $(out)/ec_version.h: $(filter-out $(out)/common/version.o,$(objs))
$(build-utils): $(out)/%:%.c
$(call quiet,c_to_build,BUILDCC)
-$(host-utils): $(out)/%:%.c
+$(host-utils): $(out)/%:%.c $(foreach u,$(host-util-common),util/$(u).c)
$(call quiet,c_to_host,HOSTCC )
.PHONY: clean