usb: Move the USB stack to its own top-level dir

This commit is contained in:
Keir Fraser 2018-06-14 14:59:27 +01:00
parent d56b0a6de9
commit ac86aa5d17
42 changed files with 31 additions and 24 deletions

View file

@ -1,6 +1,6 @@
All code is licensed as follows, with these exceptions:
- src/fatfs/*
- src/gotek/stm32_usbh_msc/*
- src/usb/stm32_usbh_msc/*
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
This is free and unencumbered software released into the public domain.
@ -47,7 +47,7 @@ by use of this software.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
All code within src/gotek/stm32_usbh_msc/* is licensed as follows:
All code within src/usb/stm32_usbh_msc/* is licensed as follows:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Copyright (C) 2015 STMicroelectronics International N.V.. All rights reserved.

View file

@ -20,3 +20,4 @@ OBJS-$(debug) += console.o
SUBDIRS += fatfs
SUBDIRS += gotek
SUBDIRS += usb

View file

@ -4,9 +4,3 @@ OBJS += board.o
OBJS += lcd.o
OBJS += oled_font_6x13.o
OBJS += led_7seg.o
OBJS += usb_bsp.o
OBJS += usbh_msc_fatfs.o
SUBDIRS += stm32_usbh_msc
usb%.o: CFLAGS += -I$(ROOT)/src/gotek/stm32_usbh_msc/inc/ -include usbh_conf.h

8
bootloader/usb/Makefile Normal file
View file

@ -0,0 +1,8 @@
RPATH = ../../src/usb
OBJS += usb_bsp.o
OBJS += usbh_msc_fatfs.o
SUBDIRS += stm32_usbh_msc
usb%.o: CFLAGS += -I$(ROOT)/src/usb/stm32_usbh_msc/inc/ -include usbh_conf.h

View file

@ -1,4 +1,4 @@
RPATH = ../../../src/gotek/stm32_usbh_msc
RPATH = ../../../src/usb/stm32_usbh_msc
OBJS += usb_core.o
OBJS += usb_hcd.o
@ -11,4 +11,4 @@ OBJS += usbh_msc_core.o
OBJS += usbh_msc_scsi.o
OBJS += usbh_stdreq.o
CFLAGS += -I$(ROOT)/src/gotek/stm32_usbh_msc/inc/ -include usbh_conf.h
CFLAGS += -I$(ROOT)/src/usb/stm32_usbh_msc/inc/ -include usbh_conf.h

View file

@ -20,3 +20,4 @@ OBJS-$(debug) += console.o
SUBDIRS += fatfs
SUBDIRS += gotek
SUBDIRS += usb

View file

@ -4,9 +4,3 @@ OBJS += board.o
OBJS += lcd.o
OBJS += oled_font_6x13.o
OBJS += led_7seg.o
OBJS += usb_bsp.o
OBJS += usbh_msc_fatfs.o
SUBDIRS += stm32_usbh_msc
usb%.o: CFLAGS += -I$(ROOT)/src/gotek/stm32_usbh_msc/inc/ -include usbh_conf.h

8
reloader/usb/Makefile Normal file
View file

@ -0,0 +1,8 @@
RPATH = ../../src/usb
OBJS += usb_bsp.o
OBJS += usbh_msc_fatfs.o
SUBDIRS += stm32_usbh_msc
usb%.o: CFLAGS += -I$(ROOT)/src/usb/stm32_usbh_msc/inc/ -include usbh_conf.h

View file

@ -1,4 +1,4 @@
RPATH = ../../../src/gotek/stm32_usbh_msc
RPATH = ../../../src/usb/stm32_usbh_msc
OBJS += usb_core.o
OBJS += usb_hcd.o
@ -11,4 +11,4 @@ OBJS += usbh_msc_core.o
OBJS += usbh_msc_scsi.o
OBJS += usbh_stdreq.o
CFLAGS += -I$(ROOT)/src/gotek/stm32_usbh_msc/inc/ -include usbh_conf.h
CFLAGS += -I$(ROOT)/src/usb/stm32_usbh_msc/inc/ -include usbh_conf.h

View file

@ -21,6 +21,7 @@ OBJS-$(debug) += console.o
SUBDIRS += fatfs
SUBDIRS += image
SUBDIRS += gotek
SUBDIRS += usb
flash_cfg.o: ff_cfg_defaults.h

View file

@ -3,16 +3,10 @@ OBJS += lcd.o
OBJS += oled_font_6x13.o
OBJS += led_7seg.o
OBJS += speaker.o
OBJS += usb_bsp.o
OBJS += usbh_msc_fatfs.o
lcd.o: CFLAGS += -Dfont_extra=1
OBJS += oled_font_8x16.o
SUBDIRS += stm32_usbh_msc
usb%.o: CFLAGS += -Istm32_usbh_msc/inc/ -include usbh_conf.h
oled_font_%.c: $(ROOT)/fonts/%.bdf
$(PYTHON) $(ROOT)/scripts/mk_font.py $< oled_font_$*

6
src/usb/Makefile Normal file
View file

@ -0,0 +1,6 @@
OBJS += usb_bsp.o
OBJS += usbh_msc_fatfs.o
SUBDIRS += stm32_usbh_msc
usb%.o: CFLAGS += -Istm32_usbh_msc/inc/ -include usbh_conf.h