forked from Firmware/Firmwares
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			450 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			450 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| 
 | |
| TARGET  = hello
 | |
| C_SRCS  = $(wildcard *.c) 
 | |
| HEADERS = $(wildcard *.h)
 | |
| CFLAGS += -O2 -g 
 | |
| 
 | |
| BOARD=iss
 | |
| LINK_TARGET=link
 | |
| RISCV_ARCH:=rv32i
 | |
| RISCV_ABI:=ilp32
 | |
| LDFLAGS += -g -Wl,--wrap=printf
 | |
| 
 | |
| compiler := $(shell which riscv32-unknown-elf-gcc)
 | |
| TOOL_DIR=$(dir $(compiler))
 | |
| 
 | |
| TRIPLET=riscv32-unknown-elf
 | |
| BSP_BASE = ../bare-metal-bsp
 | |
| include $(BSP_BASE)/env/common-gcc.mk
 | |
| 
 | |
| $(TARGET).vlog:$(TARGET)
 | |
| 	riscv32-unknown-elf-objcopy -O verilog $(TARGET) $(TARGET).vlog
 |