Add compiling rndis.

This commit is contained in:
songyanguang 2024-07-09 16:34:10 +08:00
parent 7cb39f992c
commit b623803db4
2 changed files with 13 additions and 2 deletions

View File

@ -1,4 +1,4 @@
SRC_DIR := hub
SRC_DIR := hub wireless
include $(KERNEL_ROOT)/compiler.mk
include $(KERNEL_ROOT)/compiler.mk

View File

@ -0,0 +1,11 @@
include $(KERNEL_ROOT)/services/drivers/usb/components/usb.mk
objs = usbh_rndis.o rndis_host.o
all: ${objs}
@echo "generate $^"
@mv $^ $(KERNEL_ROOT)/services/drivers/usb/components
%.o: %.c
@echo "cc $^"
@${cc} ${cflags} ${c_useropts} ${INC_DIR} -o $@ -c $^