From ab6a007fb735d7148c674d7388b5c204e8701cd5 Mon Sep 17 00:00:00 2001 From: sfohos Date: Wed, 15 Sep 2021 17:49:18 +0800 Subject: [PATCH] OHOS_SYSROOT_PATH typo Signed-off-by: sfohos --- en/device-dev/porting/porting-thirdparty-cmake.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 en/device-dev/porting/porting-thirdparty-cmake.md diff --git a/en/device-dev/porting/porting-thirdparty-cmake.md b/en/device-dev/porting/porting-thirdparty-cmake.md old mode 100644 new mode 100755 index b0c6419a7c..14d113166c --- a/en/device-dev/porting/porting-thirdparty-cmake.md +++ b/en/device-dev/porting/porting-thirdparty-cmake.md @@ -131,7 +131,7 @@ The following steps show how to configure and modify the toolchains for cross-co # Specify the C++ compiler (ensure that the path of the toolchain has been added to the PATH environment variable) and its flags. To perform cross-compilation, the --target flag must be specified. set(CMAKE_CXX_COMPILER clang++) set(CMAKE_CXX_FLAGS "--target=arm-liteos -D__clang__ -march=armv7-a -w") - # Specify the linker and its flags. --target and --sysroot must be specified. You can specify OHOS_ROOT_PATH via the suffix parameter of the cmake command. + # Specify the linker and its flags. --target and --sysroot must be specified. You can specify OHOS_SYSROOT_PATH via the suffix parameter of the cmake command. set(MY_LINK_FLAGS "--target=arm-liteos --sysroot=${OHOS_SYSROOT_PATH}") set(CMAKE_LINKER clang) set(CMAKE_CXX_LINKER clang++) -- GitLab