@@ -288,6 +288,7 @@ entry-y = $(shell $(objtree)/arch/mips/tools/elf-entry vmlinux)
cflags-y += -I$(srctree)/arch/mips/include/asm/mach-generic
drivers-$(CONFIG_PCI) += arch/mips/pci/
+ifdef need-compiler
#
# Automatically detect the build format. By default we choose
# the elf format according to the load address.
@@ -308,7 +309,8 @@ ifdef CONFIG_64BIT
$(error CONFIG_CPU_DADDI_WORKAROUNDS unsupported without -msym32)
endif
endif
-endif
+endif # CONFIG_64BIT
+endif # need-compiler
# When linking a 32-bit executable the LLVM linker cannot cope with a
# 32-bit load address that has been sign-extended to 64 bits. Simply