ath79: ag71xx: Split gmac config into separated file and add support for ar934x/qca955x.
[oweals/openwrt.git] / target / linux / zynq / image / Makefile
1 #
2 # Copyright (C) 2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8 include $(INCLUDE_DIR)/image.mk
9
10 #################################################
11 # Default and templates
12 #################################################
13
14 define Device/Default
15         PROFILES := Default
16         KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts)
17         KERNEL_INITRAMFS_PREFIX := $$(IMG_PREFIX)-$(1)-initramfs
18         KERNEL_PREFIX := $$(IMAGE_PREFIX)
19         KERNEL_LOADADDR := 0x8000
20 endef
21
22 define Device/FitImageGzip
23         KERNEL_SUFFIX := -fit-uImage.itb
24         KERNEL = kernel-bin | gzip | fit gzip $$(DTS_DIR)/$$(DEVICE_DTS).dtb
25         KERNEL_NAME := Image
26 endef
27
28 #################################################
29 # Devices
30 #################################################
31
32 define Device/digilent_zynq-zybo
33         $(call Device/FitImageGzip)
34         DEVICE_TITLE := ZYBO Development Board
35         DEVICE_DTS := zynq-zybo
36 endef
37 TARGET_DEVICES += digilent_zynq-zybo
38
39 define Device/xlnx_zynq-zc702
40         $(call Device/FitImageGzip)
41         DEVICE_TITLE := ZC702 Development Board
42         DEVICE_DTS := zynq-zc702
43 endef
44 TARGET_DEVICES += xlnx_zynq-zc702
45
46 define Device/xlnx_zynq-zed
47         $(call Device/FitImageGzip)
48         DEVICE_TITLE := Zed Development Board
49         DEVICE_DTS := zynq-zed
50 endef
51 TARGET_DEVICES += xlnx_zynq-zed
52
53 $(eval $(call BuildImage))