mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-08 18:26:48 +00:00
fix(pipe): 增强FIFO管道的读写逻辑,解决问题一:非阻塞模式下的无写端错误返回 feat(test_fifo_write): 增强FIFO写入测试,添加信号处理、非阻塞模式支持和多场景测试 --------- Signed-off-by: xiaolin2004 <1553367438@qq.com> Co-authored-by: xiaolin2004 <1553367438@qq.com>
21 lines
353 B
Makefile
21 lines
353 B
Makefile
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_fifo_write main.c
|
|
|
|
.PHONY: install clean
|
|
install: all
|
|
mv test_fifo_write $(DADK_CURRENT_BUILD_DIR)/test_fifo_write
|
|
|
|
clean:
|
|
rm test_fifo_write *.o
|
|
|
|
fmt:
|