diff options
author | Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> | 2017-02-07 22:56:44 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-04-05 21:32:13 +0200 |
commit | 144caf5c5b0378b6f508c261c01279636db7eb15 (patch) | |
tree | 95f3b85730b10b77682f2714f932a1d1c97f1a08 /boot/syslinux/0001-Fix-gcc-5-ALIGN-causing-Boot-error.patch | |
parent | a06edf201b4954e441065b565fe7fd677f8e41ea (diff) | |
download | buildroot-144caf5c5b0378b6f508c261c01279636db7eb15.tar.gz buildroot-144caf5c5b0378b6f508c261c01279636db7eb15.zip |
toolchain helpers: introduce simplify_symlink
The external toolchain logic flattens the directory layout in the staging
directory. Regardless of the number of levels present in the extracted
toolchain, libraries are always copied to lib/ and usr/lib/, and directory
symbolic links are provided to make the original paths available as well.
Due to this, the same library may be reachable through a number of paths:
one path without any symbolic link, and one or more paths using directory
symlinks.
Using a direct path in a symlink destination is generally preferred because
it is clearer, but it is also more robust against accidental removal of an
intermediate directory symlink.
Introduce a helper function to simplify a symlink's destination to such a
direct path. This function will be used in a subsequent patch.
Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'boot/syslinux/0001-Fix-gcc-5-ALIGN-causing-Boot-error.patch')
0 files changed, 0 insertions, 0 deletions