Skip to content

Commit b2a0d64

Browse files
committed
Add cmake 3.22.3 to recipes-devtools to fix dunfell compile
1 parent d9196ec commit b2a0d64

12 files changed

+522
-0
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
require cmake.inc
2+
inherit native
3+
4+
DEPENDS += "bzip2-replacement-native xz-native zlib-native curl-native ncurses-native zstd-native"
5+
6+
SRC_URI += "file://OEToolchainConfig.cmake \
7+
file://environment.d-cmake.sh \
8+
file://0001-CMakeDetermineSystem-use-oe-environment-vars-to-load.patch \
9+
file://0005-Disable-use-of-ext2fs-ext2_fs.h-by-cmake-s-internal-.patch \
10+
"
11+
12+
LICENSE:append = " & BSD-1-Clause & MIT & BSD-2-Clause"
13+
LIC_FILES_CHKSUM:append = " \
14+
file://Utilities/cmjsoncpp/LICENSE;md5=fa2a23dd1dc6c139f35105379d76df2b \
15+
file://Utilities/cmlibarchive/COPYING;md5=d499814247adaee08d88080841cb5665 \
16+
file://Utilities/cmexpat/COPYING;md5=9e2ce3b3c4c0f2670883a23bbd7c37a9 \
17+
file://Utilities/cmlibrhash/COPYING;md5=a8c2a557a5c53b1c12cddbee98c099af \
18+
file://Utilities/cmlibuv/LICENSE;md5=a68902a430e32200263d182d44924d47 \
19+
"
20+
21+
B = "${WORKDIR}/build"
22+
do_configure[cleandirs] = "${B}"
23+
24+
CMAKE_EXTRACONF = "\
25+
-DCMAKE_LIBRARY_PATH=${STAGING_LIBDIR_NATIVE} \
26+
-DBUILD_CursesDialog=1 \
27+
-DCMAKE_USE_SYSTEM_LIBRARIES=1 \
28+
-DCMAKE_USE_SYSTEM_LIBRARY_JSONCPP=0 \
29+
-DCMAKE_USE_SYSTEM_LIBRARY_LIBARCHIVE=0 \
30+
-DCMAKE_USE_SYSTEM_LIBRARY_LIBUV=0 \
31+
-DCMAKE_USE_SYSTEM_LIBRARY_LIBRHASH=0 \
32+
-DCMAKE_USE_SYSTEM_LIBRARY_EXPAT=0 \
33+
-DENABLE_ACL=0 -DHAVE_ACL_LIBACL_H=0 \
34+
-DHAVE_SYS_ACL_H=0 \
35+
-DCURL_LIBRARIES=-lcurl \
36+
"
37+
38+
do_configure () {
39+
${S}/configure --verbose --prefix=${prefix} \
40+
${@oe.utils.parallel_make_argument(d, '--parallel=%d')} \
41+
${@bb.utils.contains('CCACHE', 'ccache ', '--enable-ccache', '', d)} \
42+
-- ${CMAKE_EXTRACONF}
43+
}
44+
45+
do_compile() {
46+
oe_runmake
47+
}
48+
49+
do_install() {
50+
oe_runmake 'DESTDIR=${D}' install
51+
52+
# The following codes are here because eSDK needs to provide compatibilty
53+
# for SDK. That is, eSDK could also be used like traditional SDK.
54+
mkdir -p ${D}${datadir}/cmake
55+
install -m 644 ${WORKDIR}/OEToolchainConfig.cmake ${D}${datadir}/cmake/
56+
mkdir -p ${D}${base_prefix}/environment-setup.d
57+
install -m 644 ${WORKDIR}/environment.d-cmake.sh ${D}${base_prefix}/environment-setup.d/cmake.sh
58+
59+
# Help docs create tons of files in the native sysroot and aren't needed there
60+
rm -rf ${D}${datadir}/cmake-*/Help
61+
}
62+
63+
do_compile[progress] = "percent"
64+
65+
SYSROOT_DIRS_NATIVE += "${datadir}/cmake ${base_prefix}/environment-setup.d"

recipes-devtools/cmake/cmake.inc

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Copyright (C) 2005, Koninklijke Philips Electronics NV. All Rights Reserved
2+
# Released under the MIT license (see packages/COPYING)
3+
4+
SUMMARY = "Cross-platform, open-source make system"
5+
DESCRIPTION = "CMake is used to control the software compilation process \
6+
using simple platform and compiler independent configuration files. CMake \
7+
generates native makefiles and workspaces that can be used in the compiler \
8+
environment of your choice."
9+
HOMEPAGE = "http://www.cmake.org/"
10+
BUGTRACKER = "http://public.kitware.com/Bug/my_view_page.php"
11+
SECTION = "console/utils"
12+
LICENSE = "BSD-3-Clause"
13+
LIC_FILES_CHKSUM = "file://Copyright.txt;md5=31023e1d3f51ca90a58f55bcee8e2339 \
14+
file://Source/cmake.h;beginline=1;endline=2;md5=a5f70e1fef8614734eae0d62b4f5891b \
15+
"
16+
17+
CMAKE_MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:2])}"
18+
19+
SRC_URI = "https://cmake.org/files/v${CMAKE_MAJOR_VERSION}/cmake-${PV}.tar.gz \
20+
file://0001-CMakeDetermineCompilerABI-Strip-pipe-from-compile-fl.patch \
21+
file://0003-cmake-support-OpenEmbedded-Qt4-tool-binary-names.patch \
22+
file://0004-Fail-silently-if-system-Qt-installation-is-broken.patch \
23+
"
24+
25+
SRC_URI[sha256sum] = "9f8469166f94553b6978a16ee29227ec49a2eb5ceb608275dec40d8ae0d1b5a0"
26+
27+
UPSTREAM_CHECK_REGEX = "cmake-(?P<pver>\d+(\.\d+)+)\.tar"
28+
29+
# This is specific to the npm package that installs cmake, so isn't
30+
# relevant to OpenEmbedded
31+
CVE_CHECK_IGNORE += "CVE-2016-10642"
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
From dab7ba34f87be0172f6586325656ee962de0029e Mon Sep 17 00:00:00 2001
2+
From: Philip Lorenz <[email protected]>
3+
Date: Mon, 3 Jun 2024 13:19:24 +0200
4+
Subject: [PATCH] CMakeDetermineCompilerABI: Strip -pipe from compile flags
5+
6+
When `-pipe` is enabled, GCC passes data between its different
7+
executables using pipes instead of temporary files. This leads to issues
8+
when cmake attempts to infer compiler internals via the `-v` parameter
9+
as each executable will print to `stderr` in parallel.
10+
11+
For example we have observed the following outputs in our builds which
12+
sporadically lead to build failures as system include directories were
13+
not detected reliably:
14+
15+
Parsed CXX implicit include dir info from above output: rv=done
16+
found start of include info
17+
found start of implicit include info
18+
add: [.../usr/bin/x86_64-poky-linux/../../lib/x86_64-poky-linux/gcc/x86_64-poky-linux/11.4.0/include]
19+
add: [.../usr/bin/x86_64-poky-linux/../../lib/x86_64-poky-linux/gcc/x86_64-poky-linux/11.4.0/include-fixed]
20+
add: [.../usr/include/c++/11.4.0]
21+
add: [.../usr/include/c++/11.4.0/x86_64-poky-linux]
22+
add: [.../usr/include/c++/11.4.0/backward]
23+
add: [.../usr/lib/x86_64-poky-linux/11.4.0/include]
24+
add: [...GNU assembler version 2.38 (x86_64-poky-linux) using BFD version (GNU Binutils) 2.38.20220708]
25+
add: [/usr/include]
26+
end of search list found
27+
28+
Fix this issue by stripping the `-pipe` parameter from the compilation
29+
flag when determining the toolchain configuration.
30+
31+
Upstream-Status: Backport [3.32.0, 71be059f3f32b6791427893a48ba4815a19e2e78]
32+
Signed-off-by: Philip Lorenz <[email protected]>
33+
---
34+
Modules/CMakeDetermineCompilerABI.cmake | 5 +++++
35+
1 file changed, 5 insertions(+)
36+
37+
diff --git a/Modules/CMakeDetermineCompilerABI.cmake b/Modules/CMakeDetermineCompilerABI.cmake
38+
index 8191d819bf..ae4c9ee44e 100644
39+
--- a/Modules/CMakeDetermineCompilerABI.cmake
40+
+++ b/Modules/CMakeDetermineCompilerABI.cmake
41+
@@ -35,6 +35,11 @@ function(CMAKE_DETERMINE_COMPILER_ABI lang src)
42+
43+
# Avoid failing ABI detection on warnings.
44+
string(REGEX REPLACE "(^| )-Werror([= ][^ ]*)?( |$)" " " CMAKE_${lang}_FLAGS "${CMAKE_${lang}_FLAGS}")
45+
+ # Avoid passing of "-pipe" when determining the compiler internals. With
46+
+ # "-pipe" GCC will use pipes to pass data between the involved
47+
+ # executables. This may lead to issues when their stderr output (which
48+
+ # contains the relevant compiler internals) becomes interweaved.
49+
+ string(REGEX REPLACE "(^| )-pipe( |$)" " " CMAKE_${lang}_FLAGS "${CMAKE_${lang}_FLAGS}")
50+
51+
# Save the current LC_ALL, LC_MESSAGES, and LANG environment variables
52+
# and set them to "C" that way GCC's "search starts here" text is in
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
From 89f6c846f02ad6d30b9ebb7eaaaa4fb6f9cec054 Mon Sep 17 00:00:00 2001
2+
From: Cody P Schafer <[email protected]>
3+
Date: Thu, 27 Apr 2017 11:35:05 -0400
4+
Subject: [PATCH] CMakeDetermineSystem: use oe environment vars to load default
5+
toolchain file in sdk
6+
7+
Passing the toolchain by:
8+
9+
- shell aliases does not work if cmake is called by a script
10+
- unconditionally by a wrapper script causes cmake to believe it is
11+
configuring things when it is not (for example, `cmake --build` breaks).
12+
13+
The OE_CMAKE_TOOLCHAIN_FILE variable is only used as a default if no
14+
toolchain is explicitly specified.
15+
16+
Setting the CMAKE_TOOLCHAIN_FILE cmake variable is marked as cached
17+
because '-D' options are cache entries themselves.
18+
19+
Upstream-Status: Inappropriate [oe-core specific]
20+
Signed-off-by: Cody P Schafer <[email protected]>
21+
Signed-off-by: Otavio Salvador <[email protected]>
22+
23+
---
24+
Modules/CMakeDetermineSystem.cmake | 7 +++++++
25+
1 file changed, 7 insertions(+)
26+
27+
diff --git a/Modules/CMakeDetermineSystem.cmake b/Modules/CMakeDetermineSystem.cmake
28+
index 8c7af067..ade2b189 100644
29+
--- a/Modules/CMakeDetermineSystem.cmake
30+
+++ b/Modules/CMakeDetermineSystem.cmake
31+
@@ -112,6 +112,13 @@ else()
32+
endif()
33+
endif()
34+
35+
+if(NOT DEFINED CMAKE_TOOLCHAIN_FILE)
36+
+ if(DEFINED ENV{OE_CMAKE_TOOLCHAIN_FILE})
37+
+ set(CMAKE_TOOLCHAIN_FILE "$ENV{OE_CMAKE_TOOLCHAIN_FILE}" CACHE FILEPATH "toolchain file")
38+
+ message(STATUS "Toolchain file defaulted to '${CMAKE_TOOLCHAIN_FILE}'")
39+
+ endif()
40+
+endif()
41+
+
42+
# if a toolchain file is used, the user wants to cross compile.
43+
# in this case read the toolchain file and keep the CMAKE_HOST_SYSTEM_*
44+
# variables around so they can be used in CMakeLists.txt.
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
From 2d02ac91d5a5d72eaddba4894eaa6db3ed8fee62 Mon Sep 17 00:00:00 2001
2+
From: Otavio Salvador <[email protected]>
3+
Date: Thu, 12 May 2011 15:36:03 +0000
4+
Subject: [PATCH] cmake: support OpenEmbedded Qt4 tool binary names
5+
6+
The FindQt4 module looks for Qt4 binaries to be able to gather the
7+
paths used for compilation and also to be using during other processes
8+
(translation update, translation binary generating and like) however
9+
OpenEmbedded has renamed those to allow old QMake to be used in
10+
parallel with the current one. This patch adds support for the
11+
OpenEmbedded specific binary names.
12+
13+
Upstream-Status: Inappropriate [embedded specific]
14+
15+
Signed-off-by: Otavio Salvador <[email protected]>
16+
17+
The patch was slightly adapted in order to match cmake 3.2.2:
18+
Instead of find_program, _find_qt4_program is now used.
19+
20+
Signed-off-by: Moritz Blume <[email protected]>
21+
Signed-off-by: Otavio Salvador <[email protected]>
22+
23+
---
24+
Modules/FindQt4.cmake | 10 +++++-----
25+
1 file changed, 5 insertions(+), 5 deletions(-)
26+
27+
diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake
28+
index 3993968..b2a8585 100644
29+
--- a/Modules/FindQt4.cmake
30+
+++ b/Modules/FindQt4.cmake
31+
@@ -518,7 +518,7 @@ endfunction()
32+
33+
set(QT4_INSTALLED_VERSION_TOO_OLD FALSE)
34+
35+
-set(_QT4_QMAKE_NAMES qmake qmake4 qmake-qt4 qmake-mac)
36+
+set(_QT4_QMAKE_NAMES qmake qmake2 qmake4 qmake-qt4 qmake-mac)
37+
_qt4_find_qmake("${_QT4_QMAKE_NAMES}" QT_QMAKE_EXECUTABLE QTVERSION)
38+
39+
if (QT_QMAKE_EXECUTABLE AND
40+
@@ -1136,12 +1136,12 @@ if (QT_QMAKE_EXECUTABLE AND
41+
_find_qt4_program(QT_MOC_EXECUTABLE Qt4::moc moc-qt4 moc4 moc)
42+
_find_qt4_program(QT_UIC_EXECUTABLE Qt4::uic uic-qt4 uic4 uic)
43+
_find_qt4_program(QT_UIC3_EXECUTABLE Qt4::uic3 uic3)
44+
- _find_qt4_program(QT_RCC_EXECUTABLE Qt4::rcc rcc)
45+
- _find_qt4_program(QT_DBUSCPP2XML_EXECUTABLE Qt4::qdbuscpp2xml qdbuscpp2xml)
46+
- _find_qt4_program(QT_DBUSXML2CPP_EXECUTABLE Qt4::qdbusxml2cpp qdbusxml2cpp)
47+
+ _find_qt4_program(QT_RCC_EXECUTABLE Qt4::rcc rcc4 rcc)
48+
+ _find_qt4_program(QT_DBUSCPP2XML_EXECUTABLE Qt4::qdbuscpp2xml qdbuscpp2xml4 qdbuscpp2xml)
49+
+ _find_qt4_program(QT_DBUSXML2CPP_EXECUTABLE Qt4::qdbusxml2cpp qdbusxml2cpp4 qdbusxml2cpp)
50+
_find_qt4_program(QT_LUPDATE_EXECUTABLE Qt4::lupdate lupdate-qt4 lupdate4 lupdate)
51+
_find_qt4_program(QT_LRELEASE_EXECUTABLE Qt4::lrelease lrelease-qt4 lrelease4 lrelease)
52+
- _find_qt4_program(QT_QCOLLECTIONGENERATOR_EXECUTABLE Qt4::qcollectiongenerator qcollectiongenerator-qt4 qcollectiongenerator)
53+
+ _find_qt4_program(QT_QCOLLECTIONGENERATOR_EXECUTABLE Qt4::qcollectiongenerator qcollectiongenerator-qt4 qcollectiongenerator qcollectiongenerator4)
54+
_find_qt4_program(QT_DESIGNER_EXECUTABLE Qt4::designer designer-qt4 designer4 designer)
55+
_find_qt4_program(QT_LINGUIST_EXECUTABLE Qt4::linguist linguist-qt4 linguist4 linguist)
56+
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
From 60864efbe52cc12018efaafbc4e4c3c8b4af2b65 Mon Sep 17 00:00:00 2001
2+
From: Otavio Salvador <[email protected]>
3+
Date: Thu, 5 Jul 2018 10:26:48 -0300
4+
Subject: [PATCH] Fail silently if system Qt installation is broken
5+
6+
Fixes a regression in behaviour from 2.8.10 to 2.8.11 resulting in the
7+
following error if the system Qt installation is broken:
8+
9+
CMake Error at Modules/FindQt4.cmake:1028 (set_property):
10+
set_property could not find TARGET Qt4::QtCore. Perhaps it has not yet
11+
been created.
12+
Call Stack (most recent call first):
13+
Tests/RunCMake/CMakeLists.txt:79 (find_package)
14+
15+
Upstream-Status: Pending
16+
17+
Signed-off-by: Paul Eggleton <[email protected]>
18+
19+
The patch was slightly adapted in order to match cmake 3.2.2:
20+
Another set_property was introduced which had to be included
21+
within the if(QT_QTCORE_FOUND) statement.
22+
23+
Signed-off-by: Moritz Blume <[email protected]>
24+
Signed-off-by: Otavio Salvador <[email protected]>
25+
26+
---
27+
Modules/FindQt4.cmake | 39 ++++++++++++++++++++-------------------
28+
1 file changed, 20 insertions(+), 19 deletions(-)
29+
30+
diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake
31+
index b2a8585..77c89aa 100644
32+
--- a/Modules/FindQt4.cmake
33+
+++ b/Modules/FindQt4.cmake
34+
@@ -988,25 +988,26 @@ if (QT_QMAKE_EXECUTABLE AND
35+
endif()
36+
endmacro()
37+
38+
-
39+
- # Set QT_xyz_LIBRARY variable and add
40+
- # library include path to QT_INCLUDES
41+
- _QT4_ADJUST_LIB_VARS(QtCore)
42+
- set_property(TARGET Qt4::QtCore APPEND PROPERTY
43+
- INTERFACE_INCLUDE_DIRECTORIES
44+
- "${QT_MKSPECS_DIR}/default"
45+
- ${QT_INCLUDE_DIR}
46+
- )
47+
- set_property(TARGET Qt4::QtCore APPEND PROPERTY
48+
- INTERFACE_COMPILE_DEFINITIONS
49+
- $<$<NOT:$<CONFIG:Debug>>:QT_NO_DEBUG>
50+
- )
51+
- set_property(TARGET Qt4::QtCore PROPERTY
52+
- INTERFACE_QT_MAJOR_VERSION 4
53+
- )
54+
- set_property(TARGET Qt4::QtCore APPEND PROPERTY
55+
- COMPATIBLE_INTERFACE_STRING QT_MAJOR_VERSION
56+
- )
57+
+ if(QT_QTCORE_FOUND)
58+
+ # Set QT_xyz_LIBRARY variable and add
59+
+ # library include path to QT_INCLUDES
60+
+ _QT4_ADJUST_LIB_VARS(QtCore)
61+
+ set_property(TARGET Qt4::QtCore APPEND PROPERTY
62+
+ INTERFACE_INCLUDE_DIRECTORIES
63+
+ "${QT_MKSPECS_DIR}/default"
64+
+ ${QT_INCLUDE_DIR}
65+
+ )
66+
+ set_property(TARGET Qt4::QtCore APPEND PROPERTY
67+
+ INTERFACE_COMPILE_DEFINITIONS
68+
+ $<$<NOT:$<CONFIG:Debug>>:QT_NO_DEBUG>
69+
+ )
70+
+ set_property(TARGET Qt4::QtCore PROPERTY
71+
+ INTERFACE_QT_MAJOR_VERSION 4
72+
+ )
73+
+ set_property(TARGET Qt4::QtCore APPEND PROPERTY
74+
+ COMPATIBLE_INTERFACE_STRING QT_MAJOR_VERSION
75+
+ )
76+
+ endif()
77+
78+
foreach(QT_MODULE ${QT_MODULES})
79+
_QT4_ADJUST_LIB_VARS(${QT_MODULE})
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
From fd9a04c1434e12f21c043385e306e0b52d38d749 Mon Sep 17 00:00:00 2001
2+
From: Otavio Salvador <[email protected]>
3+
Date: Thu, 5 Jul 2018 10:28:04 -0300
4+
Subject: [PATCH] Disable use of ext2fs/ext2_fs.h by cmake's internal
5+
6+
libarchive copy
7+
Organization: O.S. Systems Software LTDA.
8+
9+
We don't want to add a dependency on e2fsprogs-native for cmake-native,
10+
and we don't use CPack so just disable this functionality.
11+
12+
Upstream-Status: Inappropriate [config]
13+
14+
Signed-off-by: Paul Eggleton <[email protected]>
15+
Signed-off-by: Otavio Salvador <[email protected]>
16+
17+
---
18+
Utilities/cmlibarchive/CMakeLists.txt | 8 ++------
19+
1 file changed, 2 insertions(+), 6 deletions(-)
20+
21+
diff --git a/Utilities/cmlibarchive/CMakeLists.txt b/Utilities/cmlibarchive/CMakeLists.txt
22+
index bfcaf30..2960683 100644
23+
--- a/Utilities/cmlibarchive/CMakeLists.txt
24+
+++ b/Utilities/cmlibarchive/CMakeLists.txt
25+
@@ -682,12 +682,8 @@ LA_CHECK_INCLUDE_FILE("copyfile.h" HAVE_COPYFILE_H)
26+
LA_CHECK_INCLUDE_FILE("direct.h" HAVE_DIRECT_H)
27+
LA_CHECK_INCLUDE_FILE("dlfcn.h" HAVE_DLFCN_H)
28+
LA_CHECK_INCLUDE_FILE("errno.h" HAVE_ERRNO_H)
29+
-LA_CHECK_INCLUDE_FILE("ext2fs/ext2_fs.h" HAVE_EXT2FS_EXT2_FS_H)
30+
-
31+
-CHECK_C_SOURCE_COMPILES("#include <sys/ioctl.h>
32+
-#include <ext2fs/ext2_fs.h>
33+
-int main(void) { return EXT2_IOC_GETFLAGS; }" HAVE_WORKING_EXT2_IOC_GETFLAGS)
34+
-
35+
+SET(HAVE_EXT2FS_EXT2_FS_H 0)
36+
+SET(HAVE_WORKING_EXT2_IOC_GETFLAGS 0)
37+
LA_CHECK_INCLUDE_FILE("fcntl.h" HAVE_FCNTL_H)
38+
LA_CHECK_INCLUDE_FILE("grp.h" HAVE_GRP_H)
39+
LA_CHECK_INCLUDE_FILE("io.h" HAVE_IO_H)
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
set( CMAKE_SYSTEM_NAME Linux )
2+
set( CMAKE_C_FLAGS $ENV{CFLAGS} CACHE STRING "" FORCE )
3+
set( CMAKE_CXX_FLAGS $ENV{CXXFLAGS} CACHE STRING "" FORCE )
4+
set( CMAKE_SYSROOT $ENV{OECORE_TARGET_SYSROOT} )
5+
6+
set( CMAKE_FIND_ROOT_PATH $ENV{OECORE_TARGET_SYSROOT} )
7+
set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER )
8+
set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY )
9+
set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY )
10+
set( CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY )
11+
12+
set(CMAKE_FIND_LIBRARY_CUSTOM_LIB_SUFFIX "$ENV{OE_CMAKE_FIND_LIBRARY_CUSTOM_LIB_SUFFIX}")
13+
14+
set( CMAKE_SYSTEM_PROCESSOR $ENV{OECORE_TARGET_ARCH} )
15+
16+
# Include the toolchain configuration subscripts
17+
file( GLOB toolchain_config_files "${CMAKE_CURRENT_LIST_FILE}.d/*.cmake" )
18+
foreach(config ${toolchain_config_files})
19+
include(${config})
20+
endforeach()
21+
22+
unset(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES)
23+
unset(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES)

0 commit comments

Comments
 (0)