diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2016-06-10 21:11:04 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-06-14 14:00:57 -0400 |
commit | da305e6b61efab8c16d324723859b318fb1979a9 (patch) | |
tree | 9ad776c48dc96fd85b22be3327bbba662b778b66 /Makefile | |
parent | 343de9c454e0f68a1ff5a12d745575b2e5150897 (diff) | |
download | kutter-da305e6b61efab8c16d324723859b318fb1979a9.tar.gz kutter-da305e6b61efab8c16d324723859b318fb1979a9.tar.xz kutter-da305e6b61efab8c16d324723859b318fb1979a9.zip |
build: Update declfuncs.lds.S to only use progmem sections on AVR
On non-avr platforms the declfunc stuff still needs to be in the
binary in a rodata section.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -39,7 +39,7 @@ CFLAGS-y += -flto -fwhole-program LDFLAGS-y := -Wl,--gc-sections -CPPFLAGS = -P -MD -MT $@ +CPPFLAGS = -I$(OUT) -P -MD -MT $@ CFLAGS = $(CFLAGS-y) LDFLAGS = $(LDFLAGS-y) @@ -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) -j '.compile_time_request' -O binary $< $(OUT)klipper.o.compile_time_request + $(Q)$(OBJCOPY) --dump-section '.compile_time_request'=$(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 $@ |