diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2010-02-26 07:57:12 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2010-02-27 06:52:49 -0500 |
commit | ebc89718a4b3fa0e440151fb4484541700828a5d (patch) | |
tree | 290f15b11f72298907a0b84b23d6685ceed06569 /arch/mips/Makefile | |
parent | 06a79b82b2a3e4bebb9a20638ca208c780e9e507 (diff) |
MIPS: Fix build error for uncompressed non-plain vmlinux kernels
Seen on rm200_defconfig for example:
CC arch/mips/boot/compressed/decompress.o
/home/ralf/src/linux/upstream-linus/arch/mips/boot/compressed/decompress.c: In function ‘decompress_kernel’:
/home/ralf/src/linux/upstream-linus/arch/mips/boot/compressed/decompress.c:116: error: implicit declaration of function ‘decompress’
make[3]: *** [arch/mips/boot/compressed/decompress.o] Error 1
make[2]: *** [vmlinuz.ecoff] Error 2
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/Makefile')
-rw-r--r-- | arch/mips/Makefile | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile index 1893efd43fca..2dcb7a22582a 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile | |||
@@ -185,6 +185,15 @@ libs-$(CONFIG_SNIPROM) += arch/mips/fw/sni/ | |||
185 | libs-y += arch/mips/fw/lib/ | 185 | libs-y += arch/mips/fw/lib/ |
186 | 186 | ||
187 | # | 187 | # |
188 | # Kernel compression | ||
189 | # | ||
190 | ifdef SYS_SUPPORTS_ZBOOT | ||
191 | COMPRESSION_FNAME = vmlinuz | ||
192 | else | ||
193 | COMPRESSION_FNAME = vmlinux | ||
194 | endif | ||
195 | |||
196 | # | ||
188 | # Board-dependent options and extra files | 197 | # Board-dependent options and extra files |
189 | # | 198 | # |
190 | 199 | ||
@@ -344,7 +353,7 @@ load-$(CONFIG_LEMOTE_MACH2F) +=0xffffffff80200000 | |||
344 | core-$(CONFIG_MIPS_MALTA) += arch/mips/mti-malta/ | 353 | core-$(CONFIG_MIPS_MALTA) += arch/mips/mti-malta/ |
345 | cflags-$(CONFIG_MIPS_MALTA) += -I$(srctree)/arch/mips/include/asm/mach-malta | 354 | cflags-$(CONFIG_MIPS_MALTA) += -I$(srctree)/arch/mips/include/asm/mach-malta |
346 | load-$(CONFIG_MIPS_MALTA) += 0xffffffff80100000 | 355 | load-$(CONFIG_MIPS_MALTA) += 0xffffffff80100000 |
347 | all-$(CONFIG_MIPS_MALTA) := vmlinuz.bin | 356 | all-$(CONFIG_MIPS_MALTA) := $(COMPRESSION_FNAME).bin |
348 | 357 | ||
349 | # | 358 | # |
350 | # MIPS SIM | 359 | # MIPS SIM |
@@ -594,7 +603,7 @@ load-$(CONFIG_SNI_RM) += 0xffffffff80600000 | |||
594 | else | 603 | else |
595 | load-$(CONFIG_SNI_RM) += 0xffffffff80030000 | 604 | load-$(CONFIG_SNI_RM) += 0xffffffff80030000 |
596 | endif | 605 | endif |
597 | all-$(CONFIG_SNI_RM) := vmlinuz.ecoff | 606 | all-$(CONFIG_SNI_RM) := $(COMPRESSION_FNAME).ecoff |
598 | 607 | ||
599 | # | 608 | # |
600 | # Common TXx9 | 609 | # Common TXx9 |