Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ OBJDUMP=$(CROSS_PREFIX)objdump
STRIP=$(CROSS_PREFIX)strip
CPP=cpp
PYTHON=python3
CLANG=clang

# Source files
src-y =
Expand Down Expand Up @@ -66,7 +67,7 @@ $(OUT)%.o: %.c $(OUT)autoconf.h

$(OUT)%.ld: %.lds.S $(OUT)autoconf.h
@echo " Preprocessing $@"
$(Q)$(CPP) -I$(OUT) -P -MD -MT $@ $< -o $@
$(Q)$(CLANG) -I$(OUT) -P -MD -MT $@ -S $< -o $@

$(OUT)klipper.elf: $(OBJS_klipper.elf)
@echo " Linking $@"
Expand Down
2 changes: 1 addition & 1 deletion src/rp2040/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ $(OUT)stage2.o: lib/pico-sdk/$(MCU)/boot_stage2/$(STAGE2_FILE) $(OUT)autoconf.h
# Binary output file rules when using stage2
$(OUT)lib/elf2uf2/elf2uf2: lib/elf2uf2/main.cpp
@echo " Building $@"
$(Q)g++ -g -O -Ilib/pico-sdk $< -o $@
$(Q)g++ -g -O -std=c++11 -Ilib/pico-sdk $< -o $@

$(OUT)klipper.uf2: $(OUT)klipper.elf $(OUT)lib/elf2uf2/elf2uf2
@echo " Creating uf2 file $@"
Expand Down