You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 966B

123456789101112131415161718192021222324252627282930313233
  1. # ARM64-specific directories containing source files
  2. #
  3. SRCDIRS += arch/arm64/core
  4. # ARM64-specific flags
  5. #
  6. CFLAGS += -mlittle-endian -mcmodel=small
  7. CFLAGS += -fomit-frame-pointer
  8. ASFLAGS += -mabi=lp64 -EL
  9. # We want to specify the LP64 model. There is an explicit -mabi=lp64
  10. # on GCC 4.9 and later, and no guarantee as to which is the default
  11. # model. In earlier versions of GCC, there is no -mabi option and the
  12. # default appears to be LP64 anyway.
  13. #
  14. ifeq ($(CCTYPE),gcc)
  15. LP64_TEST = $(CC) -mabi=lp64 -x c -c /dev/null -o /dev/null >/dev/null 2>&1
  16. LP64_FLAGS := $(shell $(LP64_TEST) && $(ECHO) '-mabi=lp64')
  17. WORKAROUND_CFLAGS += $(LP64_FLAGS)
  18. endif
  19. # EFI requires -fshort-wchar, and nothing else currently uses wchar_t
  20. #
  21. CFLAGS += -fshort-wchar
  22. # Include common ARM Makefile
  23. MAKEDEPS += arch/arm/Makefile
  24. include arch/arm/Makefile
  25. # Include platform-specific Makefile
  26. #
  27. MAKEDEPS += arch/arm64/Makefile.$(PLATFORM)
  28. include arch/arm64/Makefile.$(PLATFORM)