-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathconfig.mk
40 lines (29 loc) · 856 Bytes
/
config.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
SHELL:=/usr/bin/env bash
TOP_MODULE=iob_uart
#PATHS
REMOTE_ROOT_DIR ?=sandbox/iob-uart
SIM_DIR ?=$(UART_HW_DIR)/simulation
FPGA_DIR ?=$(shell find $(UART_DIR)/hardware -name $(FPGA_FAMILY))
DOC_DIR ?=$(UART_DIR)/document/$(DOC)
LIB_DIR ?=$(UART_DIR)/submodules/LIB
UART_HW_DIR:=$(UART_DIR)/hardware
#MAKE SW ACCESSIBLE REGISTER
MKREGS:=$(shell find $(LIB_DIR) -name mkregs.py)
#DEFAULT FPGA FAMILY AND FAMILY LIST
FPGA_FAMILY ?=CYCLONEV-GT
FPGA_FAMILY_LIST ?=CYCLONEV-GT XCKU
#DEFAULT DOC AND DOC LIST
DOC ?=pb
DOC_LIST ?=pb ug
# default target
default: sim
# VERSION
VERSION ?=V0.1
$(TOP_MODULE)_version.txt:
echo $(VERSION) > version.txt
#cpu accessible registers
iob_uart_swreg_def.vh iob_uart_swreg_gen.vh: $(UART_DIR)/mkregs.conf
$(MKREGS) iob_uart $(UART_DIR) HW
uart-gen-clean:
@rm -rf *# *~ version.txt
.PHONY: default uart-gen-clean