diff options
author | Matthieu Crapet <Matthieu.Crapet@ingenico.com> | 2014-05-06 14:17:47 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-08 13:00:33 +0100 |
commit | 77790c43b1bfdb0ca9e43ca3878d9153962e47f2 (patch) | |
tree | 4d47320e74b9c09341f91fc8f37b87a91827aea7 /meta/classes/binconfig.bbclass | |
parent | 5ae4aadcae85c129aef6dd6ce2dcdd55e8ae9053 (diff) | |
download | poky-77790c43b1bfdb0ca9e43ca3878d9153962e47f2.tar.gz |
*.bbclass (shell): avoid pipe with sed
Replace:
cat <file> | sed -e xxx
By:
sed -e xxx <file>
(From OE-Core rev: e2026f5d32ac05396615224ac9ec927439e7e6b4)
Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/binconfig.bbclass')
-rw-r--r-- | meta/classes/binconfig.bbclass | 2 |
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 () { | |||
57 | for config in `find ${S} -name '${BINCONFIG_GLOB}'` `find ${B} -name '${BINCONFIG_GLOB}'`; do | 57 | for config in `find ${S} -name '${BINCONFIG_GLOB}'` `find ${B} -name '${BINCONFIG_GLOB}'`; do |
58 | configname=`basename $config` | 58 | configname=`basename $config` |
59 | install -d ${SYSROOT_DESTDIR}${bindir_crossscripts} | 59 | install -d ${SYSROOT_DESTDIR}${bindir_crossscripts} |
60 | cat $config | sed ${@get_binconfig_mangle(d)} > ${SYSROOT_DESTDIR}${bindir_crossscripts}/$configname | 60 | sed ${@get_binconfig_mangle(d)} $config > ${SYSROOT_DESTDIR}${bindir_crossscripts}/$configname |
61 | chmod u+x ${SYSROOT_DESTDIR}${bindir_crossscripts}/$configname | 61 | chmod u+x ${SYSROOT_DESTDIR}${bindir_crossscripts}/$configname |
62 | done | 62 | done |
63 | } | 63 | } |