mirror of https://github.com/ipxe/ipxe.git
[build] Check for broken elftoolchain version of objcopy
The elftoolchain version of objcopy (as used in FreeBSD) seems to be unusable for generating a raw binary file, since it will apparently ignore the load memory addresses specified for each section in the input file. The binutils version of objcopy may be used on FreeBSD by specifying OBJCOPY=/usr/local/bin/objcopy Detect an attempt to use the unusable elftoolchain version of objcopy and report it as an error. Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/242/head
parent
fe52f8e8be
commit
1fea8ce06a
|
@ -113,6 +113,13 @@ $(warning Use GNU ld instead)
|
|||
$(error Unsuitable build environment found)
|
||||
endif
|
||||
|
||||
OBJCOPY_ETC_BANNER := $(shell $(OBJCOPY) --version | grep 'elftoolchain')
|
||||
ifneq ($(OBJCOPY_ETC_BANNER),)
|
||||
$(warning The elftoolchain objcopy is unsuitable for building iPXE)
|
||||
$(warning Use binutils objcopy instead)
|
||||
$(error Unsuitable build environment found)
|
||||
endif
|
||||
|
||||
###############################################################################
|
||||
#
|
||||
# Check if $(eval ...) is available to use
|
||||
|
|
Loading…
Reference in New Issue