Commit 2f4eb675 authored by Damien George's avatar Damien George
Browse files

leon: Add preprocess target to leon-for-tests Makefile.

To generate .pp files for static analysis.
parent b4c7f49d
......@@ -73,4 +73,9 @@ $(BUILD)/firmware.tab: $(BUILD)/firmware.elf
$(ECHO) "TAB $@"
$(Q)$(OBJDUMP) --syms $< > $@
# Preprocess all the source files, producing .pp output in the $(BUILD) dir.
# We first build all the object files so that qstrs etc are generated correctly.
PREPROC_IGNORE = py/emitn%.pp leon-common/sparcjmp.pp leon-common/gchelper.pp
preprocess: $(OBJ) $(filter-out $(addprefix $(BUILD)/,$(PREPROC_IGNORE)),$(OBJ:.o=.pp))
include ../py/mkrules.mk
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment