Files
maoxiaochuan 8114380ba5 Update to 6173f226070258
1. 添加python gevent库编译(但只支持LA)
2. 添加python gevent websocket 的编译支持
3. 更新 containerd 版本和补丁,修复编译问题
4. 添加 python pyaudio 的编译支持
5. 更新go的代理修复下载失败的问题
6. glibc版本使用2.38
7. gcc构建添加 <arch>-linux-<lib_c_name e.g. gnu musl> 格式的文件
8. 添加构建交叉编译工具链的配置
9. 添加代理使perl的资源下载更快
10. 添加pigz的压缩rootfs支持,加快构建速度
11. loongarch 支持systemd
12. 添加systemd的窗口自动登录root的功能
13. busybox的tar命令支持 tar -z 和 rev 命令
14. systemd支持自动登陆tty0(通常为屏幕)
15. 修复找不到 console-getty@.service 的bug
16. BR2_PACKAGE_QT5_JSCORE_AVAILABLE使能
17. qt5base支持LA架构编译
18. qt5script 支持 LA 架构编译
19. 修复高版本binutils(>=2.22)导致链接动态库失败的问题
20. 修复mpv使用高版本的waf不能编译的问题
21. 修复当使能WCHAR时procps-ng的编译错误
22. 2k300添加udev规则固定网口设备名字为ethX的格式
23. top命令使用新默认格式格式
24. linuxrc在systemd作为启动进程时,指向/sbin/init,修复不能启动的问题
25. busybox启动支持终端自动登录root
26. busybox启动时tty0支持登陆终端
27. 添加广东龙芯的部分自定义的package
28. 修复tty0显示终端时Qt程序被遮挡的问题
29. 修复设置默认ip失败的问题
30. 更新sdl2支持KMS DRM时无需编译opengl
31. 支持思源宋体
32. 支持在 /etc/profile 声明QT_QPA_FS_TSLIB=1
33. 2k300默认使用tslib作为qt input源
34. 添加编译Qt5的交叉编译套件的配置
35. 添加 quectel-CM 编译
36. 添加内核打包功能
37. 2k300添加strace的编译
38. 添加2k500的简易支持
39. 添加2k1000的简易支持
40. 添加嵌入式系统可用的虚拟键盘
41. 使用自定义的inputrc规则
42. 添加使用自定义systemd timesyncd 的配置
43. 添加默认自定义vimrc,支持中文显示
44. 添加opencv4的编译配置
45. 添加 stressapptest 的支持
46. 支持将RPi.GPIO的demo放入系统中
47. Qt5的交叉编译套件添加sqlite3库的编译支持
48. 添加脚本用于快速选择板卡配置文件
49. 添加gdbserver编译支持

Signed-off-by: maoxiaochuan <maoxiaochuan@loongson.cn>
2025-02-13 13:15:50 +08:00

100 lines
3.9 KiB
Makefile

################################################################################
#
# ls3_system_tool
#
################################################################################
LS3_SYSTEM_TOOL_VERSION = origin/master
LS3_SYSTEM_TOOL_SITE = http://192.168.1.5/ls3_system_tool
LS3_SYSTEM_TOOL_SITE_METHOD = git
LS3_SYSTEM_TOOL_GIT_SUBMODULES = YES
LS3_SYSTEM_TOOL_CFLAGS = $(TARGET_CFLAGS)
ifeq ($(BR2_PACKAGE_LS3_SYSTEM_TOOL_QT),y)
LS3_SYSTEM_TOOL_DEPENDENCIES = qt5base
endif
#define LS3_SYSTEM_TOOL_EXTRACT_CMDS
#endef
#$(TARGET_MAKE_ENV) $(MAKE) CC=$(TARGET_CC) AR=$(TARGET_AR) -C $(@D)
define LS3_SYSTEM_TOOL_BUILD_SINGLE_TEST_CASE
cd $(@D)/test_case_single && ./build_single_test.sh $(TARGET_CC) $(TARGET_CXX)
endef
ifeq ($(BR2_PACKAGE_LS3_SYSTEM_TOOL_QT),y)
define LS3_SYSTEM_TOOL_BUILD_QT_VER_CMDS
mkdir -p $(@D)/Qtver/build && cd $(@D)/Qtver/build && $(HOST_DIR)/bin/qmake ../ls_system_tool/ls_system_tool.pro && $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/Qtver/build
endef
define LS3_SYSTEM_TOOL_INSTALL_QT_VER_CMDS
echo "install Qt version sofeware" && cd $(@D)/Qtver/build/ && cp ls_system_tool $(TARGET_DIR)/usr/bin/ls_system_tool_qt
endef
else
define LS3_SYSTEM_TOOL_BUILD_QT_VER_CMDS
echo "not build Qt version"
endef
define LS3_SYSTEM_TOOL_INSTALL_QT_VER_CMDS
echo "not install Qt version"
endef
endif
define LS3_SYSTEM_TOOL_INSTALL_SINGLE_TEST_CASE
cd $(TARGET_DIR)/ && mkdir -p ./root/loongson_test_case && cd $(@D)/test_case_single/out/loongson_test_case && cp -r * $(TARGET_DIR)/root/loongson_test_case/
endef
ifeq ($(BR2_PACKAGE_LS3_SYSTEM_TOOL_QT_AUTO_START),y)
ifeq ($(BR2_PACKAGE_BOOT_RUN),y)
define LS3_SYSTEM_TOOL_INSTALL_AUTO_EXEC_AFTER_BOOT_CMDS
echo "auto run in boot in /root/boot_run.sh"
endef
else
define LS3_SYSTEM_TOOL_INSTALL_AUTO_EXEC_AFTER_BOOT_CMDS
echo "install auto boot Qt version sofeware service" && cd $(TOPDIR)/package/ls3_system_tool/ && cp ls3_system_tool.service $(TARGET_DIR)/usr/lib/systemd/system/ && cd $(TARGET_DIR)/usr/lib/systemd/system/ && mkdir -p multi-user.target.wants && cd $(TARGET_DIR)/usr/lib/systemd/system/multi-user.target.wants && ln -s -f ../ls3_system_tool.service ls3_system_tool.service
endef
endif
else
define LS3_SYSTEM_TOOL_INSTALL_AUTO_EXEC_AFTER_BOOT_CMDS
echo "nothing to do"
endef
endif
# echo "first cmake all single test case"
# cd $(@D) && mkdir -p build && cd ./build && cmake -D CMAKE_C_COMPILER=$(TARGET_CC) ../
# $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/build/
# cd $(@D) && export CC=$(TARGET_CC); export $(TARGET_MAKE_ENV); export ARCH=$(BR2_ARCH); export CROSS_COMPILE=$(BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX)-; ./compile_ob_cp.sh && ./install_single_test.sh
define LS3_SYSTEM_TOOL_BUILD_CMDS
$(LS3_SYSTEM_TOOL_BUILD_SINGLE_TEST_CASE)
echo "build cmd version sofeware"
cd $(@D) && export $(TARGET_MAKE_ENV); export CC=$(TARGET_CC); export ARCH=$(BR2_ARCH); export CROSS_COMPILE=$(BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX)-; ./build.sh rebuild
$(LS3_SYSTEM_TOOL_BUILD_QT_VER_CMDS)
endef
define LS3_SYSTEM_TOOL_INSTALL_STAGING_CMDS
echo "nothing to do"
endef
# echo "install all single test case"
# cd $(TARGET_DIR)/ && mkdir -p ./root/loongson_test_case
# cd $(@D) && cd out/loongson_test_case/ && cp -r * $(TARGET_DIR)/root/loongson_test_case/
# echo "install test-server(all test case test tool)"
# mkdir -p $(TARGET_DIR)/root/loongson-test-server
# cd $(@D)/test-server-project && cp test-server $(TARGET_DIR)/root/loongson-test-server
# #cd $(@D)/test-server-project && cp can_client $(TARGET_DIR)/root/loongson-test-server
define LS3_SYSTEM_TOOL_INSTALL_TARGET_CMDS
$(LS3_SYSTEM_TOOL_INSTALL_SINGLE_TEST_CASE)
cd $(@D) && ./package_output.sh
cd $(@D)/ls_system_tool_install && cp ls_system_tool $(TARGET_DIR)/usr/bin/
mkdir -p $(TARGET_DIR)/opt/ls_system_config
cd $(@D)/ls_system_tool_install && cp -a shell $(TARGET_DIR)/opt/ls_system_config/
$(LS3_SYSTEM_TOOL_INSTALL_QT_VER_CMDS)
$(LS3_SYSTEM_TOOL_INSTALL_AUTO_EXEC_AFTER_BOOT_CMDS)
endef
$(eval $(generic-package))