diff options
author | Randall Spangler <rspangler@chromium.org> | 2011-12-13 14:15:01 -0800 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2011-12-13 14:34:29 -0800 |
commit | 3d2efff5188964b473c6af5c41106615c2c29de3 (patch) | |
tree | 500f103b46892250f1e56b115996e1bb1143f698 /Makefile.rules | |
parent | caba91fe2797f2e7a2792a151d337c20d080a950 (diff) | |
download | chrome-ec-3d2efff5188964b473c6af5c41106615c2c29de3.tar.gz |
Add ec_uartd build-side utility
This provides a pty for the EC UART channel on the BD-ICDI-B FTDI
daughtercard for EC debugging.
Signed-off-by: Randall Spangler <rspangler@chromium.org>
BUG=none
TEST=make && build/bds/util/ec_uartd (with EC attached to FTDI board)
Change-Id: I51fe50d0da6345962affb860b923425197a04fa1
Diffstat (limited to 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile.rules b/Makefile.rules index 888425daa1..bd2472e22c 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -11,7 +11,8 @@ build-utils := $(foreach u,$(build-util-bin),$(out)/util/$(u)) host-utils := $(foreach u,$(host-util-bin),$(out)/util/$(u)) # Create output directories if necessary -_dir_create := $(foreach d,$(dirs),$(shell [ -d $(out)/$(d) ] || mkdir -p $(out)/$(d))) +_dir_create := $(foreach d,$(dirs),$(shell [ -d $(out)/$(d) ] || \ + mkdir -p $(out)/$(d))) section = $(subst .,,$(suffix $(1))) @@ -29,9 +30,11 @@ cmd_elf_to_flat = $(OBJCOPY) -O binary $^ $@ cmd_elf_to_dis = $(OBJDUMP) -D $< > $@ 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) -MMD -MF $@.d $< -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_qemu = ./util/run_qemu_test --image=build/$(BOARD)/$*/$*.bin test/$*.py $(silent) +cmd_qemu = ./util/run_qemu_test --image=build/$(BOARD)/$*/$*.bin test/$*.py \ + $(silent) .PHONY: all tests utils |