Files
xiuos/Ubiquitous/XiZi_AIoT/services/drivers/usb/usb_service/Makefile
T
2024-09-11 19:11:45 +08:00

38 lines
1.6 KiB
Makefile

include $(KERNEL_ROOT)/services/drivers/usb/components/usb.mk
objs = usb_host.o
objs += $(KERNEL_ROOT)/services/net/libnet/lwip_rndis_service.o
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/dwc3.o \
$(KERNEL_ROOT)/services/drivers/usb/components/rk3568_usb.o \
$(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/usb_phy.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
@mv $@ $(KERNEL_ROOT)/services/app
@mv $@.asm $(KERNEL_ROOT)/services/app
%.o: %.c
@echo "cc $^"
@${cc} ${cflags} ${c_useropts} ${INC_DIR} -o $@ -c $^