summaryrefslogtreecommitdiff
path: root/meta/classes/binconfig.bbclass
diff options
context:
space:
mode:
authorMatthieu Crapet <Matthieu.Crapet@ingenico.com>2014-05-06 14:17:47 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-05-08 12:56:41 +0100
commite2026f5d32ac05396615224ac9ec927439e7e6b4 (patch)
treec177f910189d623cdb59d9cbe77107bae240ba01 /meta/classes/binconfig.bbclass
parent6ef8ac2ff97a408d4311ebebbafcfaf0a84be4d9 (diff)
downloadopenembedded-core-e2026f5d32ac05396615224ac9ec927439e7e6b4.tar.gz
openembedded-core-e2026f5d32ac05396615224ac9ec927439e7e6b4.tar.bz2
openembedded-core-e2026f5d32ac05396615224ac9ec927439e7e6b4.zip
*.bbclass (shell): avoid pipe with sed
Replace: cat <file> | sed -e xxx By: sed -e xxx <file> Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/classes/binconfig.bbclass')
-rw-r--r--meta/classes/binconfig.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/binconfig.bbclass b/meta/classes/binconfig.bbclass
index 7158c8c705..cbc4173601 100644
--- a/meta/classes/binconfig.bbclass
+++ b/meta/classes/binconfig.bbclass
@@ -57,7 +57,7 @@ binconfig_sysroot_preprocess () {
for config in `find ${S} -name '${BINCONFIG_GLOB}'` `find ${B} -name '${BINCONFIG_GLOB}'`; do
configname=`basename $config`
install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}
- cat $config | sed ${@get_binconfig_mangle(d)} > ${SYSROOT_DESTDIR}${bindir_crossscripts}/$configname
+ sed ${@get_binconfig_mangle(d)} $config > ${SYSROOT_DESTDIR}${bindir_crossscripts}/$configname
chmod u+x ${SYSROOT_DESTDIR}${bindir_crossscripts}/$configname
done
}