aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-08-22 10:35:26 -0400
committerKevin O'Connor <kevin@koconnor.net>2019-08-22 10:35:26 -0400
commit69fc1e63b4c240a2e8d36736b551140db8acc08b (patch)
tree884bf739368f4881440ab57add3a4e1b213f7d0a /Makefile
parent1022729a2adbeeb985848e82bb07f7af4d079c06 (diff)
downloadkutter-69fc1e63b4c240a2e8d36736b551140db8acc08b.tar.gz
kutter-69fc1e63b4c240a2e8d36736b551140db8acc08b.tar.xz
kutter-69fc1e63b4c240a2e8d36736b551140db8acc08b.zip
Makefile: Translate null characters to newline characters in ctr requests
Store the CTR requests in compile_time_request.txt with the null characters removed. This makes it slightly easier to inspect the CTR conversions. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9bd6f9b3..37719698 100644
--- a/Makefile
+++ b/Makefile
@@ -87,8 +87,8 @@ $(OUT)%.o.ctr: $(OUT)%.o
$(OUT)compile_time_request.o: $(patsubst %.c, $(OUT)src/%.o.ctr,$(src-y)) ./scripts/buildcommands.py
@echo " Building $@"
- $(Q)cat $(patsubst %.c, $(OUT)src/%.o.ctr,$(src-y)) > $(OUT)klipper.compile_time_request
- $(Q)$(PYTHON) ./scripts/buildcommands.py -d $(OUT)klipper.dict -t "$(CC);$(AS);$(LD);$(OBJCOPY);$(OBJDUMP);$(STRIP)" $(OUT)klipper.compile_time_request $(OUT)compile_time_request.c
+ $(Q)cat $(patsubst %.c, $(OUT)src/%.o.ctr,$(src-y)) | tr '\0' '\n' > $(OUT)compile_time_request.txt
+ $(Q)$(PYTHON) ./scripts/buildcommands.py -d $(OUT)klipper.dict -t "$(CC);$(AS);$(LD);$(OBJCOPY);$(OBJDUMP);$(STRIP)" $(OUT)compile_time_request.txt $(OUT)compile_time_request.c
$(Q)$(CC) $(CFLAGS) -c $(OUT)compile_time_request.c -o $@
$(OUT)klipper.elf: $(OBJS_klipper.elf)