Makefile 346 B

123456789101112131415161718192021
  1. #
  2. # Makefile for device trees
  3. #
  4. DTC_FLAGS ?= -p 1024
  5. ifneq ($(DTB),)
  6. obj-y += linked_dtb.o
  7. endif
  8. quiet_cmd_cp = CP $< $@$2
  9. cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false)
  10. # Generate builtin.dtb from $(DTB).dtb
  11. $(obj)/builtin.dtb: $(obj)/$(DTB).dtb
  12. $(call if_changed,cp)
  13. $(obj)/linked_dtb.o: $(obj)/builtin.dtb
  14. clean-files := *.dtb