2016-02-12 08:29:24 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2015 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/image.mk
|
|
|
|
|
|
|
|
#################################################
|
2018-05-13 18:05:38 +00:00
|
|
|
# Default and templates
|
2016-02-12 08:29:24 +00:00
|
|
|
#################################################
|
|
|
|
|
2018-05-13 18:05:38 +00:00
|
|
|
define Device/Default
|
|
|
|
PROFILES := Default
|
|
|
|
KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts)
|
|
|
|
KERNEL_INITRAMFS_PREFIX := $$(IMG_PREFIX)-$(1)-initramfs
|
|
|
|
KERNEL_PREFIX := $$(IMAGE_PREFIX)
|
|
|
|
KERNEL_LOADADDR := 0x8000
|
2016-07-28 12:19:16 +00:00
|
|
|
endef
|
2016-02-12 08:29:24 +00:00
|
|
|
|
2018-05-13 18:05:38 +00:00
|
|
|
define Device/FitImageGzip
|
|
|
|
KERNEL_SUFFIX := -fit-uImage.itb
|
|
|
|
KERNEL = kernel-bin | gzip | fit gzip $$(DTS_DIR)/$$(DEVICE_DTS).dtb
|
|
|
|
KERNEL_NAME := Image
|
2016-02-12 08:29:24 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
#################################################
|
|
|
|
# Devices
|
|
|
|
#################################################
|
|
|
|
|
2018-05-13 18:05:38 +00:00
|
|
|
define Device/digilent_zynq-zybo
|
|
|
|
$(call Device/FitImageGzip)
|
|
|
|
DEVICE_TITLE := ZYBO Development Board
|
|
|
|
DEVICE_DTS := zynq-zybo
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += digilent_zynq-zybo
|
2016-07-28 12:19:16 +00:00
|
|
|
|
2018-05-13 18:05:38 +00:00
|
|
|
define Device/xlnx_zynq-zc702
|
|
|
|
$(call Device/FitImageGzip)
|
|
|
|
DEVICE_TITLE := ZC702 Development Board
|
|
|
|
DEVICE_DTS := zynq-zc702
|
2016-03-23 12:52:38 +00:00
|
|
|
endef
|
2018-05-13 18:05:38 +00:00
|
|
|
TARGET_DEVICES += xlnx_zynq-zc702
|
2016-03-23 12:52:38 +00:00
|
|
|
|
2018-05-13 18:05:38 +00:00
|
|
|
define Device/xlnx_zynq-zed
|
|
|
|
$(call Device/FitImageGzip)
|
|
|
|
DEVICE_TITLE := Zed Development Board
|
|
|
|
DEVICE_DTS := zynq-zed
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += xlnx_zynq-zed
|
2016-02-12 08:29:24 +00:00
|
|
|
|
|
|
|
$(eval $(call BuildImage))
|