aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/zynq/image/Makefile
blob: aa98f4bf3b808078848e62e0f846906935635ef2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#
# 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

#################################################
# Default and templates
#################################################

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
endef

define Device/FitImageGzip
	KERNEL_SUFFIX := -fit-uImage.itb
	KERNEL = kernel-bin | gzip | fit gzip $$(DTS_DIR)/$$(DEVICE_DTS).dtb
	KERNEL_NAME := Image
endef

#################################################
# Devices
#################################################

define Device/digilent_zynq-zybo
	$(call Device/FitImageGzip)
	DEVICE_TITLE := ZYBO Development Board
	DEVICE_DTS := zynq-zybo
endef
TARGET_DEVICES += digilent_zynq-zybo

define Device/digilent_zynq-zybo-z7
	$(call Device/FitImageGzip)
	DEVICE_TITLE := Digilent Zybo Z7 board
	DEVICE_DTS := zynq-zybo-z7
endef
TARGET_DEVICES += digilent_zynq-zybo-z7

define Device/xlnx_zynq-zc702
	$(call Device/FitImageGzip)
	DEVICE_TITLE := ZC702 Development Board
	DEVICE_DTS := zynq-zc702
endef
TARGET_DEVICES += xlnx_zynq-zc702

define Device/xlnx_zynq-zed
	$(call Device/FitImageGzip)
	DEVICE_TITLE := Zed Development Board
	DEVICE_DTS := zynq-zed
endef
TARGET_DEVICES += xlnx_zynq-zed

$(eval $(call BuildImage))