Makefile 358 B

12345678910111213141516171819
  1. #
  2. obj-y += linked_dtb.o
  3. # Ensure system.dtb exists
  4. $(obj)/linked_dtb.o: $(obj)/system.dtb
  5. # Generate system.dtb from $(DTB).dtb
  6. ifneq ($(DTB),system)
  7. $(obj)/system.dtb: $(obj)/$(DTB).dtb
  8. $(call if_changed,cp)
  9. endif
  10. quiet_cmd_cp = CP $< $@$2
  11. cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false)
  12. # Rule to build device tree blobs
  13. DTC_FLAGS := -p 1024