Skip to content

Commit

Permalink
Script added to .Phony
Browse files Browse the repository at this point in the history
  • Loading branch information
fhaus1 committed Nov 7, 2024
1 parent 0650e77 commit af9960c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cheshire.mk
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,11 @@ include $(CHS_ROOT)/sw/sw.mk
$(CHS_ROOT)/hw/regs/cheshire_reg_pkg.sv $(CHS_ROOT)/hw/regs/cheshire_reg_top.sv: $(CHS_ROOT)/hw/regs/cheshire_regs.hjson
$(REGTOOL) -r $< --outdir $(dir $@)

# NewUSB registers
# NewUSB registers insert param
$(CHS_ROOT)/hw/newusb_regs/newusb_regs.hjson:
python $(CHS_ROOT)/hw/newusb_regs/newusb_insert_param.py

# NewUSB registers
$(CHS_ROOT)/hw/newusb_regs/newusb_reg_pkg.sv $(CHS_ROOT)/hw/newusb_regs/newusb_reg_top.sv: $(CHS_ROOT)/hw/newusb_regs/newusb_regs.hjson
$(REGTOOL) -r $< --outdir $(dir $@)
rm -f $(CHS_ROOT)/hw/newusb_regs/newusb_regs.hjson
Expand Down Expand Up @@ -117,6 +118,7 @@ $(CHS_SLINK_DIR)/.generated: $(CHS_ROOT)/hw/serial_link.hjson
cp $< $(dir $@)/src/regs/serial_link_single_channel.hjson
flock -x $@ $(MAKE) -C $(CHS_SLINK_DIR) update-regs BENDER="$(BENDER)" && touch $@

CHS_HW_ALL += $(CHS_ROOT)/hw/newusb_regs/newusb_regs.hjson
CHS_HW_ALL += $(CHS_ROOT)/hw/regs/cheshire_reg_pkg.sv $(CHS_ROOT)/hw/regs/cheshire_reg_top.sv
CHS_HW_ALL += $(CHS_ROOT)/hw/newusb_regs/newusb_reg_pkg.sv $(CHS_ROOT)/hw/newusb_regs/newusb_reg_top.sv
CHS_HW_ALL += $(CLINTROOT)/.generated
Expand Down

0 comments on commit af9960c

Please sign in to comment.