From patchwork Wed Jul 1 06:57:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Koen Kooi X-Patchwork-Id: 50508 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 84E0B214B3 for ; Wed, 1 Jul 2015 06:57:50 +0000 (UTC) Received: by lbcpe5 with SMTP id pe5sf3104072lbc.3 for ; Tue, 30 Jun 2015 23:57:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:cc:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :content-type:content-transfer-encoding:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list; bh=KRxk8/t4vx+ioxCS2C4ivT1tLajIEnYBgJMhY9jt6E8=; b=dVHod+hElW0dSeJ9duN5+LR6Ut+De9O9vYgBj9Xrru/fotAmB0Zc3QWSQtZdabecMK RdMTlpmYLcJsAXtA46QXWDYlJAqqsvcPRxsIXCcYBZh8arQ5LnrYAjPBB6yOX2yIAznK SZrN7mFra4AU7iA0EGIiJWFKGMzpDn2i+BQJQ/DJ9gRYi2kp7DDsCjizg7eGQ+AA9YLe PnN1h9xRIBnjDBz9vXHI/uqh+JmyUhnzzbhIFiffFx/dKwoE/3qjKEVvWEbHMZ/+ue19 WXoMo0cf9gLKI01IEm6QbYOqLAv6eaLdxS85xyP1CrDKzuyMqB07ePbygZVuRX6b2AJ1 p/kw== X-Gm-Message-State: ALoCoQlSRCK8VMKAsgzBky9qb+96tj8mDPc7ZF+aTfh7kxV0xz5mPMUJoURxU03A58O/yDzO2fWI X-Received: by 10.112.253.135 with SMTP id aa7mr5457048lbd.11.1435733869610; Tue, 30 Jun 2015 23:57:49 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.43.18 with SMTP id s18ls140914lal.63.gmail; Tue, 30 Jun 2015 23:57:49 -0700 (PDT) X-Received: by 10.152.87.97 with SMTP id w1mr12510209laz.124.1435733869334; Tue, 30 Jun 2015 23:57:49 -0700 (PDT) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id ay4si868883lab.9.2015.06.30.23.57.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jun 2015 23:57:49 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by lagx9 with SMTP id x9so34291345lag.1 for ; Tue, 30 Jun 2015 23:57:49 -0700 (PDT) X-Received: by 10.112.160.165 with SMTP id xl5mr23465187lbb.36.1435733869129; Tue, 30 Jun 2015 23:57:49 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp393873lbb; Tue, 30 Jun 2015 23:57:48 -0700 (PDT) X-Received: by 10.66.66.166 with SMTP id g6mr52507677pat.157.1435733867420; Tue, 30 Jun 2015 23:57:47 -0700 (PDT) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id qi4si1838683pbb.7.2015.06.30.23.57.46; Tue, 30 Jun 2015 23:57:47 -0700 (PDT) Received-SPF: pass (google.com: domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Received: from mail.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id C9EAB65CCD; Wed, 1 Jul 2015 06:57:42 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by mail.openembedded.org (Postfix) with ESMTP id 656D360017 for ; Wed, 1 Jul 2015 06:57:32 +0000 (UTC) Received: by wiwl6 with SMTP id l6so154562244wiw.0 for ; Tue, 30 Jun 2015 23:57:32 -0700 (PDT) X-Received: by 10.194.121.34 with SMTP id lh2mr22953142wjb.101.1435733852549; Tue, 30 Jun 2015 23:57:32 -0700 (PDT) Received: from localhost ([2001:610:612:0:2ad2:44ff:fe4b:bc17]) by mx.google.com with ESMTPSA id c7sm1362990wjb.19.2015.06.30.23.57.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jun 2015 23:57:31 -0700 (PDT) From: Koen Kooi To: openembedded-core@lists.openembedded.org Date: Wed, 1 Jul 2015 08:57:25 +0200 Message-Id: <1435733845-5742-1-git-send-email-koen.kooi@linaro.org> X-Mailer: git-send-email 1.9.3 Cc: Koen Kooi Subject: [OE-core] [PATCH v2] cmake bbclass: fix support for native builds X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: koen.kooi@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 For native builds of recipes (e.g. mariadb-native) cmake *must* look outside of its sysroot to find the compiler, so instruct it to do so. Signed-off-by: Koen Kooi --- meta/classes/cmake.bbclass | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass index b0a3972..c174246 100644 --- a/meta/classes/cmake.bbclass +++ b/meta/classes/cmake.bbclass @@ -27,6 +27,9 @@ OECMAKE_RPATH ?= "" OECMAKE_PERLNATIVE_DIR ??= "" OECMAKE_EXTRA_ROOT_PATH ?= "" +OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM = "ONLY" +OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM_class-native = "BOTH" + cmake_do_generate_toolchain_file() { cat > ${WORKDIR}/toolchain.cmake <