Patchwork [5/9] icecc: Add dummy python version of set_icecc_env

login
register
mail settings
Submitter Tobias Henkel
Date Nov. 12, 2013, 8:33 a.m.
Message ID <1384245243-20247-6-git-send-email-tobias.henkel@oss.bmw-carit.de>
Download mbox | patch
Permalink /patch/61483/
State New
Headers show

Comments

Tobias Henkel - Nov. 12, 2013, 8:33 a.m.
From: Tobias Henkel <tobias.henkel@bmw-carit.de>

Bitbakes prepend mechanism for the tasks disregards the type of the
function. Thus bitbaking recipes using python functions for configure,
compile or install steps fail due to the missing python version of
set_icecc_env.

Assuming that icecc doesn't need to be used in such situations adding
a dummy python version of set_icecc_env fixes this.

Signed-off-by: Tobias Henkel <tobias.henkel@bmw-carit.de>
---
 meta/classes/icecc.bbclass | 4 ++++
 1 file changed, 4 insertions(+)

Patch

diff --git a/meta/classes/icecc.bbclass b/meta/classes/icecc.bbclass
index a3e8f9b..99749d3 100644
--- a/meta/classes/icecc.bbclass
+++ b/meta/classes/icecc.bbclass
@@ -188,6 +188,10 @@  def icc_get_and_check_tool(bb, d, tool):
     else:
         return t
 
+def set_icecc_env():
+    # dummy python version of set_icecc_env
+    return
+
 set_icecc_env() {
     if [ "x${ICECC_DISABLED}" != "x" ]
     then