Skip to content

Commit

Permalink
fs: create server library out of nfs code
Browse files Browse the repository at this point in the history
Signed-off-by: James Archer <[email protected]>
  • Loading branch information
JE-Archer committed Jan 10, 2025
1 parent 45c491c commit 9a5385f
Show file tree
Hide file tree
Showing 10 changed files with 362 additions and 317 deletions.
5 changes: 4 additions & 1 deletion components/fs/fat/fat.mk
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ fat/$(FAT_LIBMICROKITCO_OBJ): fat
LLVM:=1 \
LIBMICROKITCO_OPT_PATH=$(FAT_LIBMICROKITCO_OPT_PATH)

LIB_FS_SERVER_LIBC_INCLUDE := $(FAT_LIBC_INCLUDE)
include $(LIONSOS)/lib/fs/server/lib_fs_server.mk

fat:
mkdir -p fat

Expand All @@ -69,7 +72,7 @@ fat/%.o: CFLAGS += $(FAT_CFLAGS)
fat/%.o: $(FAT_SRC_DIR)/%.c $(FAT_LIBC_INCLUDE) $(CHECK_FAT_FLAGS_MD5) |fat
$(CC) -c $(CFLAGS) $< -o $@

fat.elf: $(FAT_OBJ) fat/$(FAT_LIBMICROKITCO_OBJ) $(FAT_LIBC_LIB)
fat.elf: $(FAT_OBJ) fat/$(FAT_LIBMICROKITCO_OBJ) $(FAT_LIBC_LIB) lib_fs_server.a
$(LD) $(LDFLAGS) $^ $(LIBS) -o $@

-include $(FAT_OBJ:.o=.d)
Loading

0 comments on commit 9a5385f

Please sign in to comment.