summaryrefslogtreecommitdiffstats
path: root/scripts/bitbake
diff options
context:
space:
mode:
authorRoy.Li <rongqing.li@windriver.com>2012-08-08 09:44:26 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-29 16:01:39 -0700
commitb74d54b67ad27e8a071b56afc09f369642106f47 (patch)
tree557ee3d61dff325d271f9bbf644c79752dc4bd5c /scripts/bitbake
parentb4c5725af4cd85d5644f0373e2674e903c4eab2b (diff)
downloadpoky-b74d54b67ad27e8a071b56afc09f369642106f47.tar.gz
bitbake: compile tar-replacement firstly
Compiling tar-replacement or not is decided by version of host tar, if the host tar version is lower than 1.23, Compiling tar-replacement is needed. When doing popoluate tar-replacement sysroot to write the tar to sysroot, but writing is not finished. other packages probably use the being written tar to unzip file, which will lead to failure and report the below error: "bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/tar: Text file busy" Now we compile tar-replacement firstly to ensure that a being written tar command will not be used. (From OE-Core rev: 3c1c4719fc96f6f1fbb257413d6baf3d91fdf4e8) Signed-off-by: Roy.Li <rongqing.li@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/bitbake')
-rwxr-xr-xscripts/bitbake7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/bitbake b/scripts/bitbake
index 09f8a86240..79a81eaf0f 100755
--- a/scripts/bitbake
+++ b/scripts/bitbake
@@ -152,7 +152,12 @@ if [ $buildpseudo -gt 0 ]; then
152 fi 152 fi
153 done 153 done
154 done 154 done
155 bitbake pseudo-native $TARTARGET $GITTARGET $additionalopts -c populate_sysroot 155
156 if [ $needtar = "1" ]; then
157 bitbake $TARTARGET -c populate_sysroot
158 fi
159
160 bitbake pseudo-native $GITTARGET $additionalopts -c populate_sysroot
156 ret=$? 161 ret=$?
157 if [ "$ret" != "0" ]; then 162 if [ "$ret" != "0" ]; then
158 exit 1 163 exit 1