scripts/dtc/include-prefixes/microblaze/Makefile
raw| 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | # |
| 3 | |
| 4 | dtb-y := system.dtb |
| 5 | |
| 6 | ifneq ($(DTB),) |
| 7 | obj-y += linked_dtb.o |
| 8 | |
| 9 | # Ensure system.dtb exists |
| 10 | $(obj)/linked_dtb.o: $(obj)/system.dtb |
| 11 | |
| 12 | # Generate system.dtb from $(DTB).dtb |
| 13 | ifneq ($(DTB),system) |
| 14 | $(obj)/system.dtb: $(obj)/$(DTB).dtb |
| 15 | $(call if_changed,copy) |
| 16 | endif |
| 17 | endif |
| 18 | |
| 19 | # Rule to build device tree blobs |
| 20 | DTC_FLAGS := -p 1024 |