From b0b2e9c4aaa793cf38aa26646f2130cca2f49d83 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 10 Jul 2016 21:38:11 -0400 Subject: [PATCH] build: Avoid objcopy --dump-section flag Commit da305e6b changed the objcopy command to use the --dump-section flag. However, the 2.24 version of avr-objcopy (which is common on raspbian installs) does not support this flag. Avoid using --dump-section and continue to use the -j option instead. Signed-off-by: Kevin O'Connor --- Makefile | 2 +- src/declfunc.lds.S | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Makefile b/Makefile index a9f21aa5..fedc4d56 100644 --- a/Makefile +++ b/Makefile @@ -87,7 +87,7 @@ $(OUT)klipper.o: $(patsubst %.c, $(OUT)src/%.o,$(src-y)) $(OUT)declfunc.lds $(OUT)compile_time_request.o: $(OUT)klipper.o ./scripts/buildcommands.py @echo " Building $@" - $(Q)$(OBJCOPY) --dump-section '.compile_time_request'=$(OUT)klipper.o.compile_time_request $< + $(Q)$(OBJCOPY) -j '.compile_time_request' -O binary $< $(OUT)klipper.o.compile_time_request $(Q)$(PYTHON) ./scripts/buildcommands.py $(OUT)klipper.o.compile_time_request $(OUT)autoconf.h $(OUT)compile_time_request.c $(Q)$(CC) $(CFLAGS) -c $(OUT)compile_time_request.c -o $@ diff --git a/src/declfunc.lds.S b/src/declfunc.lds.S index 2226300c..1f178643 100644 --- a/src/declfunc.lds.S +++ b/src/declfunc.lds.S @@ -31,7 +31,4 @@ SECTIONS .compile_time_request.parsers 0 (INFO) : { *( .compile_time_request.parsers ) } - .compile_time_request (INFO) : { - *( .compile_time_request ) - } }