Makefile 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #
  2. # arch/score/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. KBUILD_DEFCONFIG := spct6600_defconfig
  9. CROSS_COMPILE := score-linux-
  10. #
  11. # CPU-dependent compiler/assembler options for optimization.
  12. #
  13. cflags-y += -G0 -pipe -mel -mnhwloop -D__SCOREEL__ \
  14. -D__linux__ -ffunction-sections -ffreestanding
  15. #
  16. # Board-dependent options and extra files
  17. #
  18. KBUILD_AFLAGS += $(cflags-y)
  19. KBUILD_CFLAGS += $(cflags-y)
  20. MODFLAGS += -mlong-calls
  21. LDFLAGS += --oformat elf32-littlescore
  22. LDFLAGS_vmlinux += -G0 -static -nostdlib
  23. head-y := arch/score/kernel/head.o
  24. libs-y += arch/score/lib/
  25. core-y += arch/score/kernel/ arch/score/mm/
  26. boot := arch/score/boot
  27. vmlinux.bin: vmlinux
  28. $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
  29. archclean:
  30. @$(MAKE) $(clean)=$(boot)
  31. define archhelp
  32. echo ' vmlinux.bin - Raw binary boot image'
  33. echo
  34. echo ' These will be default as apropriate for a configured platform.'
  35. endef