2 # Copyright (C) 2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
14 http
://mirror2.openwrt.org
/sources \
15 ftp
://ftp.denx.de
/pub
/u-boot
17 PKG_MD5SUM
:=973c1d896be751321cc3aafa564f64b2
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_LICENSE
:=GPL-2.0 GPL-2.0
+
22 PKG_LICENSE_FILES
:=Licenses
/README
24 include $(INCLUDE_DIR
)/package.mk
33 TITLE
:=U-Boot
$(PKG_VERSION
) for Xilinx ZC702 Dev Board
37 TITLE
:=U-Boot
$(PKG_VERSION
) for Xilinx ZC706 Dev Board
41 TITLE
:=U-Boot
$(PKG_VERSION
) for Avnet Digilent ZedBoard Dev Board
48 define Package
/uboot
/template
49 define Package
/uboot-zynq-
$(1)
51 CATEGORY
:=Boot Loaders
54 URL
:=http
://www.denx.de
/wiki
/U-Boot
56 MAINTAINER
:=Jason Wu
<jason.wu.misc@gmail.com
>
60 define BuildUBootPackage
61 $(eval
$(uboot
/Default
))
63 $(call Package
/uboot
/template
,$(1),$(TITLE
))
67 $(eval
$(call uboot
/$(BUILD_VARIANT
)))
68 UBOOT_CONFIG
:=$(if
$(CONFIG
),$(CONFIG
),$(BUILD_VARIANT
))
69 UBOOT_IMAGE
:=$(if
$(IMAGE
),$(IMAGE
),openwrt-
$(BOARD
)-$(BUILD_VARIANT
)-u-boot.bin
)
72 define Build
/Configure
73 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
74 $(BOARD
)_
$(UBOOT_CONFIG
)_config
78 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
79 CROSS_COMPILE
=$(TARGET_CROSS
)
82 define Package
/uboot
/install/default
83 $(INSTALL_DIR
) $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)
85 $(CP
) $(PKG_BUILD_DIR
)/u-boot \
86 $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)/u-boot.elf
88 $(CP
) $(PKG_BUILD_DIR
)/u-boot-dtb.bin \
89 $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)/u-boot-dtb.bin
91 $(CP
) $(PKG_BUILD_DIR
)/u-boot.dtb \
92 $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)/u-boot.dtb
94 $(CP
) $(PKG_BUILD_DIR
)/u-boot-dtb.img \
95 $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)/u-boot-dtb.img
97 $(CP
) $(PKG_BUILD_DIR
)/spl
/boot.bin \
98 $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)/boot.bin
100 $(CP
) $(PKG_BUILD_DIR
)/spl
/u-boot-spl \
101 $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)/u-boot-spl
103 $(CP
) $(PKG_BUILD_DIR
)/spl
/u-boot-spl-dtb.bin \
104 $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)/u-boot-spl-dtb.bin
107 define Package
/uboot
/install/template
108 define Package
/uboot-zynq-
$(1)/install
109 $(call Package
/uboot
/install/default
,$(2))
113 $(foreach u
,$(UBOOTS
), \
114 $(eval
$(call Package
/uboot
/install/template
,$(u
),$(u
))) \
117 $(foreach u
,$(UBOOTS
), \
118 $(eval
$(call BuildUBootPackage
,$(u
))) \
119 $(eval
$(call BuildPackage
,uboot-zynq-
$(u
))) \