18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ci# 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_cidtb-y := system.dtb 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ciifneq ($(DTB),) 78c2ecf20Sopenharmony_ciobj-y += linked_dtb.o 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci# Ensure system.dtb exists 108c2ecf20Sopenharmony_ci$(obj)/linked_dtb.o: $(obj)/system.dtb 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci# Generate system.dtb from $(DTB).dtb 138c2ecf20Sopenharmony_ciifneq ($(DTB),system) 148c2ecf20Sopenharmony_ci$(obj)/system.dtb: $(obj)/$(DTB).dtb 158c2ecf20Sopenharmony_ci $(call if_changed,shipped) 168c2ecf20Sopenharmony_ciendif 178c2ecf20Sopenharmony_ciendif 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci# Rule to build device tree blobs 208c2ecf20Sopenharmony_ciDTC_FLAGS := -p 1024 21