Modify Makefiles

This commit is contained in:
xj 2024-06-06 02:12:13 -07:00
parent d1b462b83f
commit 09e7094ec3
3 changed files with 16 additions and 1 deletions

View File

@ -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

View File

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

View File

@ -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 $^