toolchain: copy_toolchain_lib_root: clarify logic
authorThomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Tue, 7 Feb 2017 21:56:47 +0000 (22:56 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 5 Apr 2017 19:33:04 +0000 (21:33 +0200)
commitd34e02a6578baa5c5ebe1a9f08654bdf3d079fdd
treea7345ebc3ca98e9c6cc2ed172ffcb3d63736f5f2
parenteff1980194a26c85143ef775e270901704106832
toolchain: copy_toolchain_lib_root: clarify logic

copy_toolchain_lib_root has slightly different logic depending on the type
of library object: file or link. All actions related to links are not
relevant in case you are working with a file. Hence, try to increase clarity
by not executing unnecessary lines in the 'file' case.

Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
toolchain/helpers.mk