From: Caisking <3449750381@qq.com> Date: Fri, 1 Dec 2023 01:52:48 +0000 (+0800) Subject: WSL测试提交 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=2575c038779871a6b6698fb43e4aa433ffa9767c;p=mirrors%2FFD230.git WSL测试提交 --- diff --git a/.deveco/deveco.ini b/.deveco/deveco.ini index 21fd85532..85aa9a493 100644 --- a/.deveco/deveco.ini +++ b/.deveco/deveco.ini @@ -1,46 +1,46 @@ -; DevEco Project Configuration File -; Version: 3.0.4 -; Core Version: 4.0.400 - -[env] -download_type = -download_name = -download_url = -download_size = -is_reload_rust = init -download_status = -download_profile = -profile_pdf = -framework = cmake - -[env:brandy] -platform = cfbb -board = brandy -framework = cmake -upload_port = -upload_protocol = burn-serial -suite_burn_enable = no -upload_partitions = partition:brandy_app -upload_reset = no -upload_speed = 750000 -build_type = debug -debug_client = gdb -debug_tool = jlink -debug_interface = swd -debug_elf = ./software/code/sdk/output/brandy/acore/brandy-liteos/application.elf -debug_device = CPU CORE|RISC-V|RISC-V -monitor_port = -monitor_speed = 115200 -analysis_compiler_path = ./software/code/sdk/tools/bin/compiler/linx/linx_170/linx-llvm-binary-debug/linx-llvm-binary-release-win-musl/bin/riscv32 -compiler_bin_path = D:\tool\DevTools_CFBB_V1.0.6 -custom_build_command = brandy-native-js -release -nhso -analysis_rec_stats = 1 -analysis_mode = 0 -build_config_path = ./software/code/sdk/build/config/target_config/brandy/image_analysis_cfg/module.json - -[partition:brandy_app] -partition_env = brandy -partition_type = app -partition_board = brandy -partition_platform = cfbb -partition_bin = C:\Users\caiking\project\1.haisi\FD230\code\sdk\tools\pkg\fwpkg\brandy\upload_app.fwpkg +; DevEco Project Configuration File +; Version: 3.0.4 +; Core Version: 4.0.400 + +[env] +download_type = +download_name = +download_url = +download_size = +is_reload_rust = init +download_status = +download_profile = +profile_pdf = +framework = cmake + +[env:brandy] +platform = cfbb +board = brandy +framework = cmake +upload_port = +upload_protocol = burn-serial +suite_burn_enable = no +upload_partitions = partition:brandy_app +upload_reset = no +upload_speed = 750000 +build_type = debug +debug_client = gdb +debug_tool = jlink +debug_interface = swd +debug_elf = ./software/code/sdk/output/brandy/acore/brandy-liteos/application.elf +debug_device = CPU CORE|RISC-V|RISC-V +monitor_port = +monitor_speed = 115200 +analysis_compiler_path = ./software/code/sdk/tools/bin/compiler/linx/linx_170/linx-llvm-binary-debug/linx-llvm-binary-release-win-musl/bin/riscv32 +compiler_bin_path = D:\tool\DevTools_CFBB_V1.0.6 +custom_build_command = brandy-native-js -release -nhso +analysis_rec_stats = 1 +analysis_mode = 0 +build_config_path = ./software/code/sdk/build/config/target_config/brandy/image_analysis_cfg/module.json + +[partition:brandy_app] +partition_env = brandy +partition_type = app +partition_board = brandy +partition_platform = cfbb +partition_bin = C:\Users\caiking\project\1.haisi\FD230\code\sdk\tools\pkg\fwpkg\brandy\upload_app.fwpkg diff --git a/.vscode/launch.json b/.vscode/launch.json index a545150f8..b12bca77e 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,34 +1,34 @@ -{ - "version": "0.2.0", - "configurations": [ - // Deveco auto-generated start - { - "type": "deveco-device-tool-debug", - "request": "launch", - "DevEcoDebugInitPath": "${workspaceRoot}/.deveco/.debug-cache/brandy", - "servertype": "jlink", - "name": "brandy: DevEco GDB Launch", - "executable": "D:/work/haisi/FD230/./software/code/sdk/output/brandy/acore/brandy-liteos/application.elf", - "toolchainBinDir": "D:/tool/DevTools_CFBB_V1.0.6/cc_riscv32_win_env", - "projectEnvName": "brandy", - "coreDir": "D:/tool/DevEco-Device-Tool/core", - "preLaunchTask": "deveco: run debug server - brandy", - "internalConsoleOptions": "openOnSessionStart" - }, - { - "type": "deveco-device-tool-debug", - "request": "attach", - "DevEcoDebugInitPath": "${workspaceRoot}/.deveco/.debug-cache/brandy", - "servertype": "jlink", - "name": "brandy: DevEco GDB Attach", - "executable": "D:/work/haisi/FD230/./software/code/sdk/output/brandy/acore/brandy-liteos/application.elf", - "toolchainBinDir": "D:/tool/DevTools_CFBB_V1.0.6/cc_riscv32_win_env", - "projectEnvName": "brandy", - "coreDir": "D:/tool/DevEco-Device-Tool/core", - "preLaunchTask": "deveco: run debug server - brandy", - "internalConsoleOptions": "openOnSessionStart" - } - // Deveco auto-generated end - - ] -} +{ + "version": "0.2.0", + "configurations": [ + // Deveco auto-generated start + { + "type": "deveco-device-tool-debug", + "request": "launch", + "DevEcoDebugInitPath": "${workspaceRoot}/.deveco/.debug-cache/brandy", + "servertype": "jlink", + "name": "brandy: DevEco GDB Launch", + "executable": "//wsl.localhost/Ubuntu-20.04/home/caiking/FD230/./software/code/sdk/output/brandy/acore/brandy-liteos/application.elf", + "toolchainBinDir": "", + "projectEnvName": "brandy", + "coreDir": "C:/Users/caiking/my_app/DevEco-Device-Tool/core", + "preLaunchTask": "deveco: run debug server - brandy", + "internalConsoleOptions": "openOnSessionStart" + }, + { + "type": "deveco-device-tool-debug", + "request": "attach", + "DevEcoDebugInitPath": "${workspaceRoot}/.deveco/.debug-cache/brandy", + "servertype": "jlink", + "name": "brandy: DevEco GDB Attach", + "executable": "//wsl.localhost/Ubuntu-20.04/home/caiking/FD230/./software/code/sdk/output/brandy/acore/brandy-liteos/application.elf", + "toolchainBinDir": "", + "projectEnvName": "brandy", + "coreDir": "C:/Users/caiking/my_app/DevEco-Device-Tool/core", + "preLaunchTask": "deveco: run debug server - brandy", + "internalConsoleOptions": "openOnSessionStart" + } + // Deveco auto-generated end + + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json index ca85d76ca..197abf04b 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -13,5 +13,6 @@ "thread": "cpp", "chrono": "cpp", "iostream": "cpp" - } + }, + "cmake.sourceDirectory": "/wsl.localhost/Ubuntu-20.04/home/caiking/FD230/code/sdk/include/driver/security_unified" } \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 88bfb319c..9e2269bc3 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -7,13 +7,13 @@ "problemMatcher": [ "$deveco" ], - "command": "D:\\tool\\DevEco-Device-Tool\\core\\deveco-venv\\Scripts\\hos.exe", + "command": "C:\\Users\\caiking\\my_app\\DevEco-Device-Tool\\core\\deveco-venv\\Scripts\\hos.exe", "args": [ "run", "--target", "clean", "--project-dir", - "D:\\work\\haisi\\FD230", + "\\\\wsl.localhost\\Ubuntu-20.04\\home\\caiking\\FD230", "--environment", "brandy" ] @@ -24,11 +24,11 @@ "problemMatcher": [ "$deveco" ], - "command": "D:\\tool\\DevEco-Device-Tool\\core\\deveco-venv\\Scripts\\hos.exe", + "command": "C:\\Users\\caiking\\my_app\\DevEco-Device-Tool\\core\\deveco-venv\\Scripts\\hos.exe", "args": [ "run", "--project-dir", - "D:\\work\\haisi\\FD230", + "\\\\wsl.localhost\\Ubuntu-20.04\\home\\caiking\\FD230", "--environment", "brandy" ] @@ -39,7 +39,7 @@ "problemMatcher": [ "$deveco" ], - "command": "D:\\tool\\DevEco-Device-Tool\\core\\deveco-venv\\Scripts\\hos.exe", + "command": "C:\\Users\\caiking\\my_app\\DevEco-Device-Tool\\core\\deveco-venv\\Scripts\\hos.exe", "args": [ "run", "--target", @@ -47,7 +47,7 @@ "--target", "buildprog", "--project-dir", - "D:\\work\\haisi\\FD230", + "\\\\wsl.localhost\\Ubuntu-20.04\\home\\caiking\\FD230", "--environment", "brandy" ] @@ -58,7 +58,7 @@ "problemMatcher": [ "$deveco" ], - "command": "D:\\tool\\DevEco-Device-Tool\\core\\deveco-venv\\Scripts\\hos.exe", + "command": "C:\\Users\\caiking\\my_app\\DevEco-Device-Tool\\core\\deveco-venv\\Scripts\\hos.exe", "args": [ "run", "--target", @@ -71,13 +71,13 @@ "problemMatcher": [ "$deveco" ], - "command": "D:\\tool\\DevEco-Device-Tool\\core\\deveco-venv\\Scripts\\hos.exe", + "command": "C:\\Users\\caiking\\my_app\\DevEco-Device-Tool\\core\\deveco-venv\\Scripts\\hos.exe", "args": [ "run", "--target", "upload", "--project-dir", - "D:\\work\\haisi\\FD230", + "\\\\wsl.localhost\\Ubuntu-20.04\\home\\caiking\\FD230", "--environment", "brandy" ] @@ -88,13 +88,13 @@ "problemMatcher": [ "$deveco" ], - "command": "D:\\tool\\DevEco-Device-Tool\\core\\deveco-venv\\Scripts\\hos.exe", + "command": "C:\\Users\\caiking\\my_app\\DevEco-Device-Tool\\core\\deveco-venv\\Scripts\\hos.exe", "args": [ "run", "--target", "stackAnalysis", "--project-dir", - "D:\\work\\haisi\\FD230", + "\\\\wsl.localhost\\Ubuntu-20.04\\home\\caiking\\FD230", "--environment", "brandy" ] @@ -105,13 +105,13 @@ "problemMatcher": [ "$deveco" ], - "command": "D:\\tool\\DevEco-Device-Tool\\core\\deveco-venv\\Scripts\\hos.exe", + "command": "C:\\Users\\caiking\\my_app\\DevEco-Device-Tool\\core\\deveco-venv\\Scripts\\hos.exe", "args": [ "run", "--target", "imageAnalysis", "--project-dir", - "D:\\work\\haisi\\FD230", + "\\\\wsl.localhost\\Ubuntu-20.04\\home\\caiking\\FD230", "--environment", "brandy" ] @@ -129,7 +129,7 @@ "endsPattern": "^.*Listening\\son\\sTCP/IP\\sport.*" } }, - "command": "D:\\tool\\DevEco-Device-Tool\\core\\deveco-venv\\Scripts\\hos.exe", + "command": "C:\\Users\\caiking\\my_app\\DevEco-Device-Tool\\core\\deveco-venv\\Scripts\\hos.exe", "args": [ "debug", "--interface=server",