config.mk 704 B

1234567891011121314151617181920212223242526272829303132
  1. # SPDX-License-Identifier: GPL-2.0+
  2. #
  3. # Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
  4. ifndef CONFIG_CPU_BIG_ENDIAN
  5. CONFIG_SYS_LITTLE_ENDIAN = 1
  6. else
  7. CONFIG_SYS_BIG_ENDIAN = 1
  8. endif
  9. ifdef CONFIG_SYS_LITTLE_ENDIAN
  10. KBUILD_LDFLAGS += -EL
  11. PLATFORM_CPPFLAGS += -mlittle-endian
  12. endif
  13. ifdef CONFIG_SYS_BIG_ENDIAN
  14. KBUILD_LDFLAGS += -EB
  15. PLATFORM_CPPFLAGS += -mbig-endian
  16. endif
  17. ifdef CONFIG_ARC_MMU_VER
  18. CONFIG_MMU = 1
  19. endif
  20. PLATFORM_CPPFLAGS += -ffixed-r25 -D__ARC__ -gdwarf-2 -mno-sdata
  21. PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections -fno-common
  22. # Needed for relocation
  23. LDFLAGS_FINAL += -pie --gc-sections
  24. # Load address for standalone apps
  25. CONFIG_STANDALONE_LOAD_ADDR ?= 0x82000000