Fork of the vendor (Boundary Devices) u-boot for Reform 2, with minor tweaks. The goal is to migrate to mainstream u-boot or barebox ASAP. The main impediment so far is the 4GB RAM config.
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.
 
 
 
 
 
 

84 lines
2.2 KiB

  1. # SPDX-License-Identifier: GPL-2.0+
  2. #
  3. # (C) Copyright 2000-2013
  4. # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  5. #########################################################################
  6. # This file is included from ./Makefile and spl/Makefile.
  7. # Clean the state to avoid the same flags added twice.
  8. #
  9. # (Tegra needs different flags for SPL.
  10. # That's the reason why this file must be included from spl/Makefile too.
  11. # If we did not have Tegra SoCs, build system would be much simpler...)
  12. PLATFORM_RELFLAGS :=
  13. PLATFORM_CPPFLAGS :=
  14. PLATFORM_LDFLAGS :=
  15. LDFLAGS :=
  16. LDFLAGS_FINAL :=
  17. OBJCOPYFLAGS :=
  18. # clear VENDOR for tcsh
  19. VENDOR :=
  20. #########################################################################
  21. ARCH := $(CONFIG_SYS_ARCH:"%"=%)
  22. CPU := $(CONFIG_SYS_CPU:"%"=%)
  23. ifdef CONFIG_SPL_BUILD
  24. ifdef CONFIG_TEGRA
  25. CPU := arm720t
  26. endif
  27. endif
  28. BOARD := $(CONFIG_SYS_BOARD:"%"=%)
  29. ifneq ($(CONFIG_SYS_VENDOR),)
  30. VENDOR := $(CONFIG_SYS_VENDOR:"%"=%)
  31. endif
  32. ifneq ($(CONFIG_SYS_SOC),)
  33. SOC := $(CONFIG_SYS_SOC:"%"=%)
  34. endif
  35. # Some architecture config.mk files need to know what CPUDIR is set to,
  36. # so calculate CPUDIR before including ARCH/SOC/CPU config.mk files.
  37. # Check if arch/$ARCH/cpu/$CPU exists, otherwise assume arch/$ARCH/cpu contains
  38. # CPU-specific code.
  39. CPUDIR=arch/$(ARCH)/cpu$(if $(CPU),/$(CPU),)
  40. sinclude $(srctree)/arch/$(ARCH)/config.mk # include architecture dependend rules
  41. sinclude $(srctree)/$(CPUDIR)/config.mk # include CPU specific rules
  42. ifdef SOC
  43. sinclude $(srctree)/$(CPUDIR)/$(SOC)/config.mk # include SoC specific rules
  44. endif
  45. ifneq ($(BOARD),)
  46. ifdef VENDOR
  47. BOARDDIR = $(VENDOR)/$(BOARD)
  48. else
  49. BOARDDIR = $(BOARD)
  50. endif
  51. endif
  52. ifdef BOARD
  53. sinclude $(srctree)/board/$(BOARDDIR)/config.mk # include board specific rules
  54. endif
  55. ifdef FTRACE
  56. PLATFORM_CPPFLAGS += -finstrument-functions -DFTRACE
  57. endif
  58. # Allow use of stdint.h if available
  59. ifneq ($(USE_STDINT),)
  60. PLATFORM_CPPFLAGS += -DCONFIG_USE_STDINT
  61. endif
  62. #########################################################################
  63. RELFLAGS := $(PLATFORM_RELFLAGS)
  64. PLATFORM_CPPFLAGS += $(RELFLAGS)
  65. PLATFORM_CPPFLAGS += -pipe
  66. LDFLAGS += $(PLATFORM_LDFLAGS)
  67. LDFLAGS_FINAL += -Bstatic
  68. export PLATFORM_CPPFLAGS
  69. export RELFLAGS
  70. export LDFLAGS_FINAL
  71. export CONFIG_STANDALONE_LOAD_ADDR