aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Makefile.housekeeping7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping
index 9b52e12..25abe57 100644
--- a/src/Makefile.housekeeping
+++ b/src/Makefile.housekeeping
@@ -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