Browse Source

cores/usb: Rename core from 'usb' to 'no2usb'

This is in preparation from splitting out to separate repo, need a name
a little more "unique" than just 'usb'.

Don't rename the directory yet since this would break
history when splitting into another repo

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Sylvain Munaut 4 years ago
parent
commit
a6add64749
3 changed files with 11 additions and 11 deletions
  1. 1 1
      cores/usb/Makefile
  2. 9 9
      cores/usb/no2core.mk
  3. 1 1
      projects/riscv_usb/Makefile

+ 1 - 1
cores/usb/Makefile

@@ -1,4 +1,4 @@
-CORE := usb
+CORE := no2usb
 
 NO2BUILD_DIR ?= $(abspath ../../build)
 include $(NO2BUILD_DIR)/core-rules.mk

+ 9 - 9
cores/usb/no2core.mk

@@ -1,8 +1,8 @@
-CORE := usb
+CORE := no2usb
 
-DEPS_usb := misc
+DEPS_no2usb := misc
 
-RTL_SRCS_usb := $(addprefix rtl/, \
+RTL_SRCS_no2usb := $(addprefix rtl/, \
 	usb.v \
 	usb_crc.v \
 	usb_ep_buf.v \
@@ -15,20 +15,20 @@ RTL_SRCS_usb := $(addprefix rtl/, \
 	usb_tx_pkt.v \
 )
 
-PREREQ_usb = \
-	$(CORE_usb_DIR)/rtl/usb_defs.vh \
+PREREQ_no2usb = \
+	$(CORE_no2usb_DIR)/rtl/usb_defs.vh \
 	$(BUILD_TMP)/usb_trans_mc.hex \
 	$(BUILD_TMP)/usb_ep_status.hex
 
-TESTBENCHES_usb := \
+TESTBENCHES_no2usb := \
 	usb_ep_buf_tb \
 	usb_tb \
 	usb_tx_tb
 
 include $(NO2BUILD_DIR)/core-magic.mk
 
-$(BUILD_TMP)/usb_trans_mc.hex: $(CORE_usb_DIR)/utils/microcode.py
-	$(CORE_usb_DIR)/utils/microcode.py > $@
+$(BUILD_TMP)/usb_trans_mc.hex: $(CORE_no2usb_DIR)/utils/microcode.py
+	$(CORE_no2usb_DIR)/utils/microcode.py > $@
 
-$(BUILD_TMP)/usb_ep_status.hex: $(CORE_usb_DIR)/data/usb_ep_status.hex
+$(BUILD_TMP)/usb_ep_status.hex: $(CORE_no2usb_DIR)/data/usb_ep_status.hex
 	cp -a $< $@

+ 1 - 1
projects/riscv_usb/Makefile

@@ -1,7 +1,7 @@
 # Project config
 PROJ = riscv_usb
 
-PROJ_DEPS := usb misc ice40
+PROJ_DEPS := no2usb misc ice40
 PROJ_RTL_SRCS := $(addprefix rtl/, \
 	bridge.v \
 	dfu_helper.v \