Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # sparc64/Makefile
  2. #
  3. # Makefile for the architecture dependent flags and dependencies on the
  4. # 64-bit Sparc.
  5. #
  6. # Copyright (C) 1996,1998 David S. Miller (davem@caip.rutgers.edu)
  7. # Copyright (C) 1998 Jakub Jelinek (jj@ultra.linux.cz)
  8. #
  9. CHECKFLAGS += -D__sparc__ -D__sparc_v9__ -m64
  10. # Undefine sparc when processing vmlinux.lds - it is used
  11. # And teach CPP we are doing 64 bit builds (for this case)
  12. CPPFLAGS_vmlinux.lds += -m64 -Usparc
  13. LDFLAGS := -m elf64_sparc
  14. KBUILD_CFLAGS += -m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow \
  15. -ffixed-g4 -ffixed-g5 -fcall-used-g7 -Wno-sign-compare \
  16. -Wa,--undeclared-regs
  17. KBUILD_CFLAGS += $(call cc-option,-mtune=ultrasparc3)
  18. KBUILD_AFLAGS += -m64 -mcpu=ultrasparc -Wa,--undeclared-regs
  19. ifeq ($(CONFIG_MCOUNT),y)
  20. KBUILD_CFLAGS += -pg
  21. endif
  22. head-y := arch/sparc64/kernel/head.o arch/sparc64/kernel/init_task.o
  23. core-y += arch/sparc64/kernel/ arch/sparc64/mm/
  24. core-y += arch/sparc64/math-emu/
  25. libs-y += arch/sparc64/prom/ arch/sparc64/lib/
  26. drivers-$(CONFIG_OPROFILE) += arch/sparc64/oprofile/
  27. boot := arch/sparc64/boot
  28. image tftpboot.img vmlinux.aout: vmlinux
  29. $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
  30. archclean:
  31. $(Q)$(MAKE) $(clean)=$(boot)
  32. define archhelp
  33. echo '* vmlinux - Standard sparc64 kernel'
  34. echo ' vmlinux.aout - a.out kernel for sparc64'
  35. echo ' tftpboot.img - Image prepared for tftp'
  36. endef