Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. KBUILD_AFLAGS_MODULE +=
  21. KBUILD_CFLAGS_MODULE +=
  22. LDFLAGS += --oformat elf32-littlescore
  23. LDFLAGS_vmlinux += -G0 -static -nostdlib
  24. head-y := arch/score/kernel/head.o
  25. libs-y += arch/score/lib/
  26. core-y += arch/score/kernel/ arch/score/mm/
  27. boot := arch/score/boot
  28. vmlinux.bin: vmlinux
  29. $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
  30. archclean:
  31. @$(MAKE) $(clean)=$(boot)
  32. define archhelp
  33. echo ' vmlinux.bin - Raw binary boot image'
  34. echo
  35. echo ' These will be default as appropriate for a configured platform.'
  36. endef