summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Watt <jpewhacker@gmail.com>2018-02-12 10:52:03 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-02-15 13:28:54 +0000
commit8a229332a074c1471e2bf500e357906a9fffeee0 (patch)
tree3d9d5f2dad0c17338a6d2a54ee42fe53b7346d20
parent832934efd633de3fa0051bfb30e94b64c885f542 (diff)
downloadpoky-8a229332a074c1471e2bf500e357906a9fffeee0.tar.gz
icecc-create-env: Archive directory
Taring up the toolchain is now done by adding the entire working directory, instead of listing all the files individually. This is done because the list of files may contain ".." entries, which tar does not like and strips out, resulting in bad archives. This should result in an identical archive to what was previously generated. In addition, symbolic links are no longer dereferenced when creating the archive, as they are purposely included to provide alternate names for files (From OE-Core rev: 122d6a5bdcbc494bba0fa2b213d730500f6f7dbc) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xmeta/recipes-devtools/icecc-create-env/icecc-create-env/icecc-create-env6
1 files changed, 5 insertions, 1 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 0791bd54b2..426b093d91 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
@@ -256,7 +256,11 @@ if test -z "$silent"; then
256fi 256fi
257 257
258cd $tempdir 258cd $tempdir
259tar -czhf "$mydir/$archive_name" $target_files || { 259# Add everything in the temp directory. Tar doesn't like to be given files with
260# ".." in them, which frequently happens in $target_files, and will strip off
261# the path prefix past the offending "..". This makes the archive generate
262# incorrectly
263tar -czf "$mydir/$archive_name" . || {
260 if test -z "$silent"; then 264 if test -z "$silent"; then
261 echo "Couldn't create archive" 265 echo "Couldn't create archive"
262 fi 266 fi