config.mk 614 B

12345678910111213141516171819202122232425
  1. #
  2. # (C) Copyright 2002
  3. # Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
  4. #
  5. # SPDX-License-Identifier: GPL-2.0+
  6. #
  7. # If armv7-a is not supported by GCC fall-back to armv5, which is
  8. # supported by more tool-chains
  9. PF_CPPFLAGS_ARMV7 := $(call cc-option, -march=armv7-a, -march=armv5)
  10. PLATFORM_CPPFLAGS += $(PF_CPPFLAGS_ARMV7)
  11. # SEE README.arm-unaligned-accesses
  12. PF_NO_UNALIGNED := $(call cc-option, -mno-unaligned-access,)
  13. PLATFORM_NO_UNALIGNED := $(PF_NO_UNALIGNED)
  14. ifneq ($(CONFIG_IMX_CONFIG),)
  15. ifdef CONFIG_SPL
  16. ifdef CONFIG_SPL_BUILD
  17. ALL-y += $(OBJTREE)/SPL
  18. endif
  19. else
  20. ALL-y += u-boot.imx
  21. endif
  22. endif