Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #
  2. # m32r/Makefile
  3. #
  4. LDFLAGS :=
  5. OBJCOPYFLAGS := -O binary -R .note -R .comment -S
  6. LDFLAGS_vmlinux := -e startup_32
  7. CFLAGS += -pipe -fno-schedule-insns
  8. CFLAGS_KERNEL += -mmodel=medium
  9. CFLAGS_MODULE += -mmodel=large
  10. ifdef CONFIG_CHIP_VDEC2
  11. cflags-$(CONFIG_ISA_M32R2) += -DNO_FPU -Wa,-bitinst
  12. aflags-$(CONFIG_ISA_M32R2) += -DNO_FPU -Wa,-bitinst
  13. else
  14. cflags-$(CONFIG_ISA_M32R2) += -DNO_FPU -m32r2
  15. aflags-$(CONFIG_ISA_M32R2) += -DNO_FPU -m32r2
  16. endif
  17. cflags-$(CONFIG_ISA_M32R) += -DNO_FPU
  18. aflags-$(CONFIG_ISA_M32R) += -DNO_FPU -Wa,-no-bitinst
  19. CFLAGS += $(cflags-y)
  20. AFLAGS += $(aflags-y)
  21. CHECKFLAGS := $(CHECK) -D__m32r__
  22. head-y := arch/m32r/kernel/head.o arch/m32r/kernel/init_task.o
  23. LIBGCC := $(shell $(CC) $(CFLAGS) -print-libgcc-file-name)
  24. libs-y += arch/m32r/lib/ $(LIBGCC)
  25. core-y += arch/m32r/kernel/ \
  26. arch/m32r/mm/ \
  27. arch/m32r/boot/
  28. drivers-$(CONFIG_OPROFILE) += arch/m32r/oprofile/
  29. boot := arch/m32r/boot
  30. .PHONY: zImage
  31. all: zImage
  32. zImage: vmlinux
  33. $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
  34. compressed: zImage
  35. archclean:
  36. $(Q)$(MAKE) $(clean)=$(boot)
  37. define archhelp
  38. echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)'
  39. endef