[SeaBIOS] [PATCH] build: allow setting tools path from the environment
kevin at koconnor.net
Wed Jan 31 03:42:04 CET 2018
On Tue, Jan 23, 2018 at 03:34:16PM +0000, Roger Pau Monne wrote:
> Allow setting the path to as, ld, objcopy, objdump, strip and python
> from the environment.
> This is required for building SeaBIOS on FreeBSD, which will switch
> the default ld to lld very soon, and lld is not capable of building
> SeaBIOS at the moment.
> Building SeaBIOS on FreeBSD after the switch to lld will require
> setting LD=/path/to/gnu/ld at build time.
Thanks Roger, however, I find it a bit confusing for the makefile
rules to implicitly pull in variables from the environment. (It makes
it hard to track down build failures as the dependency on the
environment can be complex.) So, I think if a make variable is to be
overridden it should be done on the command line (eg, make LD=xyz).
More information about the SeaBIOS