2021-02-10 21:52:34 +08:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
|
|
2017-09-06 19:19:45 +08:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
include $(INCLUDE_DIR)/image.mk
|
|
|
|
|
|
2019-06-19 17:46:58 +08:00
|
|
|
define Build/copy-file
|
|
|
|
|
cat "$(1)" > "$@"
|
|
|
|
|
endef
|
|
|
|
|
|
2018-01-09 14:38:15 +08:00
|
|
|
define Device/Default
|
|
|
|
|
PROFILES := Default
|
2020-04-16 19:38:37 +08:00
|
|
|
DEVICE_DTS := $(lastword $(subst _, ,$(1)))
|
2018-01-09 14:38:15 +08:00
|
|
|
KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts)
|
|
|
|
|
KERNEL_ENTRY := 0x00000000
|
|
|
|
|
KERNEL_LOADADDR := 0x00000000
|
|
|
|
|
KERNEL := kernel-bin
|
2017-09-06 19:19:45 +08:00
|
|
|
endef
|
|
|
|
|
|
2020-05-19 03:10:45 +08:00
|
|
|
include $(SUBTARGET).mk
|
2017-09-06 19:19:45 +08:00
|
|
|
|
|
|
|
|
$(eval $(call BuildImage))
|