Merge remote-tracking branch 'origin/dev' into HEAD
This commit is contained in:
@@ -5,12 +5,16 @@ LDFLAGS= -static
|
||||
|
||||
include libgloss.mk
|
||||
|
||||
PROGRAMS = pwm blkdev accum charcount nic-loopback big-blkdev pingd passthrough fir
|
||||
PROGRAMS = pwm blkdev accum charcount nic-loopback big-blkdev pingd \
|
||||
passthrough fir nvdla spiflashread spiflashwrite
|
||||
|
||||
spiflash.img: spiflash.py
|
||||
python3 $<
|
||||
|
||||
.DEFAULT_GOAL := default
|
||||
|
||||
.PHONY: default
|
||||
default: $(addsuffix .riscv,$(PROGRAMS))
|
||||
default: $(addsuffix .riscv,$(PROGRAMS)) spiflash.img
|
||||
|
||||
.PHONY: dumps
|
||||
dumps: $(addsuffix .dump,$(PROGRAMS))
|
||||
@@ -18,7 +22,7 @@ dumps: $(addsuffix .dump,$(PROGRAMS))
|
||||
%.o: %.S
|
||||
$(GCC) $(CFLAGS) -D__ASSEMBLY__=1 -c $< -o $@
|
||||
|
||||
%.o: %.c mmio.h
|
||||
%.o: %.c mmio.h spiflash.h
|
||||
$(GCC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
%.riscv: %.o $(libgloss)
|
||||
|
||||
Reference in New Issue
Block a user