Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #
  2. # arch/h8300/Makefile
  3. #
  4. # This file is subject to the terms and conditions of the GNU General Public
  5. # License. See the file "COPYING" in the main directory of this archive
  6. # for more details.
  7. #
  8. # (C) Copyright 2002-2015 Yoshinori Sato <ysato@users.sourceforge.jp>
  9. #
  10. KBUILD_DEFCONFIG := edosk2674_defconfig
  11. cflags-$(CONFIG_CPU_H8300H) := -mh
  12. aflags-$(CONFIG_CPU_H8300H) := -mh -Wa,--mach=h8300h
  13. ldflags-$(CONFIG_CPU_H8300H) := -mh8300helf_linux
  14. cflags-$(CONFIG_CPU_H8S) := -ms
  15. aflags-$(CONFIG_CPU_H8S) := -ms -Wa,--mach=h8300s
  16. ldflags-$(CONFIG_CPU_H8S) := -mh8300self_linux
  17. KBUILD_CFLAGS += $(cflags-y)
  18. KBUILD_CFLAGS += -mint32 -fno-builtin
  19. KBUILD_CFLAGS += -D__linux__
  20. KBUILD_CFLAGS += -DUTS_SYSNAME=\"uClinux\"
  21. KBUILD_AFLAGS += $(aflags-y)
  22. KBUILD_LDFLAGS += $(ldflags-y)
  23. CHECKFLAGS += -msize-long
  24. ifeq ($(CROSS_COMPILE),)
  25. CROSS_COMPILE := $(call cc-cross-prefix, h8300-unknown-linux- h8300-linux-)
  26. endif
  27. core-y += arch/$(ARCH)/kernel/ arch/$(ARCH)/mm/
  28. core-y += arch/$(ARCH)/boot/dts/
  29. libs-y += arch/$(ARCH)/lib/
  30. boot := arch/h8300/boot
  31. archclean:
  32. $(Q)$(MAKE) $(clean)=$(boot)
  33. vmlinux.srec vmlinux.bin zImage uImage.bin: vmlinux
  34. $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
  35. define archhelp
  36. @echo 'vmlinux.bin - Create raw binary'
  37. @echo 'vmlinux.srec - Create srec binary'
  38. @echo 'zImage - Compressed kernel image'
  39. endef