Makefile 445 B

123456789101112131415161718192021
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. include $(TOPDIR)/rules.mk
  3. include $(INCLUDE_DIR)/image.mk
  4. define Build/copy-file
  5. cat "$(1)" > "$@"
  6. endef
  7. define Device/Default
  8. PROFILES := Default
  9. DEVICE_DTS := $(lastword $(subst _, ,$(1)))
  10. KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts)
  11. KERNEL_ENTRY := 0x00000000
  12. KERNEL_LOADADDR := 0x00000000
  13. KERNEL := kernel-bin
  14. endef
  15. include $(SUBTARGET).mk
  16. $(eval $(call BuildImage))