aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-07-10 21:38:11 -0400
committerKevin O'Connor <kevin@koconnor.net>2016-07-10 21:46:57 -0400
commitb0b2e9c4aaa793cf38aa26646f2130cca2f49d83 (patch)
treeadc3d27b61da7211888ba013c4e96138b5e11d22
parent409904c61c750dd9b2ae9a4e8b3e997c06676b72 (diff)
downloadkutter-b0b2e9c4aaa793cf38aa26646f2130cca2f49d83.tar.gz
kutter-b0b2e9c4aaa793cf38aa26646f2130cca2f49d83.tar.xz
kutter-b0b2e9c4aaa793cf38aa26646f2130cca2f49d83.zip
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 <kevin@koconnor.net>
-rw-r--r--Makefile2
-rw-r--r--src/declfunc.lds.S3
2 files changed, 1 insertions, 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 )
- }
}