Skip to content

Commit

Permalink
make: Export environment to IP sub-makes
Browse files Browse the repository at this point in the history
  • Loading branch information
paulsc96 committed Nov 20, 2024
1 parent e831fcc commit 66df1ca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cheshire.mk
Original file line number Diff line number Diff line change
Expand Up @@ -88,29 +88,29 @@ $(CHS_ROOT)/hw/regs/cheshire_reg_pkg.sv $(CHS_ROOT)/hw/regs/cheshire_reg_top.sv:
CLINTCORES ?= 1
include $(CLINTROOT)/clint.mk
$(CLINTROOT)/.generated:
flock -x $@ $(MAKE) clint && touch $@
flock -x $@ $(MAKE) -e clint && touch $@

# OpenTitan peripherals
include $(OTPROOT)/otp.mk
$(OTPROOT)/.generated: $(CHS_ROOT)/hw/rv_plic.cfg.hjson
flock -x $@ sh -c "cp $< $(dir $@)/src/rv_plic/; $(MAKE) -j1 otp" && touch $@
flock -x $@ sh -c "cp $< $(dir $@)/src/rv_plic/; $(MAKE) -ej1 otp" && touch $@

# AXI RT
AXIRT_NUM_MGRS ?= 6
AXIRT_NUM_SUBS ?= 2
include $(AXIRTROOT)/axirt.mk
$(AXIRTROOT)/.generated:
flock -x $@ $(MAKE) axirt_regs && touch $@
flock -x $@ $(MAKE) -e axirt_regs && touch $@

# AXI VGA
include $(AXI_VGA_ROOT)/axi_vga.mk
$(AXI_VGA_ROOT)/.generated:
flock -x $@ $(MAKE) axi_vga && touch $@
flock -x $@ $(MAKE) -e axi_vga && touch $@

# Custom serial link
$(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 $@
flock -x $@ $(MAKE) -eC $(CHS_SLINK_DIR) update-regs BENDER="$(BENDER)" && touch $@

# iDMA
include $(IDMA_ROOT)/idma.mk
Expand Down

0 comments on commit 66df1ca

Please sign in to comment.