mpc85xx: Fix output location of padded dtb
[openwrt/staging/mkresin.git] / target / linux / mpc85xx / image / Makefile
1 # SPDX-License-Identifier: GPL-2.0-only
2
3 include $(TOPDIR)/rules.mk
4 include $(INCLUDE_DIR)/image.mk
5
6 DEVICE_VARS += DTB_SIZE
7
8 define Build/pad-dtb
9 $(call Image/BuildDTB,$(DTS_DIR)/$(DEVICE_DTS).dts,$(dir $@)/image-$(DEVICE_DTS).dtb,,--space $(DTB_SIZE))
10 endef
11
12 define Device/Default
13 PROFILES := Default
14 DEVICE_DTS := $(lastword $(subst _, ,$(1)))
15 KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts)
16 KERNEL_ENTRY := 0x00000000
17 KERNEL_LOADADDR := 0x00000000
18 KERNEL := kernel-bin
19 endef
20
21 include $(SUBTARGET).mk
22
23 $(eval $(call BuildImage))