From 09e7094ec3eac5ba38d6820aa0161972e80c6558 Mon Sep 17 00:00:00 2001 From: xj Date: Thu, 6 Jun 2024 02:12:13 -0700 Subject: [PATCH] Modify Makefiles --- .../services/drivers/usb/components/Makefile | 2 +- .../services/drivers/usb/components/port/Makefile | 4 ++++ .../drivers/usb/components/port/xhci/Makefile | 11 +++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 Ubiquitous/XiZi_AIoT/services/drivers/usb/components/port/Makefile 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