config.mk 651 B

12345678910111213141516171819202122232425
  1. #
  2. # (C) Copyright 2003 Josef Baumgartner <josef.baumgartner@telex.de>
  3. #
  4. # (C) Copyright 2000-2004
  5. # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  6. #
  7. # Copyright 2011-2012 Freescale Semiconductor, Inc.
  8. #
  9. # SPDX-License-Identifier: GPL-2.0+
  10. #
  11. cfg=$(srctree)/include/configs/$(CONFIG_SYS_CONFIG_NAME:"%"=%).h
  12. is5441x:=$(shell grep CONFIG_MCF5441x $(cfg))
  13. ifneq (,$(findstring CONFIG_MCF5441x,$(is5441x)))
  14. PLATFORM_CPPFLAGS += -mcpu=54418 -fPIC
  15. else
  16. PLATFORM_CPPFLAGS += -mcpu=54455 -fPIC
  17. endif
  18. ifneq (,$(findstring -linux-,$(shell $(CC) --version)))
  19. ifneq (,$(findstring GOT,$(shell $(LD) --help)))
  20. PLATFORM_LDFLAGS += --got=single
  21. endif
  22. endif