diff options
author | Hombourger, Cedric <Cedric_Hombourger@mentor.com> | 2020-11-18 16:36:13 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-11-24 15:26:12 +0000 |
commit | 53217b1121da0bc9895edce16cc483dd1f166cc0 (patch) | |
tree | 8e591c039447588b34f051a936e6596c650d9fda /documentation/kernel-dev | |
parent | 7ae3a24079384573bb988bcd1f065548c05b13fd (diff) | |
download | poky-53217b1121da0bc9895edce16cc483dd1f166cc0.tar.gz |
bitbake: fetch2: use relative symlinks for anything pulled from PREMIRRORS
try_mirror_url() creates a symlink named as the original file to make
everything look like files specified in SRC_URI were downloaded from
their original location. The link is however created as an absolute
reference, this makes DL_DIR non-relocatable. This also causes issues
with the Isar project since it bind mounts DL_DIR to /downloads to
perform some of its build tasks in a chrooted environment (rendering
all symbolic links from DL_DIR invalid). Modify ensure_symlink() to
take an optional "relative" argument and have that function use
os.path.relpath() to produce a relative symlink.
(Bitbake rev: 481e66ea8fc2fc91903127d66b0f1b0fe86baedb)
Signed-off-by: Cedric Hombourger <Cedric_Hombourger@mentor.com>
Cc: Chris Larson <Chris_Larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/kernel-dev')
0 files changed, 0 insertions, 0 deletions