summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy.Li <rongqing.li@windriver.com>2012-11-06 16:20:48 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-12-07 15:58:16 (GMT)
commit970d2797747ec9c0dfb2e7cc114fea7f617582d2 (patch)
treef2876f73583e83a7408ede8ae0746504e60ee675
parent40e6fc6a65cafb56e5f762333c6ae4d6699a5b0b (diff)
downloadpoky-970d2797747ec9c0dfb2e7cc114fea7f617582d2.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) (From OE-Core rev: 1a6f61d9493bdbade256dc6c19bbffe75a2684a4) 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>
-rwxr-xr-xscripts/bitbake7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/bitbake b/scripts/bitbake
index 3772d82..c52d5d2 100755
--- a/scripts/bitbake
+++ b/scripts/bitbake
@@ -134,7 +134,12 @@ if [ $buildpseudo -gt 0 ]; then
134 fi 134 fi
135 done 135 done
136 done 136 done
137 bitbake pseudo-native $TARTARGET $additionalopts -c populate_sysroot 137
138 if [ $needtar = "1" ]; then
139 bitbake $TARTARGET -c populate_sysroot
140 fi
141
142 bitbake pseudo-native $additionalopts -c populate_sysroot
138 ret=$? 143 ret=$?
139 if [ "$ret" != "0" ]; then 144 if [ "$ret" != "0" ]; then
140 exit 1 145 exit 1