mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-25 18:23:22 +00:00
新加结构体POSIXSTATFS与SuperBlock用于处理statfs系统调用 (#667)
* 新加结构体POSIXSTATFS与SuperBlock用于处理statfs系统调用
This commit is contained in:
20
user/apps/test_fstatfs/Makefile
Normal file
20
user/apps/test_fstatfs/Makefile
Normal file
@ -0,0 +1,20 @@
|
||||
ifeq ($(ARCH), x86_64)
|
||||
CROSS_COMPILE=x86_64-linux-musl-
|
||||
else ifeq ($(ARCH), riscv64)
|
||||
CROSS_COMPILE=riscv64-linux-musl-
|
||||
endif
|
||||
|
||||
CC=$(CROSS_COMPILE)gcc
|
||||
|
||||
.PHONY: all
|
||||
all: main.c
|
||||
$(CC) -static -o test_fstatfs main.c
|
||||
|
||||
.PHONY: install clean
|
||||
install: all
|
||||
mv test_fstatfs $(DADK_CURRENT_BUILD_DIR)/test_fstatfs
|
||||
|
||||
clean:
|
||||
rm test_fstatfs *.o
|
||||
|
||||
fmt:
|
Reference in New Issue
Block a user