diff --git a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/Makefile b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/Makefile index 847bf6b16..79a64c1ea 100644 --- a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/Makefile +++ b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/Makefile @@ -11,7 +11,7 @@ # libipc = $(KERNEL_ROOT)/services/app/libipc.o # libsem = $(KERNEL_ROOT)/services/app/libsemaphore.o -SRC_DIR := class core osal +SRC_DIR := class core osal port include $(KERNEL_ROOT)/compiler.mk diff --git a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/port/Makefile b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/port/Makefile new file mode 100644 index 000000000..f2783839d --- /dev/null +++ b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/port/Makefile @@ -0,0 +1,4 @@ +SRC_DIR := xhci + + +include $(KERNEL_ROOT)/compiler.mk \ No newline at end of file diff --git a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/port/xhci/Makefile b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/port/xhci/Makefile index e69de29bb..d2b035543 100644 --- a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/port/xhci/Makefile +++ b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/port/xhci/Makefile @@ -0,0 +1,11 @@ +include $(KERNEL_ROOT)/services/drivers/usb/components/usb.mk + +objs += usb_hc_xhci.o + +all: ${objs} + @echo "generate $^" + @mv $^ $(KERNEL_ROOT)/services/drivers/usb/components + +%.o: %.c + @echo "cc $^" + @${cc} ${cflags} ${c_useropts} ${INC_DIR} -o $@ -c $^ \ No newline at end of file