From patchwork Sun Mar 9 14:00:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Martin X-Patchwork-Id: 328332 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id EC0362C00BA for ; Mon, 10 Mar 2014 01:01:08 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 81DD699DCB; Sun, 9 Mar 2014 14:01:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FvgP-VyrQsAq; Sun, 9 Mar 2014 14:01:00 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 543E699BF0; Sun, 9 Mar 2014 14:01:00 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id D48FA1CE98F for ; Sun, 9 Mar 2014 14:00:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id D1F1B93F46 for ; Sun, 9 Mar 2014 14:00:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7SDan367F1pH for ; Sun, 9 Mar 2014 14:00:55 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-we0-f177.google.com (mail-we0-f177.google.com [74.125.82.177]) by hemlock.osuosl.org (Postfix) with ESMTPS id 3BAFE93EB1 for ; Sun, 9 Mar 2014 14:00:55 +0000 (UTC) Received: by mail-we0-f177.google.com with SMTP id u57so7148823wes.22 for ; Sun, 09 Mar 2014 07:00:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=2pLgyNQk7jsai7mA1taWcWWEMN11jK1n+B4RwjwFU/w=; b=DQ0nPur3qyYdCXqPYGHuoPUef5xlrlkUzq+ktlgXxd0gEj1H1rhXAyOQsltgwf8vxl FcLKW/Oil36HGYo1TguJGgGSucsushNJLZVhXq+8bQw/c96n5A5DaWL0pwL6s/mnUohs FHXFLJRFmzwR6+G74A4USods1fVn7wMjgcOx4uVfqJBOeR+JrsQMAnnH5ZE24KKT0lXp maM8gebCgh7R/WDwSLPRXULKDBcOcLjIJhRwmiATnDVRui1/w72xhWseL4xCeb9BzqRg NJHL48f2SK5oluoQuGOEL4cnbH3jMrbKKsaAdar9c85wRuf7XG1dHI1AYT0T3egaJpW3 +vJQ== X-Received: by 10.194.57.77 with SMTP id g13mr4671115wjq.42.1394373653826; Sun, 09 Mar 2014 07:00:53 -0700 (PDT) Received: from localhost.localdomain (ivr94-4-82-229-165-48.fbx.proxad.net. [82.229.165.48]) by mx.google.com with ESMTPSA id ga10sm42331035wjb.23.2014.03.09.07.00.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 09 Mar 2014 07:00:52 -0700 (PDT) From: Samuel Martin To: buildroot@buildroot.net Date: Sun, 9 Mar 2014 15:00:22 +0100 Message-Id: <1394373623-10650-6-git-send-email-s.martin49@gmail.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1394373623-10650-1-git-send-email-s.martin49@gmail.com> References: <1394373623-10650-1-git-send-email-s.martin49@gmail.com> Subject: [Buildroot] [PATCH v6 5/6] pkg-cmake.mk: add PATH in the configure command environment X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Because BR_PATH is not exported in the environment beforehand running cmake, it is necessary to add it on the cmake configure command. Signed-off-by: Samuel Martin Reviewed-by: "Yann E. MORIN" --- changes v4 -> v6: - rebase changes v3 -> v4: - rebase - rename BR2_PATH -> BR_PATH changes v2 -> v3: - rebase - no one-line commit log (ThomasP) changes v1 -> v2: - remove explicit PATH=... in configure commands in pkg-autotools.mk because it is already added via *_CONFIGURE_OPTS (ThomasP), and reword the commit message. --- package/pkg-cmake.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/pkg-cmake.mk b/package/pkg-cmake.mk index f7e454b..bf3db90 100644 --- a/package/pkg-cmake.mk +++ b/package/pkg-cmake.mk @@ -60,6 +60,7 @@ ifeq ($(4),target) define $(2)_CONFIGURE_CMDS (cd $$($$(PKG)_BUILDDIR) && \ rm -f CMakeCache.txt && \ + PATH=$(BR_PATH) \ $$($$(PKG)_CONF_ENV) $(HOST_DIR)/usr/bin/cmake $$($$(PKG)_SRCDIR) \ -DCMAKE_TOOLCHAIN_FILE="$$(HOST_DIR)/usr/share/buildroot/toolchainfile.cmake" \ -DCMAKE_INSTALL_PREFIX="/usr" \ @@ -74,6 +75,7 @@ else define $(2)_CONFIGURE_CMDS (cd $$($$(PKG)_BUILDDIR) && \ rm -f CMakeCache.txt && \ + PATH=$(BR_PATH) \ $(HOST_DIR)/usr/bin/cmake $$($$(PKG)_SRCDIR) \ -DCMAKE_INSTALL_SO_NO_EXE=0 \ -DCMAKE_FIND_ROOT_PATH="$$(HOST_DIR)" \