From 23be60dad6a705f151520e3eda2da5e02230f5fd Mon Sep 17 00:00:00 2001 From: Andrew Gabbasov Date: Wed, 28 Sep 2011 16:10:12 +0400 Subject: cmake.bbclass: adding extendable extra variable to root path Introducing a hook variable for various .conf files to add extra path elements to cmake. For example, it can be used in external toolchain conf file to add ${TOOLCHAIN_PATH} to cmake root path search. Signed-off-by: Andrew Gabbasov Signed-off-by: Richard Purdie --- meta/classes/cmake.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass index ab23bedb38..432427e913 100644 --- a/meta/classes/cmake.bbclass +++ b/meta/classes/cmake.bbclass @@ -26,6 +26,7 @@ OECMAKE_CXX_FLAGS_RELEASE ?= "${SELECTED_OPTIMIZATION} ${CXXFLAGS} -DNDEBUG" OECMAKE_RPATH ?= "" OECMAKE_PERLNATIVE_DIR ??= "" +OECMAKE_EXTRA_ROOT_PATH ?= "" cmake_do_generate_toolchain_file() { cat > ${WORKDIR}/toolchain.cmake <