config.mk 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. # SPDX-License-Identifier: GPL-2.0+
  8. #
  9. cfg=$(srctree)/include/configs/$(CONFIG_SYS_CONFIG_NAME:"%"=%).h
  10. is5208:=$(shell grep CONFIG_M5208 $(cfg))
  11. is5249:=$(shell grep CONFIG_M5249 $(cfg))
  12. is5253:=$(shell grep CONFIG_M5253 $(cfg))
  13. is5271:=$(shell grep CONFIG_M5271 $(cfg))
  14. is5272:=$(shell grep CONFIG_M5272 $(cfg))
  15. is5275:=$(shell grep CONFIG_M5275 $(cfg))
  16. is5282:=$(shell grep CONFIG_M5282 $(cfg))
  17. ifneq (,$(findstring CONFIG_M5208,$(is5208)))
  18. PLATFORM_CPPFLAGS += -mcpu=5208
  19. endif
  20. ifneq (,$(findstring CONFIG_M5249,$(is5249)))
  21. PLATFORM_CPPFLAGS += -mcpu=5249
  22. endif
  23. ifneq (,$(findstring CONFIG_M5253,$(is5253)))
  24. PLATFORM_CPPFLAGS += -mcpu=5253
  25. endif
  26. ifneq (,$(findstring CONFIG_M5271,$(is5271)))
  27. PLATFORM_CPPFLAGS += -mcpu=5271
  28. endif
  29. ifneq (,$(findstring CONFIG_M5272,$(is5272)))
  30. PLATFORM_CPPFLAGS += -mcpu=5272
  31. endif
  32. ifneq (,$(findstring CONFIG_M5275,$(is5275)))
  33. PLATFORM_CPPFLAGS += -mcpu=5275
  34. endif
  35. ifneq (,$(findstring CONFIG_M5282,$(is5282)))
  36. PLATFORM_CPPFLAGS += -mcpu=5282
  37. endif