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.
 
 
 
 
 
 

65 lines
1.5 KiB

  1. # SPDX-License-Identifier: GPL-2.0+
  2. #
  3. # Copyright (c) 2011 The Chromium OS Authors.
  4. # This Makefile builds the internal U-Boot fdt if CONFIG_OF_CONTROL is
  5. # enabled. See doc/README.fdt-control for more details.
  6. DEVICE_TREE ?= $(CONFIG_DEFAULT_DEVICE_TREE:"%"=%)
  7. ifeq ($(DEVICE_TREE),)
  8. DEVICE_TREE := unset
  9. endif
  10. ARCH_PATH := arch/$(ARCH)/dts
  11. dtb_depends := arch-dtbs
  12. ifneq ($(EXT_DTB),)
  13. DTB := $(EXT_DTB)
  14. else
  15. DTB := $(ARCH_PATH)/$(DEVICE_TREE).dtb
  16. dtb_depends += $(DTB:.dtb=.dts)
  17. endif
  18. $(obj)/dt-spl.dtb: $(DTB) $(objtree)/tools/fdtgrep FORCE
  19. $(call if_changed,fdtgrep)
  20. $(obj)/dt.dtb: $(DTB) FORCE
  21. $(call if_changed,shipped)
  22. targets += dt.dtb dt-spl.dtb
  23. $(DTB): $(dtb_depends)
  24. ifeq ($(EXT_DTB),)
  25. $(Q)$(MAKE) $(build)=$(ARCH_PATH) $@
  26. endif
  27. $(Q)test -e $@ || ( \
  28. echo >&2; \
  29. echo >&2 "Device Tree Source is not correctly specified."; \
  30. echo >&2 "Please define 'CONFIG_DEFAULT_DEVICE_TREE'"; \
  31. echo >&2 "or build with 'DEVICE_TREE=<device_tree>' argument"; \
  32. echo >&2; \
  33. /bin/false)
  34. arch-dtbs:
  35. $(Q)$(MAKE) $(build)=$(ARCH_PATH) dtbs
  36. .SECONDARY: $(obj)/dt.dtb.S $(obj)/dt-spl.dtb.S
  37. ifeq ($(CONFIG_SPL_BUILD),y)
  38. obj-$(CONFIG_OF_EMBED) := dt-spl.dtb.o
  39. # support "out-of-tree" build for dtb-spl
  40. $(obj)/dt-spl.dtb.o: $(obj)/dt-spl.dtb.S FORCE
  41. $(call if_changed_dep,as_o_S)
  42. else
  43. obj-$(CONFIG_OF_EMBED) := dt.dtb.o
  44. endif
  45. dtbs: $(obj)/dt.dtb $(obj)/dt-spl.dtb
  46. @:
  47. clean-files := dt.dtb.S dt-spl.dtb.S
  48. # Let clean descend into dts directories
  49. subdir- += ../arch/arm/dts ../arch/microblaze/dts ../arch/mips/dts ../arch/sandbox/dts ../arch/x86/dts