scripts/Makefile.lib: add -L option to LD command for EFI binaries
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 16 Jan 2025 11:39:06 +0000 (12:39 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 17 Jan 2025 19:31:25 +0000 (20:31 +0100)
commit6384229dc3fc60f3e70035a6cd6ded54c352eac4
treebd3d7cb2e5d4986c0c202795789932cd0ceae0f1
parent75fe33973c9f27008319a87bc2dde3b2101b34f1
scripts/Makefile.lib: add -L option to LD command for EFI binaries

The linker uses the path specified with -L to search for linker scripts
and for linker script includes.

For out-of-tree builds specify the build directory with -L instead of
the absolute path of the linker script. This allows using an INCLUDE
statement.

Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
scripts/Makefile.lib