uboot-zynq: fix build on hosts lacking pkg-config
[openwrt/openwrt.git] / package / boot / uboot-zynq / 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
8 include $(TOPDIR)/rules.mk
9
10 PKG_VERSION:=2016.03
11
12 PKG_HASH:=e49337262ecac44dbdeac140f2c6ebd1eba345e0162b0464172e7f05583ed7bb
13
14 include $(INCLUDE_DIR)/kernel.mk
15 include $(INCLUDE_DIR)/u-boot.mk
16 include $(INCLUDE_DIR)/package.mk
17 include $(INCLUDE_DIR)/host-build.mk
18
19 define U-Boot/Default
20 BUILD_TARGET:=zynq
21 UBOOT_IMAGE:=u-boot u-boot-dtb.bin u-boot.dtb u-boot-dtb.img spl/boot.bin spl/u-boot-spl spl/u-boot-spl-dtb.bin
22 UBOOT_CONFIG:=zynq_$(1)
23 endef
24
25 define U-Boot/zc702
26 NAME:=Xilinx ZC702 Dev Board
27 endef
28
29 define U-Boot/zc706
30 NAME:=Xilinx ZC706 Dev Board
31 endef
32
33 define U-Boot/zed
34 NAME:=Avnet Digilent ZedBoard Dev Board
35 endef
36
37 define U-Boot/zybo
38 NAME:=Digilent Zybo Dev Board
39 endef
40
41 UBOOT_TARGETS := \
42 zc702 \
43 zed \
44 zybo
45
46 Build/Exports:=$(Host/Exports)
47
48 $(eval $(call BuildPackage/U-Boot))