Kyle Swenson | 8d8f654 | 2021-03-15 11:02:55 -0600 | [diff] [blame^] | 1 | # |
2 | # Makefile for device trees | ||||
3 | # | ||||
4 | |||||
5 | DTC_FLAGS ?= -p 1024 | ||||
6 | |||||
7 | ifneq ($(DTB),) | ||||
8 | obj-y += linked_dtb.o | ||||
9 | endif | ||||
10 | |||||
11 | quiet_cmd_cp = CP $< $@$2 | ||||
12 | cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false) | ||||
13 | |||||
14 | # Generate builtin.dtb from $(DTB).dtb | ||||
15 | $(obj)/builtin.dtb: $(obj)/$(DTB).dtb | ||||
16 | $(call if_changed,cp) | ||||
17 | |||||
18 | $(obj)/linked_dtb.o: $(obj)/builtin.dtb | ||||
19 | |||||
20 | clean-files := *.dtb |