Makefile 557 B

1234567891011121314151617181920212223
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. include $(TOPDIR)/rules.mk
  3. include $(INCLUDE_DIR)/image.mk
  4. DEVICE_VARS += DTB_SIZE
  5. define Build/pad-dtb
  6. $(call Image/BuildDTB,$(DTS_DIR)/$(DEVICE_DTS).dts,$(dir $@)/image-$(DEVICE_DTS).dtb,,--space $(DTB_SIZE))
  7. endef
  8. define Device/Default
  9. PROFILES := Default
  10. DEVICE_DTS := $(lastword $(subst _, ,$(1)))
  11. KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts)
  12. KERNEL_ENTRY := 0x00000000
  13. KERNEL_LOADADDR := 0x00000000
  14. KERNEL := kernel-bin
  15. endef
  16. include $(SUBTARGET).mk
  17. $(eval $(call BuildImage))