diff options
author | Joshua Watt <jpewhacker@gmail.com> | 2018-02-12 10:52:00 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-02-15 13:28:54 +0000 |
commit | 60ff32e38df02dc29aa161f922789b42f2ebb19c (patch) | |
tree | c24177f2f6066ad06588808c3b6fb44ad37b8010 /meta/recipes-devtools | |
parent | 4a659dd5846648f3c441409b109d46419fef77a4 (diff) | |
download | poky-60ff32e38df02dc29aa161f922789b42f2ebb19c.tar.gz |
icecc-create-env: Add /bin/true to environment
icecream daemons execute /bin/true from the environment as a check to
determine if the environment is valid at all, so it needs to be
included.
(From OE-Core rev: c86aa6edab842c579177fe5c1f8647290b58fe61)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rwxr-xr-x | meta/recipes-devtools/icecc-create-env/icecc-create-env/icecc-create-env | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/recipes-devtools/icecc-create-env/icecc-create-env/icecc-create-env b/meta/recipes-devtools/icecc-create-env/icecc-create-env/icecc-create-env index 723f1f9bd9..c838256f74 100755 --- a/meta/recipes-devtools/icecc-create-env/icecc-create-env/icecc-create-env +++ b/meta/recipes-devtools/icecc-create-env/icecc-create-env/icecc-create-env | |||
@@ -122,6 +122,16 @@ then | |||
122 | add_file $pluginfile /usr${pluginfile#*usr} | 122 | add_file $pluginfile /usr${pluginfile#*usr} |
123 | fi | 123 | fi |
124 | 124 | ||
125 | # for testing the environment is usable at all | ||
126 | if test -x /bin/true; then | ||
127 | add_file /bin/true | ||
128 | elif test -x /usr/bin/true; then | ||
129 | add_file /usr/bin/true /bin/true | ||
130 | else | ||
131 | echo "'true' not found" | ||
132 | exit 1 | ||
133 | fi | ||
134 | |||
125 | tempdir=`mktemp -d /tmp/iceccenvXXXXXX` | 135 | tempdir=`mktemp -d /tmp/iceccenvXXXXXX` |
126 | new_target_files= | 136 | new_target_files= |
127 | for i in $target_files; do | 137 | for i in $target_files; do |