summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/cmake/cmake/OEToolchainConfig.cmake
diff options
context:
space:
mode:
authorMartin Beeger <martin.beeger@online.de>2022-07-18 18:50:23 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-02 11:29:59 +0100
commit848d57ebe52375f9d7ac70baa842894b7b5134c3 (patch)
tree8854e501ea97da37fb77ea91ae5c005878ad2f2c /meta/recipes-devtools/cmake/cmake/OEToolchainConfig.cmake
parentaf65f0cd842a1ca3779c29a20e2160847de83c42 (diff)
downloadpoky-848d57ebe52375f9d7ac70baa842894b7b5134c3.tar.gz
cmake: remove CMAKE_ASM_FLAGS variable in toolchain file
As discussied in [YOCTO #14717] cmake contains a OEToolchainConfig.cmake file to configure the toolchain correctly in cross-compile build for recipes using cmake. The CMAKE_ASM_FLAGS are the configuration are meant for assembly, but the spelling is incorrect and the Flag is ASFLAGS for gcc and other compilers. So this variable might neever have worked and it is better for recipes to specify their own. (From OE-Core rev: 72729ffbab53f95ee9dd1bc22913d9b864495930) Signed-off-by: Martin Beeger <martin.beeger@online.de> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/cmake/cmake/OEToolchainConfig.cmake')
-rw-r--r--meta/recipes-devtools/cmake/cmake/OEToolchainConfig.cmake1
1 files changed, 0 insertions, 1 deletions
diff --git a/meta/recipes-devtools/cmake/cmake/OEToolchainConfig.cmake b/meta/recipes-devtools/cmake/cmake/OEToolchainConfig.cmake
index 86446c3ace..3ddef12c83 100644
--- a/meta/recipes-devtools/cmake/cmake/OEToolchainConfig.cmake
+++ b/meta/recipes-devtools/cmake/cmake/OEToolchainConfig.cmake
@@ -1,7 +1,6 @@
1set( CMAKE_SYSTEM_NAME Linux ) 1set( CMAKE_SYSTEM_NAME Linux )
2set( CMAKE_C_FLAGS $ENV{CFLAGS} CACHE STRING "" FORCE ) 2set( CMAKE_C_FLAGS $ENV{CFLAGS} CACHE STRING "" FORCE )
3set( CMAKE_CXX_FLAGS $ENV{CXXFLAGS} CACHE STRING "" FORCE ) 3set( CMAKE_CXX_FLAGS $ENV{CXXFLAGS} CACHE STRING "" FORCE )
4set( CMAKE_ASM_FLAGS ${CMAKE_C_FLAGS} CACHE STRING "" FORCE )
5set( CMAKE_SYSROOT $ENV{OECORE_TARGET_SYSROOT} ) 4set( CMAKE_SYSROOT $ENV{OECORE_TARGET_SYSROOT} )
6 5
7set( CMAKE_FIND_ROOT_PATH $ENV{OECORE_TARGET_SYSROOT} ) 6set( CMAKE_FIND_ROOT_PATH $ENV{OECORE_TARGET_SYSROOT} )