dev: add functions to create device objects

This commit is contained in:
2023-04-03 16:59:14 +01:00
parent 7c6f619b96
commit 5b53168c5f
8 changed files with 105 additions and 1 deletions

View File

@@ -20,7 +20,7 @@ include arch/$(SOCKS_ARCH)/config.mk
# Platform-independent kernel source files
####################################
KERNEL_SRC_DIRS := init kernel vm ds util obj sched test
KERNEL_SRC_DIRS := init kernel vm ds util obj sched dev test
KERNEL_C_FILES := $(foreach dir,$(KERNEL_SRC_DIRS),$(wildcard $(dir)/*.c))
KERNEL_CXX_FILES := $(foreach dir,$(KERNEL_SRC_DIRS),$(wildcard $(dir)/*.cpp))
KERNEL_OBJ := $(addprefix $(BUILD_DIR)/,$(KERNEL_C_FILES:.c=.o) $(KERNEL_CXX_FILES:.cpp=.o))