Commit 41b77eda authored by Simon Horman's avatar Simon Horman
Browse files

build: create tarball without self-referential hard links



The current method of creating the tarball, which is to the hard-link
the source directory to the target directory, results in self-referential
hardlinks which can be observed using tar xf.

This patch resolves this by using an intermediate tarball, held in memory,
which collects files to be distributed. This is then unpacked in the target
directory which is finally packed into the distribution tarball, a file.

Signed-off-by: default avatarSimon Horman <horms@verge.net.au>
parent 1bc7bc76
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment