mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-08 14:16:47 +00:00
* feat: 支持动态链接 Authored-By: chiichen <chiichen@qq.com> Co-authored-by: longjin <longjin@DragonOS.org> Signed-off-by: longjin <longjin@DragonOS.org> * build: 更新构建容器版本至v1.12并指定DADK安装版本 - 将BUILD_CONTAINER_VERSION从v1.11升级到v1.12 - 修改bootstrap.sh和user/Makefile中DADK的安装方式,明确指定版本v0.4.0 Signed-off-by: longjin <longjin@DragonOS.org> --------- Signed-off-by: longjin <longjin@dragonos.org> Co-authored-by: chiichen <chiichen@qq.com> Co-authored-by: longjin <longjin@dragonos.org> Co-authored-by: Jomo <xuzihao@dragonos.org> Co-authored-by: MemoryShore <1353318529@qq.com>
21 lines
344 B
Makefile
21 lines
344 B
Makefile
ifeq ($(ARCH), x86_64)
|
|
CROSS_COMPILE=x86_64-linux-gnu-
|
|
else ifeq ($(ARCH), riscv64)
|
|
CROSS_COMPILE=riscv64-linux-musl-
|
|
endif
|
|
|
|
CC=$(CROSS_COMPILE)gcc
|
|
|
|
.PHONY: all
|
|
all: main.c
|
|
$(CC) -o test_newfstatat main.c
|
|
|
|
.PHONY: install clean
|
|
install: all
|
|
mv test_newfstatat $(DADK_CURRENT_BUILD_DIR)/test_newfstatat
|
|
|
|
clean:
|
|
rm test_newfstatat *.o
|
|
|
|
fmt:
|