mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-28 00:33:25 +00:00
实现pty,附带测试程序 (#685)
* 实现pty,附带测试程序 * fmt ** clippy * 将file层的锁粒度缩小,从而不使用no_preempt。更改pipe在sleep部分的bug * 修复拼写错误
This commit is contained in:
20
user/apps/test_pty/Makefile
Normal file
20
user/apps/test_pty/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
|
||||
|
||||
|
||||
all:
|
||||
$(CC) -static -o test_pty test_pty.c
|
||||
|
||||
.PHONY: install clean
|
||||
install: all
|
||||
mv test_pty $(DADK_CURRENT_BUILD_DIR)/test_pty
|
||||
|
||||
clean:
|
||||
rm test_pty *.o
|
||||
|
||||
fmt:
|
Reference in New Issue
Block a user