Skip to content
Snippets Groups Projects
Commit f3011926 authored by dam1n19's avatar dam1n19
Browse files

SOC1-167: Removed bootrom gen options as is created every time bootrom is recompiled

parent 437bacbc
No related branches found
No related tags found
No related merge requests found
...@@ -70,22 +70,14 @@ DMA_PRODUCT ?= DMA_230 ...@@ -70,22 +70,14 @@ DMA_PRODUCT ?= DMA_230
# Defaultly set to demo adp command file # Defaultly set to demo adp command file
DEFAULT_ADP_FILE = $(TESTCODES_DIR)/adp_demo/adp.cmd DEFAULT_ADP_FILE = $(TESTCODES_DIR)/adp_demo/adp.cmd
ADP_FILE ?= $(DEFAULT_ADP_FILE) ADP_FILE ?= $(DEFAULT_ADP_FILE)
ADP_PATH := $(shell realpath $(ADP_FILE))
# Bootrom generation ADP_OPTIONS := -define ADP_FILE=\"$(ADP_PATH)\"
ifneq ($(BOOTROM_GEN),)
MEM_INIT := +define+MEM_INIT
# Use default adp file when generating bootrom
ADP_FILE := $(DEFAULT_ADP_FILE)
else
MEM_INIT :=
endif
# Bootrom Parameters: # Bootrom Parameters:
BOOTROM_ADDRW ?= 8 BOOTROM_ADDRW ?= 8
BOOTROM_HEX ?= $(NANOSOC_TECH_DIR)/system/testcodes/bootloader/bootloader.hex BOOTROM_HEX ?= $(NANOSOC_TECH_DIR)/system/testcodes/bootloader/bootloader.hex
BOOTROM_BUILD_DIR ?= $(PROJ_SYS_DIR)/bootrom
ADP_PATH := $(shell realpath $(ADP_FILE))
ADP_OPTIONS := -define ADP_FILE=\"$(ADP_PATH)\"
# Simulator Defines # Simulator Defines
DEFINES_VC += $(MEM_INIT) +define+CORTEX_M0 +define+USE_TARMAC DEFINES_VC += $(MEM_INIT) +define+CORTEX_M0 +define+USE_TARMAC
...@@ -101,7 +93,8 @@ SIMULATOR = xm ...@@ -101,7 +93,8 @@ SIMULATOR = xm
SIM_DIR ?= SIM_DIR ?=
ifeq ($(SIM_DIR),) ifeq ($(SIM_DIR),)
SIM_DIR := . # Defaultly put simulation files in simulation directory with c code testname
SIM_DIR = $(PROJECT_DIR)/simulate/sim/$(TESTNAME)
endif endif
# MTI option # MTI option
...@@ -302,7 +295,7 @@ bootrom: ...@@ -302,7 +295,7 @@ bootrom:
cp $(BOOTLOADER).hex $(SIM_DIR)/$(BOOTLOADER).hex ;\ cp $(BOOTLOADER).hex $(SIM_DIR)/$(BOOTLOADER).hex ;\
mkdir -p $(PROJ_SYS_DIR)/bootrom/verilog/ ;\ mkdir -p $(PROJ_SYS_DIR)/bootrom/verilog/ ;\
mkdir -p $(PROJ_SYS_DIR)/bootrom/bintxt/ ;\ mkdir -p $(PROJ_SYS_DIR)/bootrom/bintxt/ ;\
python3 bootrom_gen.py -a $(BOOTROM_ADDRW) -i $(BOOTLOADER).hex -v $(PROJ_SYS_DIR)/bootrom/verilog/bootrom.v -b $(PROJ_SYS_DIR)/bootrom/bintxt/bootrom.bintxt ;\ python3 bootrom_gen.py -a $(BOOTROM_ADDRW) -i $(BOOTLOADER).hex -v $(BOOTROM_BUILD_DIR)/verilog/bootrom.v -b $(BOOTROM_BUILD_DIR)/bintxt/bootrom.bintxt ;\
cd $(SIM_DIR) ) cd $(SIM_DIR) )
# Compile test code # Compile test code
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment