1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 2300db34aSStephen Warren# 3300db34aSStephen Warren 492f687f4SRob Herringdtb-y := system.dtb 592f687f4SRob Herring 637c8a5faSRob Herringifneq ($(DTB),) 7300db34aSStephen Warrenobj-y += linked_dtb.o 8300db34aSStephen Warren 9300db34aSStephen Warren# Ensure system.dtb exists 10300db34aSStephen Warren$(obj)/linked_dtb.o: $(obj)/system.dtb 11300db34aSStephen Warren 12300db34aSStephen Warren# Generate system.dtb from $(DTB).dtb 13300db34aSStephen Warrenifneq ($(DTB),system) 14300db34aSStephen Warren$(obj)/system.dtb: $(obj)/$(DTB).dtb 15*a5575df5SMasahiro Yamada $(call if_changed,copy) 16300db34aSStephen Warrenendif 1737c8a5faSRob Herringendif 18300db34aSStephen Warren 19300db34aSStephen Warren# Rule to build device tree blobs 20300db34aSStephen WarrenDTC_FLAGS := -p 1024 21