Makefile (c6380ecd8e9bee7aba3d9a5a94b58168244c4a61) Makefile (6bce3deae4d51326d0f07619ab6443ba771b3fb6)
1#
2# This file is subject to the terms and conditions of the GNU General Public
3# License. See the file "COPYING" in the main directory of this archive
4# for more details.
5#
6# Copyright (C) 1994, 95, 96, 2003 by Ralf Baechle
7# DECStation modifications by Paul M. Antoine, 1996
8# Copyright (C) 2002, 2003, 2004 Maciej W. Rozycki

--- 208 unchanged lines hidden (view full) ---

217toolchain-virt := $(call cc-option-yn,$(mips-cflags) -mvirt)
218cflags-$(toolchain-virt) += -DTOOLCHAIN_SUPPORTS_VIRT
219# For -mmicromips, use -Wa,-fatal-warnings to catch unsupported -mxpa which
220# only warns
221xpa-cflags-y := $(mips-cflags)
222xpa-cflags-$(micromips-ase) += -mmicromips -Wa$(comma)-fatal-warnings
223toolchain-xpa := $(call cc-option-yn,$(xpa-cflags-y) -mxpa)
224cflags-$(toolchain-xpa) += -DTOOLCHAIN_SUPPORTS_XPA
1#
2# This file is subject to the terms and conditions of the GNU General Public
3# License. See the file "COPYING" in the main directory of this archive
4# for more details.
5#
6# Copyright (C) 1994, 95, 96, 2003 by Ralf Baechle
7# DECStation modifications by Paul M. Antoine, 1996
8# Copyright (C) 2002, 2003, 2004 Maciej W. Rozycki

--- 208 unchanged lines hidden (view full) ---

217toolchain-virt := $(call cc-option-yn,$(mips-cflags) -mvirt)
218cflags-$(toolchain-virt) += -DTOOLCHAIN_SUPPORTS_VIRT
219# For -mmicromips, use -Wa,-fatal-warnings to catch unsupported -mxpa which
220# only warns
221xpa-cflags-y := $(mips-cflags)
222xpa-cflags-$(micromips-ase) += -mmicromips -Wa$(comma)-fatal-warnings
223toolchain-xpa := $(call cc-option-yn,$(xpa-cflags-y) -mxpa)
224cflags-$(toolchain-xpa) += -DTOOLCHAIN_SUPPORTS_XPA
225toolchain-crc := $(call cc-option-yn,$(mips-cflags) -Wa$(comma)-mcrc)
226cflags-$(toolchain-crc) += -DTOOLCHAIN_SUPPORTS_CRC
225
226#
227# Firmware support
228#
229libs-$(CONFIG_FW_ARC) += arch/mips/fw/arc/
230libs-$(CONFIG_FW_CFE) += arch/mips/fw/cfe/
231libs-$(CONFIG_FW_SNIPROM) += arch/mips/fw/sni/
232libs-y += arch/mips/fw/lib/

--- 92 unchanged lines hidden (view full) ---

325head-y := arch/mips/kernel/head.o
326
327libs-y += arch/mips/lib/
328libs-y += arch/mips/math-emu/
329
330# See arch/mips/Kbuild for content of core part of the kernel
331core-y += arch/mips/
332
227
228#
229# Firmware support
230#
231libs-$(CONFIG_FW_ARC) += arch/mips/fw/arc/
232libs-$(CONFIG_FW_CFE) += arch/mips/fw/cfe/
233libs-$(CONFIG_FW_SNIPROM) += arch/mips/fw/sni/
234libs-y += arch/mips/fw/lib/

--- 92 unchanged lines hidden (view full) ---

327head-y := arch/mips/kernel/head.o
328
329libs-y += arch/mips/lib/
330libs-y += arch/mips/math-emu/
331
332# See arch/mips/Kbuild for content of core part of the kernel
333core-y += arch/mips/
334
335drivers-$(CONFIG_MIPS_CRC_SUPPORT) += arch/mips/crypto/
333drivers-$(CONFIG_OPROFILE) += arch/mips/oprofile/
334
335# suspend and hibernation support
336drivers-$(CONFIG_PM) += arch/mips/power/
337
338# boot image targets (arch/mips/boot/)
339boot-y := vmlinux.bin
340boot-y += vmlinux.ecoff

--- 127 unchanged lines hidden (view full) ---

468 echo
469 echo ' These will be default as appropriate for a configured platform.'
470 echo
471 echo ' If you are targeting a system supported by generic kernels you may'
472 echo ' configure the kernel for a given architecture target like so:'
473 echo
474 echo ' {micro32,32,64}{r1,r2,r6}{el,}_defconfig <BOARDS="list of boards">'
475 echo
336drivers-$(CONFIG_OPROFILE) += arch/mips/oprofile/
337
338# suspend and hibernation support
339drivers-$(CONFIG_PM) += arch/mips/power/
340
341# boot image targets (arch/mips/boot/)
342boot-y := vmlinux.bin
343boot-y += vmlinux.ecoff

--- 127 unchanged lines hidden (view full) ---

471 echo
472 echo ' These will be default as appropriate for a configured platform.'
473 echo
474 echo ' If you are targeting a system supported by generic kernels you may'
475 echo ' configure the kernel for a given architecture target like so:'
476 echo
477 echo ' {micro32,32,64}{r1,r2,r6}{el,}_defconfig <BOARDS="list of boards">'
478 echo
479 echo ' Where BOARDS is some subset of the following:'
480 for board in $(sort $(BOARDS)); do echo " $${board}"; done
481 echo
482 echo ' Specifically the following generic default configurations are'
483 echo ' supported:'
484 echo
485 $(foreach cfg,$(generic_defconfigs),
486 printf " %-24s - Build generic kernel for $(call describe_generic_defconfig,$(cfg))\n" $(cfg);)
487 echo
488 echo ' The following legacy default configurations have been converted to'
489 echo ' generic and can still be used:'
490 echo
491 $(foreach cfg,$(sort $(legacy_defconfigs)),
492 printf " %-24s - Build $($(cfg)-y)\n" $(cfg);)
493 echo
476 echo ' Otherwise, the following default configurations are available:'
477endef
478
479generic_config_dir = $(srctree)/arch/$(ARCH)/configs/generic
480generic_defconfigs :=
481
482#
483# If the user generates a generic kernel configuration without specifying a

--- 18 unchanged lines hidden (view full) ---

502$$(target): $(generic_config_dir)/$(bits)$(rev).config
503$$(target): $(generic_config_dir)/$(endian).config
504)))
505endef
506
507$(eval $(call gen_generic_defconfigs,32 64,r1 r2 r6,eb el))
508$(eval $(call gen_generic_defconfigs,micro32,r2,eb el))
509
494 echo ' Otherwise, the following default configurations are available:'
495endef
496
497generic_config_dir = $(srctree)/arch/$(ARCH)/configs/generic
498generic_defconfigs :=
499
500#
501# If the user generates a generic kernel configuration without specifying a

--- 18 unchanged lines hidden (view full) ---

520$$(target): $(generic_config_dir)/$(bits)$(rev).config
521$$(target): $(generic_config_dir)/$(endian).config
522)))
523endef
524
525$(eval $(call gen_generic_defconfigs,32 64,r1 r2 r6,eb el))
526$(eval $(call gen_generic_defconfigs,micro32,r2,eb el))
527
528define describe_generic_defconfig
529$(subst 32r,MIPS32 r,$(subst 64r,MIPS64 r,$(subst el, little endian,$(patsubst %_defconfig,%,$(1)))))
530endef
531
510.PHONY: $(generic_defconfigs)
511$(generic_defconfigs):
512 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh \
513 -m -O $(objtree) $(srctree)/arch/$(ARCH)/configs/generic_defconfig $^ | \
514 grep -Ev '^#'
515 $(Q)cp $(KCONFIG_CONFIG) $(objtree)/.config.$@
516 $(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig \
517 KCONFIG_CONFIG=$(objtree)/.config.$@ >/dev/null

--- 20 unchanged lines hidden (view full) ---

538 $(Q)echo
539 $(Q)false
540
541#
542# Legacy defconfig compatibility - these targets used to be real defconfigs but
543# now that the boards have been converted to use the generic kernel they are
544# wrappers around the generic rules above.
545#
532.PHONY: $(generic_defconfigs)
533$(generic_defconfigs):
534 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh \
535 -m -O $(objtree) $(srctree)/arch/$(ARCH)/configs/generic_defconfig $^ | \
536 grep -Ev '^#'
537 $(Q)cp $(KCONFIG_CONFIG) $(objtree)/.config.$@
538 $(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig \
539 KCONFIG_CONFIG=$(objtree)/.config.$@ >/dev/null

--- 20 unchanged lines hidden (view full) ---

560 $(Q)echo
561 $(Q)false
562
563#
564# Legacy defconfig compatibility - these targets used to be real defconfigs but
565# now that the boards have been converted to use the generic kernel they are
566# wrappers around the generic rules above.
567#
546.PHONY: sead3_defconfig
547sead3_defconfig:
548 $(Q)$(MAKE) -f $(srctree)/Makefile 32r2el_defconfig BOARDS=sead-3
568legacy_defconfigs += ocelot_defconfig
569ocelot_defconfig-y := 32r2el_defconfig BOARDS=ocelot
549
570
550.PHONY: sead3micro_defconfig
551sead3micro_defconfig:
552 $(Q)$(MAKE) -f $(srctree)/Makefile micro32r2el_defconfig BOARDS=sead-3
571legacy_defconfigs += sead3_defconfig
572sead3_defconfig-y := 32r2el_defconfig BOARDS=sead-3
553
573
554.PHONY: xilfpga_defconfig
555xilfpga_defconfig:
556 $(Q)$(MAKE) -f $(srctree)/Makefile 32r2el_defconfig BOARDS=xilfpga
574legacy_defconfigs += sead3micro_defconfig
575sead3micro_defconfig-y := micro32r2el_defconfig BOARDS=sead-3
576
577legacy_defconfigs += xilfpga_defconfig
578xilfpga_defconfig-y := 32r2el_defconfig BOARDS=xilfpga
579
580.PHONY: $(legacy_defconfigs)
581$(legacy_defconfigs):
582 $(Q)$(MAKE) -f $(srctree)/Makefile $($@-y)