From 5168e889116db8fbe39ce04bc950280e7774a9fa Mon Sep 17 00:00:00 2001 From: songyanguang <345810377@qq.com> Date: Mon, 19 Aug 2024 19:45:22 +0800 Subject: [PATCH] Generate the usb_driver_service program. --- Ubiquitous/XiZi_AIoT/services/Makefile | 2 +- .../services/drivers/usb/usb_service/Makefile | 22 ++++++++++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/Ubiquitous/XiZi_AIoT/services/Makefile b/Ubiquitous/XiZi_AIoT/services/Makefile index b3a5f2c41..cbd4ba28a 100644 --- a/Ubiquitous/XiZi_AIoT/services/Makefile +++ b/Ubiquitous/XiZi_AIoT/services/Makefile @@ -1,5 +1,5 @@ -SRC_DIR := fs shell lib boards drivers semaphore drivers tools net app +SRC_DIR := fs shell lib boards semaphore drivers tools net app include $(KERNEL_ROOT)/compiler.mk diff --git a/Ubiquitous/XiZi_AIoT/services/drivers/usb/usb_service/Makefile b/Ubiquitous/XiZi_AIoT/services/drivers/usb/usb_service/Makefile index 3e4ac9f01..dac4fd694 100644 --- a/Ubiquitous/XiZi_AIoT/services/drivers/usb/usb_service/Makefile +++ b/Ubiquitous/XiZi_AIoT/services/drivers/usb/usb_service/Makefile @@ -3,8 +3,28 @@ include $(KERNEL_ROOT)/services/drivers/usb/components/usb.mk objs = usb_host.o objs += $(KERNEL_ROOT)/services/net/libnet/lwip_rndis_service.o -all: ${objs} +libserial = $(KERNEL_ROOT)/services/app/libserial.o +printf = $(KERNEL_ROOT)/services/app/printf.o +libmem = $(KERNEL_ROOT)/services/app/libmem.o +usyscall = $(KERNEL_ROOT)/services/app/usyscall.o +arch_usyscall = $(KERNEL_ROOT)/services/app/arch_usyscall.o +session = $(KERNEL_ROOT)/services/app/session.o +libipc = $(KERNEL_ROOT)/services/app/libipc.o +libsem = $(KERNEL_ROOT)/services/app/libsemaphore.o + +usb_components = $(KERNEL_ROOT)/services/drivers/usb/components/rndis_host.o \ + $(KERNEL_ROOT)/services/drivers/usb/components/usb_hc_xhci.o \ + $(KERNEL_ROOT)/services/drivers/usb/components/usb_mem.o \ + $(KERNEL_ROOT)/services/drivers/usb/components/usb_osal.o \ + $(KERNEL_ROOT)/services/drivers/usb/components/usbh_core.o \ + $(KERNEL_ROOT)/services/drivers/usb/components/usbh_hub.o \ + $(KERNEL_ROOT)/services/drivers/usb/components/usbh_rndis.o \ + $(KERNEL_ROOT)/services/drivers/usb/components/xhci.o + +usb_driver_service: ${objs} @echo "generate $^" + @${ld} ${user_ldflags} -e main -o $@ $^ ${usb_components} ${libserial} ${printf} ${libmem} ${usyscall} ${arch_usyscall} ${session} ${libipc} ${libsem} ${board_specs} + @${objdump} -S $@ > $@.asm %.o: %.c @echo "cc $^"