Commit 1a15e35a authored by Federico Vaga's avatar Federico Vaga

sw:fw: improve building output

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent a182bb25
......@@ -132,8 +132,16 @@ $(OBJDIR_BUILD):
$(OBJS_BUILD): | $(AUTOCONF)
$(OBJS_BUILD): | $(OBJDIR_BUILD)
$(build_output).elf: $(addprefix $(TRTL_SW)/include/mockturtle/hw/,$(WBGEN_HEADERS)) $(TRTL_LD_SCRIPT) $(OBJS_BUILD)
$(warning $(OBJS_BUILD))
$(src)/trtl-memory.ld:
@echo "" > /dev/stderr
@echo "*** Linker script file \"trtl-memory.ld\" file not found" > /dev/stderr
@echo "*** Write a \"trtl-memory.ld\" linker script with a MEMORY" > /dev/stderr
@echo "*** command that describes the target Mock Turtle CPU layout." > /dev/stderr
@echo "" > /dev/stderr
@exit 1
$(build_output).elf: $(addprefix $(TRTL_SW)/include/mockturtle/hw/,$(WBGEN_HEADERS)) $(TRTL_LD_SCRIPT) $(OBJS_BUILD) $(TRTL_LD_SCRIPT) $(src)/trtl-memory.ld
${CC} $(CFLAGS) $(LDFLAGS) -o $(build_output).elf -nostartfiles $(OBJS_BUILD) -T $(TRTL_LD_SCRIPT)
$(build_output).bin: $(build_output).elf
......@@ -154,8 +162,6 @@ $(BUILDDIR)/urv/emulate.o: urv/emulate.c
$(BUILDDIR)/%.o: %.c
${CC} $(DEPFLAGS) $(CFLAGS) $(LDFLAGS) -c $< -o $@
$(POSTCOMPILE)
$(warning $< ---- $@)
@echo ""
$(BUILDDIR)/%.o: %.S
${CC} $(DEPFLAGS) $(CFLAGS) $(LDFLAGS) -c $< -o $@
......
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