summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRonan Le Martret <ronan@fridu.net>2014-07-08 14:59:24 +0200
committerRonan Le Martret <ronan@fridu.net>2014-07-08 14:59:24 +0200
commit0016e036bac027406e6ed69c122b8a15863dc258 (patch)
treec5a9858956c769251eba03f97819ba8880fae8d6 /tools
parentb4114b6574f43a90eda3465310b20ac0f461e451 (diff)
downloadtizen-0016e036bac027406e6ed69c122b8a15863dc258.tar.gz
tizen-0016e036bac027406e6ed69c122b8a15863dc258.tar.bz2
tizen-0016e036bac027406e6ed69c122b8a15863dc258.zip
ldconfig exec only on target.
Change-Id: I0b2259b85b2ff8c0b57b4cd4b879059a83954658 Signed-off-by: Ronan Le Martret <ronan@fridu.net>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/spec2yocto.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/spec2yocto.py b/tools/spec2yocto.py
index d855b8053..8436aef66 100755
--- a/tools/spec2yocto.py
+++ b/tools/spec2yocto.py
@@ -1639,6 +1639,7 @@ class MetaSpec:
def __create_compile( self ,file_d):
code=self.__spec_parser.get_build_section()
code=code.replace("\n","\n ")
+
file_d.write( "do_compile() {\n" )
file_d.write( " %s\n" % code )
file_d.write( "}\n" )
@@ -1673,7 +1674,7 @@ class MetaSpec:
'''
Writes the pre/post (un)install sections of the recipe.
'''
- code=code.replace("/sbin/ldconfig","ldconfig")
+ code=code.replace("/sbin/ldconfig","[ \"x\$D\" != \"x\" ] && ldconfig")
code=code.replace("${prefix}","$D${prefix}")