diff --git a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/Makefile b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/Makefile index 79a64c1ea..62e1a8580 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 port +SRC_DIR := class core mem osal port include $(KERNEL_ROOT)/compiler.mk diff --git a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/mem/Makefile b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/mem/Makefile new file mode 100644 index 000000000..2e22ab13e --- /dev/null +++ b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/mem/Makefile @@ -0,0 +1,11 @@ +include $(KERNEL_ROOT)/services/drivers/usb/components/usb.mk + +objs = usb_mem.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 diff --git a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/mem/usb_mem.c b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/mem/usb_mem.c new file mode 100644 index 000000000..e6704f871 --- /dev/null +++ b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/mem/usb_mem.c @@ -0,0 +1,2 @@ +#include "usb_mem.h" +