diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2016-07-10 21:38:11 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-07-10 21:46:57 -0400 |
commit | b0b2e9c4aaa793cf38aa26646f2130cca2f49d83 (patch) | |
tree | adc3d27b61da7211888ba013c4e96138b5e11d22 /Makefile | |
parent | 409904c61c750dd9b2ae9a4e8b3e997c06676b72 (diff) | |
download | kutter-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>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 $@ |