Signed-off-by: Chris Larson <chris_larson@mentor.com>
do_unpack_append() {
# Replace MS-DOS line-endings with Unix style line-endings
- os.system("find ${S} -type f -print0 | xargs -0 sed 's/\r$//' -i")
+ oe.process.run("find . -type f -print0 | xargs -0 sed 's/\r$//' -i",
+ cwd=d.getVar("S", True))
}
do_patch_append() {
# Hack to ensure we use our environment values
- os.system("find ${S} -type f -name makefile.gcc -print0 | xargs -0 sed 's/^CXX =/CXX ?=/;s/^CXX_C =/CXX_C ?=/;s/CXX_C/CC/' -i")
+ oe.process.run("find . -type f -name makefile.gcc -print0 | xargs -0 sed 's/^CXX =/CXX ?=/;s/^CXX_C =/CXX_C ?=/;s/CXX_C/CC/' -i",
+ cwd=d.getVar("S", True))
}
do_compile() {