From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay1.mentorg.com ([192.94.38.131]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1R8t3R-0004LI-DA for openembedded-core@lists.openembedded.org; Wed, 28 Sep 2011 14:16:01 +0200 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1R8syA-00027K-JW from Andrew_Gabbasov@mentor.com ; Wed, 28 Sep 2011 05:10:34 -0700 Received: from [172.30.176.48] ([172.30.176.48]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 28 Sep 2011 05:00:55 -0700 Message-ID: <4E830EA4.5050002@mentor.com> Date: Wed, 28 Sep 2011 16:10:12 +0400 From: Andrew Gabbasov User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 MIME-Version: 1.0 To: openembedded-core@lists.openembedded.org X-OriginalArrivalTime: 28 Sep 2011 12:00:55.0890 (UTC) FILETIME=[47424320:01CC7DD6] Subject: [PATCH] cmake.bbclass: adding extendable extra variable to root path X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 12:16:01 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 --- meta/classes/cmake.bbclass | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass index ab23bed..432427e 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 <