mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
commit
b0ba105bd9
27
.github/workflows/build.yml
vendored
27
.github/workflows/build.yml
vendored
@ -278,24 +278,12 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
example:
|
||||
# Alphabetical order
|
||||
- 'device/audio_test'
|
||||
- 'device/board_test'
|
||||
- 'device/cdc_dual_ports'
|
||||
- 'device/cdc_msc'
|
||||
- 'device/cdc_msc_freertos'
|
||||
- 'device/dfu_runtime'
|
||||
- 'device/hid_composite'
|
||||
- 'device/hid_composite_freertos'
|
||||
- 'device/hid_generic_inout'
|
||||
- 'device/hid_multiple_interface'
|
||||
- 'device/midi_test'
|
||||
- 'device/msc_dual_lun'
|
||||
# Alphabetical order, a group of 4
|
||||
- 'device/audio_test device/board_test device/cdc_dual_ports device/cdc_msc'
|
||||
- 'device/cdc_msc_freertos device/dfu_runtime device/hid_composite device/hid_composite_freertos'
|
||||
- 'device/hid_generic_inout device/hid_multiple_interface device/midi_test device/msc_dual_lun'
|
||||
- 'device/net_lwip_webserver'
|
||||
- 'device/uac2_headset'
|
||||
- 'device/usbtmc'
|
||||
- 'device/webusb_serial'
|
||||
- 'host/cdc_msc_hid'
|
||||
- 'device/uac2_headset device/usbtmc device/webusb_serial host/cdc_msc_hid'
|
||||
|
||||
steps:
|
||||
- name: Setup Python
|
||||
@ -303,8 +291,9 @@ jobs:
|
||||
|
||||
- name: Checkout TinyUSB
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: 'true'
|
||||
|
||||
- name: Checkout Submodules in lib
|
||||
run: git submodule update --init lib
|
||||
|
||||
- name: Set Toolchain URL
|
||||
run: echo >> $GITHUB_ENV TOOLCHAIN_URL=https://github.com/xpack-dev-tools/arm-none-eabi-gcc-xpack/releases/download/v10.2.1-1.1/xpack-arm-none-eabi-gcc-10.2.1-1.1-linux-x64.tar.gz
|
||||
|
@ -53,8 +53,8 @@ fetch_submodule_if_empty = \
|
||||
$(info $(shell git -C $(TOP) submodule update --init $1)) \
|
||||
endif
|
||||
|
||||
ifdef FAMILY_SUBMODULES
|
||||
$(foreach s,$(FAMILY_SUBMODULES),:$(call fetch_submodule_if_empty,$(s)))
|
||||
ifdef DEPS_SUBMODULES
|
||||
$(foreach s,$(DEPS_SUBMODULES),:$(call fetch_submodule_if_empty,$(s)))
|
||||
endif
|
||||
|
||||
#-------------- Cross Compiler ------------
|
||||
|
@ -63,6 +63,7 @@ all: $(BUILD)
|
||||
clean:
|
||||
$(RM) -rf $(BUILD)
|
||||
|
||||
#flash: flash-pyocd
|
||||
flash:
|
||||
@$(CP) $(BUILD)/$(PROJECT).uf2 /media/$(USER)/RPI-RP2
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
DEPS_SUBMODULES = hw/mcu/microchip
|
||||
HWREV ?= 1
|
||||
|
||||
CFLAGS += \
|
||||
|
@ -1,4 +1,4 @@
|
||||
CFLAGS += \
|
||||
CFLAGS += \
|
||||
-flto \
|
||||
-mthumb \
|
||||
-mthumb-interwork \
|
||||
|
@ -1,4 +1,4 @@
|
||||
CFLAGS += \
|
||||
CFLAGS += \
|
||||
-flto \
|
||||
-mthumb \
|
||||
-mthumb-interwork \
|
||||
|
@ -1,3 +1,5 @@
|
||||
DEPS_SUBMODULES = hw/mcu/nxp
|
||||
|
||||
CFLAGS += \
|
||||
-flto \
|
||||
-mthumb \
|
||||
|
@ -1,3 +1,5 @@
|
||||
DEPS_SUBMODULES = hw/mcu/nxp
|
||||
|
||||
CFLAGS += \
|
||||
-flto \
|
||||
-mthumb \
|
||||
|
@ -1,3 +1,5 @@
|
||||
DEPS_SUBMODULES = hw/mcu/nxp
|
||||
|
||||
CFLAGS += \
|
||||
-mthumb \
|
||||
-mabi=aapcs \
|
||||
|
@ -1,5 +1,5 @@
|
||||
UF2_FAMILY_ID = 0x4fb2d5bd
|
||||
FAMILY_SUBMODULES = hw/mcu/nxp
|
||||
DEPS_SUBMODULES = hw/mcu/nxp
|
||||
|
||||
include $(TOP)/$(BOARD_PATH)/board.mk
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
FAMILY_SUBMODULES = hw/mcu/nxp
|
||||
DEPS_SUBMODULES = hw/mcu/nxp
|
||||
|
||||
include $(TOP)/$(BOARD_PATH)/board.mk
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
UF2_FAMILY_ID = 0x2abc77ec
|
||||
FAMILY_SUBMODULES = hw/mcu/nxp
|
||||
DEPS_SUBMODULES = hw/mcu/nxp
|
||||
|
||||
include $(TOP)/$(BOARD_PATH)/board.mk
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
DEPS_SUBMODULES = hw/mcu/nxp
|
||||
|
||||
CFLAGS += \
|
||||
-flto \
|
||||
-mthumb \
|
||||
|
@ -1,3 +1,5 @@
|
||||
DEPS_SUBMODULES = hw/mcu/nxp
|
||||
|
||||
CFLAGS += \
|
||||
-flto \
|
||||
-mthumb \
|
||||
|
@ -1,3 +1,5 @@
|
||||
DEPS_SUBMODULES = hw/mcu/nxp
|
||||
|
||||
CFLAGS += \
|
||||
-flto \
|
||||
-mthumb \
|
||||
|
@ -1,3 +1,5 @@
|
||||
DEPS_SUBMODULES = hw/mcu/nxp
|
||||
|
||||
CFLAGS += \
|
||||
-flto \
|
||||
-mthumb \
|
||||
|
@ -1,3 +1,5 @@
|
||||
DEPS_SUBMODULES = hw/mcu/nxp
|
||||
|
||||
CFLAGS += \
|
||||
-flto \
|
||||
-mthumb \
|
||||
|
@ -1,3 +1,5 @@
|
||||
DEPS_SUBMODULES = hw/mcu/nxp
|
||||
|
||||
CFLAGS += \
|
||||
-flto \
|
||||
-mthumb \
|
||||
|
@ -1,3 +1,5 @@
|
||||
DEPS_SUBMODULES = hw/mcu/nxp
|
||||
|
||||
CFLAGS += \
|
||||
-flto \
|
||||
-mthumb \
|
||||
|
@ -1,3 +1,5 @@
|
||||
DEPS_SUBMODULES = hw/mcu/nxp
|
||||
|
||||
CFLAGS += \
|
||||
-flto \
|
||||
-mthumb \
|
||||
|
@ -1,5 +1,5 @@
|
||||
CROSS_COMPILE = msp430-elf-
|
||||
FAMILY_SUBMODULES = hw/mcu/ti
|
||||
DEPS_SUBMODULES = hw/mcu/ti
|
||||
SKIP_NANOLIB = 1
|
||||
|
||||
CFLAGS += \
|
||||
|
@ -1,3 +1,5 @@
|
||||
DEPS_SUBMODULES = hw/mcu/nxp
|
||||
|
||||
CFLAGS += \
|
||||
-flto \
|
||||
-mthumb \
|
||||
|
@ -1,5 +1,5 @@
|
||||
UF2_FAMILY_ID = 0xADA52840
|
||||
FAMILY_SUBMODULES = hw/mcu/nordic/nrfx
|
||||
DEPS_SUBMODULES = hw/mcu/nordic/nrfx
|
||||
|
||||
include $(TOP)/$(BOARD_PATH)/board.mk
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
DEPS_SUBMODULES = hw/mcu/nuvoton
|
||||
|
||||
CFLAGS += \
|
||||
-flto \
|
||||
-mthumb \
|
||||
|
@ -1,3 +1,5 @@
|
||||
DEPS_SUBMODULES = hw/mcu/nuvoton
|
||||
|
||||
CFLAGS += \
|
||||
-flto \
|
||||
-mthumb \
|
||||
|
@ -1,3 +1,5 @@
|
||||
DEPS_SUBMODULES = hw/mcu/nuvoton
|
||||
|
||||
CFLAGS += \
|
||||
-flto \
|
||||
-mthumb \
|
||||
|
@ -1,3 +1,5 @@
|
||||
DEPS_SUBMODULES = hw/mcu/nuvoton
|
||||
|
||||
CFLAGS += \
|
||||
-flto \
|
||||
-mthumb \
|
||||
|
@ -1,3 +1,5 @@
|
||||
DEPS_SUBMODULES = hw/mcu/nuvoton
|
||||
|
||||
CFLAGS += \
|
||||
-flto \
|
||||
-mthumb \
|
||||
|
@ -1,4 +1,4 @@
|
||||
FAMILY_SUBMODULES = hw/mcu/raspberrypi/pico-sdk
|
||||
DEPS_SUBMODULES = hw/mcu/raspberrypi/pico-sdk
|
||||
|
||||
JLINK_DEVICE = rp2040_m0_0
|
||||
PYOCD_TARGET = rp2040
|
||||
|
@ -1,4 +1,4 @@
|
||||
FAMILY_SUBMODULES = hw/mcu/microchip
|
||||
DEPS_SUBMODULES = hw/mcu/microchip
|
||||
|
||||
include $(TOP)/$(BOARD_PATH)/board.mk
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
UF2_FAMILY_ID = 0x68ed2b88
|
||||
FAMILY_SUBMODULES = hw/mcu/microchip
|
||||
DEPS_SUBMODULES = hw/mcu/microchip
|
||||
|
||||
include $(TOP)/$(BOARD_PATH)/board.mk
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
UF2_FAMILY_ID = 0x55114460
|
||||
FAMILY_SUBMODULES = hw/mcu/microchip
|
||||
DEPS_SUBMODULES = hw/mcu/microchip
|
||||
|
||||
include $(TOP)/$(BOARD_PATH)/board.mk
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
DEPS_SUBMODULES = hw/mcu/microchip
|
||||
|
||||
CONF_CPU_FREQUENCY ?= 120000000
|
||||
|
||||
CFLAGS += \
|
||||
|
@ -1,3 +1,5 @@
|
||||
DEPS_SUBMODULES = hw/mcu/microchip
|
||||
|
||||
CFLAGS += \
|
||||
-mthumb \
|
||||
-mabi=aapcs \
|
||||
|
@ -1,3 +1,5 @@
|
||||
DEPS_SUBMODULES = hw/mcu/microchip
|
||||
|
||||
CFLAGS += \
|
||||
-flto \
|
||||
-mthumb \
|
||||
|
@ -1,3 +1,5 @@
|
||||
DEPS_SUBMODULES = hw/mcu/sony/cxd56/spresense-exported-sdk
|
||||
|
||||
# Platforms are: Linux, Darwin, MSYS, CYGWIN
|
||||
PLATFORM := $(firstword $(subst _, ,$(shell uname -s 2>/dev/null)))
|
||||
|
||||
|
@ -1,3 +1,9 @@
|
||||
ST_FAMILY = f0
|
||||
DEPS_SUBMODULES = hw/mcu/st/cmsis_device_$(ST_FAMILY) hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
|
||||
ST_CMSIS = hw/mcu/st/cmsis_device_$(ST_FAMILY)
|
||||
ST_HAL_DRIVER = hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
|
||||
CFLAGS += \
|
||||
-flto \
|
||||
-mthumb \
|
||||
@ -12,9 +18,6 @@ CFLAGS += \
|
||||
# suppress warning caused by vendor mcu driver
|
||||
CFLAGS += -Wno-error=unused-parameter -Wno-error=cast-align
|
||||
|
||||
ST_FAMILY = f0
|
||||
ST_CMSIS = hw/mcu/st/cmsis_device_$(ST_FAMILY)
|
||||
ST_HAL_DRIVER = hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
|
||||
# All source paths should be relative to the top level.
|
||||
LD_FILE = hw/bsp/$(BOARD)/stm32F070rbtx_flash.ld
|
||||
|
@ -1,3 +1,9 @@
|
||||
ST_FAMILY = f0
|
||||
DEPS_SUBMODULES = hw/mcu/st/cmsis_device_$(ST_FAMILY) hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
|
||||
ST_CMSIS = hw/mcu/st/cmsis_device_$(ST_FAMILY)
|
||||
ST_HAL_DRIVER = hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
|
||||
CFLAGS += \
|
||||
-flto \
|
||||
-mthumb \
|
||||
@ -12,10 +18,6 @@ CFLAGS += \
|
||||
# suppress warning caused by vendor mcu driver
|
||||
CFLAGS += -Wno-error=unused-parameter -Wno-error=cast-align
|
||||
|
||||
ST_FAMILY = f0
|
||||
ST_CMSIS = hw/mcu/st/cmsis_device_$(ST_FAMILY)
|
||||
ST_HAL_DRIVER = hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
|
||||
# All source paths should be relative to the top level.
|
||||
LD_FILE = hw/bsp/$(BOARD)/STM32F072RBTx_FLASH.ld
|
||||
|
||||
|
@ -1,3 +1,9 @@
|
||||
ST_FAMILY = f1
|
||||
DEPS_SUBMODULES = hw/mcu/st/cmsis_device_$(ST_FAMILY) hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
|
||||
ST_CMSIS = hw/mcu/st/cmsis_device_$(ST_FAMILY)
|
||||
ST_HAL_DRIVER = hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
|
||||
CFLAGS += \
|
||||
-flto \
|
||||
-mthumb \
|
||||
@ -11,10 +17,6 @@ CFLAGS += \
|
||||
# mcu driver cause following warnings
|
||||
#CFLAGS += -Wno-error=unused-parameter
|
||||
|
||||
ST_FAMILY = f1
|
||||
ST_CMSIS = hw/mcu/st/cmsis_device_$(ST_FAMILY)
|
||||
ST_HAL_DRIVER = hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
|
||||
# All source paths should be relative to the top level.
|
||||
LD_FILE = hw/bsp/$(BOARD)/STM32F103XB_FLASH.ld
|
||||
|
||||
|
@ -1,3 +1,9 @@
|
||||
ST_FAMILY = f2
|
||||
DEPS_SUBMODULES = hw/mcu/st/cmsis_device_$(ST_FAMILY) hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
|
||||
ST_CMSIS = hw/mcu/st/cmsis_device_$(ST_FAMILY)
|
||||
ST_HAL_DRIVER = hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
|
||||
CFLAGS += \
|
||||
-flto \
|
||||
-mthumb \
|
||||
@ -11,11 +17,6 @@ CFLAGS += \
|
||||
# mcu driver cause following warnings
|
||||
CFLAGS += -Wno-error=sign-compare
|
||||
|
||||
ST_FAMILY = f2
|
||||
ST_CMSIS = hw/mcu/st/cmsis_device_$(ST_FAMILY)
|
||||
ST_HAL_DRIVER = hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
|
||||
|
||||
# All source paths should be relative to the top level.
|
||||
LD_FILE = hw/bsp/$(BOARD)/STM32F207ZGTx_FLASH.ld
|
||||
|
||||
|
@ -1,3 +1,9 @@
|
||||
ST_FAMILY = f3
|
||||
DEPS_SUBMODULES = hw/mcu/st/cmsis_device_$(ST_FAMILY) hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
|
||||
ST_CMSIS = hw/mcu/st/cmsis_device_$(ST_FAMILY)
|
||||
ST_HAL_DRIVER = hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
|
||||
CFLAGS += \
|
||||
-flto \
|
||||
-mthumb \
|
||||
@ -12,10 +18,6 @@ CFLAGS += \
|
||||
# mcu driver cause following warnings
|
||||
CFLAGS += -Wno-error=unused-parameter
|
||||
|
||||
ST_FAMILY = f3
|
||||
ST_CMSIS = hw/mcu/st/cmsis_device_$(ST_FAMILY)
|
||||
ST_HAL_DRIVER = hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
|
||||
# All source paths should be relative to the top level.
|
||||
LD_FILE = hw/bsp/$(BOARD)/STM32F303VCTx_FLASH.ld
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
UF2_FAMILY_ID = 0x57755a57
|
||||
ST_FAMILY = f4
|
||||
FAMILY_SUBMODULES = hw/mcu/st/cmsis_device_$(ST_FAMILY) hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
DEPS_SUBMODULES = hw/mcu/st/cmsis_device_$(ST_FAMILY) hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
|
||||
ST_CMSIS = hw/mcu/st/cmsis_device_$(ST_FAMILY)
|
||||
ST_HAL_DRIVER = hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
|
@ -1,6 +1,6 @@
|
||||
UF2_FAMILY_ID = 0x53b80f00
|
||||
ST_FAMILY = f7
|
||||
FAMILY_SUBMODULES = hw/mcu/st/cmsis_device_$(ST_FAMILY) hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
DEPS_SUBMODULES = hw/mcu/st/cmsis_device_$(ST_FAMILY) hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
|
||||
ST_CMSIS = hw/mcu/st/cmsis_device_$(ST_FAMILY)
|
||||
ST_HAL_DRIVER = hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
|
@ -1,6 +1,6 @@
|
||||
UF2_FAMILY_ID = 0x6db66082
|
||||
ST_FAMILY = h7
|
||||
FAMILY_SUBMODULES = hw/mcu/st/cmsis_device_$(ST_FAMILY) hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
DEPS_SUBMODULES = hw/mcu/st/cmsis_device_$(ST_FAMILY) hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
|
||||
ST_CMSIS = hw/mcu/st/cmsis_device_$(ST_FAMILY)
|
||||
ST_HAL_DRIVER = hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
|
@ -1,3 +1,9 @@
|
||||
ST_FAMILY = l0
|
||||
DEPS_SUBMODULES = hw/mcu/st/cmsis_device_$(ST_FAMILY) hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
|
||||
ST_CMSIS = hw/mcu/st/cmsis_device_$(ST_FAMILY)
|
||||
ST_HAL_DRIVER = hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
|
||||
CFLAGS += \
|
||||
-flto \
|
||||
-mthumb \
|
||||
@ -12,10 +18,6 @@ CFLAGS += \
|
||||
# mcu driver cause following warnings
|
||||
CFLAGS += -Wno-error=unused-parameter -Wno-error=maybe-uninitialized
|
||||
|
||||
ST_FAMILY = l0
|
||||
ST_CMSIS = hw/mcu/st/cmsis_device_$(ST_FAMILY)
|
||||
ST_HAL_DRIVER = hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
|
||||
# All source paths should be relative to the top level.
|
||||
LD_FILE = hw/bsp/$(BOARD)/STM32L053C8Tx_FLASH.ld
|
||||
|
||||
|
@ -1,3 +1,9 @@
|
||||
ST_FAMILY = l4
|
||||
DEPS_SUBMODULES = hw/mcu/st/cmsis_device_$(ST_FAMILY) hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
|
||||
ST_CMSIS = hw/mcu/st/cmsis_device_$(ST_FAMILY)
|
||||
ST_HAL_DRIVER = hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
|
||||
CFLAGS += \
|
||||
-flto \
|
||||
-mthumb \
|
||||
@ -12,10 +18,6 @@ CFLAGS += \
|
||||
# suppress warning caused by vendor mcu driver
|
||||
CFLAGS += -Wno-error=maybe-uninitialized -Wno-error=cast-align
|
||||
|
||||
ST_FAMILY = l4
|
||||
ST_CMSIS = hw/mcu/st/cmsis_device_$(ST_FAMILY)
|
||||
ST_HAL_DRIVER = hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
|
||||
# All source paths should be relative to the top level.
|
||||
LD_FILE = hw/bsp/$(BOARD)/STM32L476VGTx_FLASH.ld
|
||||
|
||||
|
@ -1,3 +1,9 @@
|
||||
ST_FAMILY = l4
|
||||
DEPS_SUBMODULES = hw/mcu/st/cmsis_device_$(ST_FAMILY) hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
|
||||
ST_CMSIS = hw/mcu/st/cmsis_device_$(ST_FAMILY)
|
||||
ST_HAL_DRIVER = hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
|
||||
CFLAGS += \
|
||||
-flto \
|
||||
-mthumb \
|
||||
@ -13,10 +19,6 @@ CFLAGS += \
|
||||
# suppress warning caused by vendor mcu driver
|
||||
CFLAGS += -Wno-error=maybe-uninitialized -Wno-error=cast-align
|
||||
|
||||
ST_FAMILY = l4
|
||||
ST_CMSIS = hw/mcu/st/cmsis_device_$(ST_FAMILY)
|
||||
ST_HAL_DRIVER = hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
|
||||
# All source paths should be relative to the top level.
|
||||
LD_FILE = hw/bsp/$(BOARD)/STM32L4RXxI_FLASH.ld
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user