diff options
Diffstat (limited to 'arch/mips/Makefile')
-rw-r--r-- | arch/mips/Makefile | 84 |
1 files changed, 28 insertions, 56 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile index f450066b6241..20d19c9b7761 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile | |||
@@ -118,6 +118,7 @@ cflags-$(CONFIG_CPU_R4300) += -march=r4300 -Wa,--trap | |||
118 | cflags-$(CONFIG_CPU_VR41XX) += -march=r4100 -Wa,--trap | 118 | cflags-$(CONFIG_CPU_VR41XX) += -march=r4100 -Wa,--trap |
119 | cflags-$(CONFIG_CPU_R4X00) += -march=r4600 -Wa,--trap | 119 | cflags-$(CONFIG_CPU_R4X00) += -march=r4600 -Wa,--trap |
120 | cflags-$(CONFIG_CPU_TX49XX) += -march=r4600 -Wa,--trap | 120 | cflags-$(CONFIG_CPU_TX49XX) += -march=r4600 -Wa,--trap |
121 | cflags-$(CONFIG_CPU_LOONGSON2) += -march=r4600 -Wa,--trap | ||
121 | cflags-$(CONFIG_CPU_MIPS32_R1) += $(call cc-option,-march=mips32,-mips32 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS32) \ | 122 | cflags-$(CONFIG_CPU_MIPS32_R1) += $(call cc-option,-march=mips32,-mips32 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS32) \ |
122 | -Wa,-mips32 -Wa,--trap | 123 | -Wa,-mips32 -Wa,--trap |
123 | cflags-$(CONFIG_CPU_MIPS32_R2) += $(call cc-option,-march=mips32r2,-mips32r2 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS32) \ | 124 | cflags-$(CONFIG_CPU_MIPS32_R2) += $(call cc-option,-march=mips32r2,-mips32r2 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS32) \ |
@@ -283,14 +284,6 @@ load-$(CONFIG_MACH_DECSTATION) += 0xffffffff80040000 | |||
283 | CLEAN_FILES += drivers/tc/lk201-map.c | 284 | CLEAN_FILES += drivers/tc/lk201-map.c |
284 | 285 | ||
285 | # | 286 | # |
286 | # Galileo EV64120 Board | ||
287 | # | ||
288 | core-$(CONFIG_MIPS_EV64120) += arch/mips/gt64120/ev64120/ | ||
289 | core-$(CONFIG_MIPS_EV64120) += arch/mips/gt64120/common/ | ||
290 | cflags-$(CONFIG_MIPS_EV64120) += -Iinclude/asm-mips/mach-ev64120 | ||
291 | load-$(CONFIG_MIPS_EV64120) += 0xffffffff80100000 | ||
292 | |||
293 | # | ||
294 | # Wind River PPMC Board (4KC + GT64120) | 287 | # Wind River PPMC Board (4KC + GT64120) |
295 | # | 288 | # |
296 | core-$(CONFIG_WR_PPMC) += arch/mips/gt64120/wrppmc/ | 289 | core-$(CONFIG_WR_PPMC) += arch/mips/gt64120/wrppmc/ |
@@ -298,6 +291,13 @@ cflags-$(CONFIG_WR_PPMC) += -Iinclude/asm-mips/mach-wrppmc | |||
298 | load-$(CONFIG_WR_PPMC) += 0xffffffff80100000 | 291 | load-$(CONFIG_WR_PPMC) += 0xffffffff80100000 |
299 | 292 | ||
300 | # | 293 | # |
294 | # lemote fulong mini-PC board | ||
295 | # | ||
296 | core-$(CONFIG_LEMOTE_FULONG) +=arch/mips/lemote/lm2e/ | ||
297 | load-$(CONFIG_LEMOTE_FULONG) +=0xffffffff80100000 | ||
298 | cflags-$(CONFIG_LEMOTE_FULONG) += -Iinclude/asm-mips/mach-lemote | ||
299 | |||
300 | # | ||
301 | # For all MIPS, Inc. eval boards | 301 | # For all MIPS, Inc. eval boards |
302 | # | 302 | # |
303 | core-$(CONFIG_MIPS_BOARDS_GEN) += arch/mips/mips-boards/generic/ | 303 | core-$(CONFIG_MIPS_BOARDS_GEN) += arch/mips/mips-boards/generic/ |
@@ -327,7 +327,7 @@ load-$(CONFIG_MIPS_SEAD) += 0xffffffff80100000 | |||
327 | # | 327 | # |
328 | # MIPS SIM | 328 | # MIPS SIM |
329 | # | 329 | # |
330 | core-$(CONFIG_MIPS_SIM) += arch/mips/mips-boards/sim/ | 330 | core-$(CONFIG_MIPS_SIM) += arch/mips/mipssim/ |
331 | cflags-$(CONFIG_MIPS_SIM) += -Iinclude/asm-mips/mach-sim | 331 | cflags-$(CONFIG_MIPS_SIM) += -Iinclude/asm-mips/mach-sim |
332 | load-$(CONFIG_MIPS_SIM) += 0x80100000 | 332 | load-$(CONFIG_MIPS_SIM) += 0x80100000 |
333 | 333 | ||
@@ -343,12 +343,12 @@ cflags-$(CONFIG_MOMENCO_OCELOT) += -Iinclude/asm-mips/mach-ocelot | |||
343 | load-$(CONFIG_MOMENCO_OCELOT) += 0xffffffff80100000 | 343 | load-$(CONFIG_MOMENCO_OCELOT) += 0xffffffff80100000 |
344 | 344 | ||
345 | # | 345 | # |
346 | # Momentum Ocelot-C and -CS boards | 346 | # PMC-Sierra MSP SOCs |
347 | # | 347 | # |
348 | # The Ocelot-C[S] setup.o must be linked early - it does the ioremap() for the | 348 | core-$(CONFIG_PMC_MSP) += arch/mips/pmc-sierra/msp71xx/ |
349 | # mips_io_port_base. | 349 | cflags-$(CONFIG_PMC_MSP) += -Iinclude/asm-mips/pmc-sierra/msp71xx \ |
350 | core-$(CONFIG_MOMENCO_OCELOT_C) += arch/mips/momentum/ocelot_c/ | 350 | -mno-branch-likely |
351 | load-$(CONFIG_MOMENCO_OCELOT_C) += 0xffffffff80100000 | 351 | load-$(CONFIG_PMC_MSP) += 0xffffffff80100000 |
352 | 352 | ||
353 | # | 353 | # |
354 | # PMC-Sierra Yosemite | 354 | # PMC-Sierra Yosemite |
@@ -365,13 +365,6 @@ cflags-$(CONFIG_QEMU) += -Iinclude/asm-mips/mach-qemu | |||
365 | load-$(CONFIG_QEMU) += 0xffffffff80010000 | 365 | load-$(CONFIG_QEMU) += 0xffffffff80010000 |
366 | 366 | ||
367 | # | 367 | # |
368 | # Momentum Ocelot-3 | ||
369 | # | ||
370 | core-$(CONFIG_MOMENCO_OCELOT_3) += arch/mips/momentum/ocelot_3/ | ||
371 | cflags-$(CONFIG_MOMENCO_OCELOT_3) += -Iinclude/asm-mips/mach-ocelot3 | ||
372 | load-$(CONFIG_MOMENCO_OCELOT_3) += 0xffffffff80100000 | ||
373 | |||
374 | # | ||
375 | # Basler eXcite | 368 | # Basler eXcite |
376 | # | 369 | # |
377 | core-$(CONFIG_BASLER_EXCITE) += arch/mips/basler/excite/ | 370 | core-$(CONFIG_BASLER_EXCITE) += arch/mips/basler/excite/ |
@@ -389,10 +382,6 @@ core-$(CONFIG_DDB5XXX_COMMON) += arch/mips/ddb5xxx/common/ | |||
389 | core-$(CONFIG_DDB5477) += arch/mips/ddb5xxx/ddb5477/ | 382 | core-$(CONFIG_DDB5477) += arch/mips/ddb5xxx/ddb5477/ |
390 | load-$(CONFIG_DDB5477) += 0xffffffff80100000 | 383 | load-$(CONFIG_DDB5477) += 0xffffffff80100000 |
391 | 384 | ||
392 | core-$(CONFIG_LASAT) += arch/mips/lasat/ | ||
393 | cflags-$(CONFIG_LASAT) += -Iinclude/asm-mips/mach-lasat | ||
394 | load-$(CONFIG_LASAT) += 0xffffffff80000000 | ||
395 | |||
396 | # | 385 | # |
397 | # Common VR41xx | 386 | # Common VR41xx |
398 | # | 387 | # |
@@ -580,6 +569,7 @@ load-$(CONFIG_TOSHIBA_JMR3927) += 0xffffffff80050000 | |||
580 | # | 569 | # |
581 | core-$(CONFIG_TOSHIBA_RBTX4927) += arch/mips/tx4927/toshiba_rbtx4927/ | 570 | core-$(CONFIG_TOSHIBA_RBTX4927) += arch/mips/tx4927/toshiba_rbtx4927/ |
582 | core-$(CONFIG_TOSHIBA_RBTX4927) += arch/mips/tx4927/common/ | 571 | core-$(CONFIG_TOSHIBA_RBTX4927) += arch/mips/tx4927/common/ |
572 | cflags-$(CONFIG_TOSHIBA_RBTX4927) += -Iinclude/asm-mips/mach-tx49xx | ||
583 | load-$(CONFIG_TOSHIBA_RBTX4927) += 0xffffffff80020000 | 573 | load-$(CONFIG_TOSHIBA_RBTX4927) += 0xffffffff80020000 |
584 | 574 | ||
585 | # | 575 | # |
@@ -587,6 +577,7 @@ load-$(CONFIG_TOSHIBA_RBTX4927) += 0xffffffff80020000 | |||
587 | # | 577 | # |
588 | core-$(CONFIG_TOSHIBA_RBTX4938) += arch/mips/tx4938/toshiba_rbtx4938/ | 578 | core-$(CONFIG_TOSHIBA_RBTX4938) += arch/mips/tx4938/toshiba_rbtx4938/ |
589 | core-$(CONFIG_TOSHIBA_RBTX4938) += arch/mips/tx4938/common/ | 579 | core-$(CONFIG_TOSHIBA_RBTX4938) += arch/mips/tx4938/common/ |
580 | cflags-$(CONFIG_TOSHIBA_RBTX4938) += -Iinclude/asm-mips/mach-tx49xx | ||
590 | load-$(CONFIG_TOSHIBA_RBTX4938) += 0xffffffff80100000 | 581 | load-$(CONFIG_TOSHIBA_RBTX4938) += 0xffffffff80100000 |
591 | 582 | ||
592 | cflags-y += -Iinclude/asm-mips/mach-generic | 583 | cflags-y += -Iinclude/asm-mips/mach-generic |
@@ -603,7 +594,8 @@ JIFFIES = jiffies_64 | |||
603 | endif | 594 | endif |
604 | 595 | ||
605 | AFLAGS += $(cflags-y) | 596 | AFLAGS += $(cflags-y) |
606 | CFLAGS += $(cflags-y) | 597 | CFLAGS += $(cflags-y) \ |
598 | -D"VMLINUX_LOAD_ADDRESS=$(load-y)" | ||
607 | 599 | ||
608 | LDFLAGS += -m $(ld-emul) | 600 | LDFLAGS += -m $(ld-emul) |
609 | 601 | ||
@@ -633,18 +625,11 @@ CPPFLAGS_vmlinux.lds := \ | |||
633 | head-y := arch/mips/kernel/head.o arch/mips/kernel/init_task.o | 625 | head-y := arch/mips/kernel/head.o arch/mips/kernel/init_task.o |
634 | 626 | ||
635 | libs-y += arch/mips/lib/ | 627 | libs-y += arch/mips/lib/ |
636 | libs-$(CONFIG_32BIT) += arch/mips/lib-32/ | ||
637 | libs-$(CONFIG_64BIT) += arch/mips/lib-64/ | ||
638 | 628 | ||
639 | core-y += arch/mips/kernel/ arch/mips/mm/ arch/mips/math-emu/ | 629 | core-y += arch/mips/kernel/ arch/mips/mm/ arch/mips/math-emu/ |
640 | 630 | ||
641 | drivers-$(CONFIG_OPROFILE) += arch/mips/oprofile/ | 631 | drivers-$(CONFIG_OPROFILE) += arch/mips/oprofile/ |
642 | 632 | ||
643 | ifdef CONFIG_LASAT | ||
644 | rom.bin rom.sw: vmlinux | ||
645 | $(Q)$(MAKE) $(build)=arch/mips/lasat/image $@ | ||
646 | endif | ||
647 | |||
648 | # | 633 | # |
649 | # Some machines like the Indy need 32-bit ELF binaries for booting purposes. | 634 | # Some machines like the Indy need 32-bit ELF binaries for booting purposes. |
650 | # Other need ECOFF, so we build a 32-bit ELF binary for them which we then | 635 | # Other need ECOFF, so we build a 32-bit ELF binary for them which we then |
@@ -702,32 +687,19 @@ vmlinux.srec: $(vmlinux-32) | |||
702 | CLEAN_FILES += vmlinux.ecoff \ | 687 | CLEAN_FILES += vmlinux.ecoff \ |
703 | vmlinux.srec | 688 | vmlinux.srec |
704 | 689 | ||
690 | archprepare: | ||
691 | ifdef CONFIG_MIPS32_N32 | ||
692 | @echo ' Checking missing-syscalls for N32' | ||
693 | $(Q)$(MAKE) $(build)=. missing-syscalls EXTRA_CFLAGS="-mabi=n32" | ||
694 | endif | ||
695 | ifdef CONFIG_MIPS32_O32 | ||
696 | @echo ' Checking missing-syscalls for O32' | ||
697 | $(Q)$(MAKE) $(build)=. missing-syscalls EXTRA_CFLAGS="-mabi=32" | ||
698 | endif | ||
699 | |||
705 | archclean: | 700 | archclean: |
706 | @$(MAKE) $(clean)=arch/mips/boot | 701 | @$(MAKE) $(clean)=arch/mips/boot |
707 | @$(MAKE) $(clean)=arch/mips/lasat | ||
708 | 702 | ||
709 | CLEAN_FILES += vmlinux.32 \ | 703 | CLEAN_FILES += vmlinux.32 \ |
710 | vmlinux.64 \ | 704 | vmlinux.64 \ |
711 | vmlinux.ecoff | 705 | vmlinux.ecoff |
712 | |||
713 | quiet_cmd_syscalls_n32 = CALL-N32 $< | ||
714 | cmd_syscalls_n32 = $(CONFIG_SHELL) $< $(CC) $(c_flags) -mabi=n32 | ||
715 | |||
716 | quiet_cmd_syscalls_o32 = CALL-O32 $< | ||
717 | cmd_syscalls_o32 = $(CONFIG_SHELL) $< $(CC) $(c_flags) -mabi=32 | ||
718 | |||
719 | PHONY += missing-syscalls-n32 missing-syscalls-o32 | ||
720 | |||
721 | missing-syscalls-n32: scripts/checksyscalls.sh FORCE | ||
722 | $(call cmd,syscalls_n32) | ||
723 | |||
724 | missing-syscalls-o32: scripts/checksyscalls.sh FORCE | ||
725 | $(call cmd,syscalls_o32) | ||
726 | |||
727 | archprepare: | ||
728 | ifdef CONFIG_MIPS32_N32 | ||
729 | $(Q)$(MAKE) $(build)=arch/mips missing-syscalls-n32 | ||
730 | endif | ||
731 | ifdef CONFIG_MIPS32_O32 | ||
732 | $(Q)$(MAKE) $(build)=arch/mips missing-syscalls-o32 | ||
733 | endif | ||