* [nvdla] initial nvdla integration * [nvdla] add firesim configs * [nvdla] re-add accidentally deleted line * [nvdla] works on master with small * [nvdla] use master branch of nvdla * [nvdla] remove extra sources * [nvdla] bump * [nvdla + ariane] bump and use insert-includes for pre-processing * [nvdla] add ci | remove target configs in FireChip | update naming * [nvdla] bump nvdla | fix ci run-tests error * [nvdla] re-enable PCWM-L error | fix/update makefile(s) * [nvdla] bump nvdla fragments in FireChip * [misc] bump tutorial patches * [chipyard] remove extra import * [nvdla] bump nvdla for pbus [ci skip] * [nvdla] update firemarshal and add nvdla workload * [nvdla] bump nvdla-workload * [nvdla] bump hw * [docs] add basic documentation * [docs] adjustments to documentation * [misc] update docs | bump firesim with recipe * [misc] disable error on warnings in verilator | bump number width to match RC * [docs] fix doc build error * [verilator] move no fail on warning to be global * [ci skip] [nvdla] bump submodule urls * [misc] move firesim specific configs into nvdla dir [ci skip] * [nvdla] fix run-tests in ci * update RC configs | bump marshal | bump nvdla-workload * [nvdla] bump nvdla-workload [ci skip] * add topology mixin to nvdla configs * update tutorial patches
38 lines
760 B
Makefile
38 lines
760 B
Makefile
GCC=riscv64-unknown-elf-gcc
|
|
OBJDUMP=riscv64-unknown-elf-objdump
|
|
CFLAGS= -std=gnu99 -O2 -fno-common -fno-builtin-printf -Wall
|
|
LDFLAGS= -static
|
|
|
|
include libgloss.mk
|
|
|
|
PROGRAMS = pwm blkdev accum charcount nic-loopback big-blkdev pingd nvdla spiflashread spiflashwrite
|
|
|
|
spiflash.img: spiflash.py
|
|
python3 $<
|
|
|
|
.DEFAULT_GOAL := default
|
|
|
|
.PHONY: default
|
|
default: $(addsuffix .riscv,$(PROGRAMS)) spiflash.img
|
|
|
|
.PHONY: dumps
|
|
dumps: $(addsuffix .dump,$(PROGRAMS))
|
|
|
|
%.o: %.S
|
|
$(GCC) $(CFLAGS) -D__ASSEMBLY__=1 -c $< -o $@
|
|
|
|
%.o: %.c mmio.h spiflash.h
|
|
$(GCC) $(CFLAGS) -c $< -o $@
|
|
|
|
%.riscv: %.o $(libgloss)
|
|
$(GCC) $(LDFLAGS) $< -o $@
|
|
|
|
%.dump: %.riscv
|
|
$(OBJDUMP) -D $< > $@
|
|
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f *.riscv *.o *.dump
|
|
$(if $(libgloss),rm -rf $(libgloss_builddir)/)
|