From a4681f5f8fe4d55716e840a098271f8f4b4e2076 Mon Sep 17 00:00:00 2001 From: xj Date: Wed, 5 Jun 2024 23:54:36 -0700 Subject: [PATCH] Modify Makefiles --- .../services/drivers/usb/components/Makefile | 2 +- .../services/drivers/usb/components/class/Makefile | 4 ++++ .../drivers/usb/components/class/hub/Makefile | 11 +++++++++++ .../drivers/usb/components/class/hub/usbh_hub.h | 2 +- 4 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 Ubiquitous/XiZi_AIoT/services/drivers/usb/components/class/hub/Makefile diff --git a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/Makefile b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/Makefile index d7689de9a..847bf6b16 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 := core osal +SRC_DIR := class core osal include $(KERNEL_ROOT)/compiler.mk diff --git a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/class/Makefile b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/class/Makefile index e69de29bb..d0ecbc1b9 100644 --- a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/class/Makefile +++ b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/class/Makefile @@ -0,0 +1,4 @@ +SRC_DIR := hub + + +include $(KERNEL_ROOT)/compiler.mk \ No newline at end of file diff --git a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/class/hub/Makefile b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/class/hub/Makefile new file mode 100644 index 000000000..f999b2ce1 --- /dev/null +++ b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/class/hub/Makefile @@ -0,0 +1,11 @@ +include $(KERNEL_ROOT)/services/drivers/usb/components/usb.mk + +objs = usbh_hub.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/class/hub/usbh_hub.h b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/class/hub/usbh_hub.h index 0f4d3cb53..1ea7bf19f 100644 --- a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/class/hub/usbh_hub.h +++ b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/class/hub/usbh_hub.h @@ -1,7 +1,7 @@ #ifndef USBH_HUB_H_ #define USBH_HUB_H_ - +#include "usb_hub.h"