Commit b6d86eac authored by Tom Rini's avatar Tom Rini Committed by Linus Torvalds

[PATCH] ppc32: add gcc-3.4+binutils-2.14 check

Add a build-time check for gcc-3.4 and binutils-2.14.  They don't play well
together.
Signed-off-by: default avatarTom Rini <trini@kernel.crashing.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent c5343405
......@@ -108,17 +108,24 @@ GOODVER := 2.12.1
else
NEW_AS := 0
endif
# gcc-3.4 and binutils-2.14 are a fatal combination.
GCC_VERSION := $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh $(CC))
BAD_GCC_AS := $(shell echo mftb 5 | $(AS) -mppc -many -o /dev/null >/dev/null 2>&1 && echo 0 || echo 1)
ifneq ($(NEW_AS),0)
checkbin:
ifeq ($(GCC_VERSION)$(BAD_GCC_AS),03041)
@echo -n '*** ${VERSION}.${PATCHLEVEL} kernels no longer build '
@echo 'correctly with gcc-3.4 and your version of binutils.'
@echo '*** Please upgrade your binutils or downgrade your gcc'
@false
endif
ifneq ($(NEW_AS),0)
@echo -n '*** ${VERSION}.${PATCHLEVEL} kernels no longer build '
@echo 'correctly with old versions of binutils.'
@echo '*** Please upgrade your binutils to ${GOODVER} or newer'
@false
else
checkbin:
@true
endif
@true
CLEAN_FILES += include/asm-$(ARCH)/offsets.h \
arch/$(ARCH)/kernel/asm-offsets.s
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment