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
9 include $(INCLUDE_DIR
)/image.mk
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 http
://mirror2.openwrt.org
/sources \
16 ftp
://ftp.denx.de
/pub
/u-boot
18 PKG_MD5SUM
:=973c1d896be751321cc3aafa564f64b2
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
22 PKG_LICENSE
:=GPL-2.0 GPL-2.0
+
23 PKG_LICENSE_FILES
:=Licenses
/README
25 include $(INCLUDE_DIR
)/package.mk
34 TITLE
:=U-Boot
$(PKG_VERSION
) for Xilinx ZC702 Dev Board
38 TITLE
:=U-Boot
$(PKG_VERSION
) for Xilinx ZC706 Dev Board
42 TITLE
:=U-Boot
$(PKG_VERSION
) for Avnet Digilent ZedBoard Dev Board
46 TITLE
:=U-Boot
$(PKG_VERSION
) for Digilent Zybo Dev Board
54 define Package
/uboot
/template
55 define Package
/uboot-zynq-
$(1)
57 CATEGORY
:=Boot Loaders
60 URL
:=http
://www.denx.de
/wiki
/U-Boot
62 MAINTAINER
:=Jason Wu
<jason.wu.misc@gmail.com
>
66 define BuildUBootPackage
67 $(eval
$(uboot
/Default
))
69 $(call Package
/uboot
/template
,$(1),$(TITLE
))
73 $(eval
$(call uboot
/$(BUILD_VARIANT
)))
74 UBOOT_CONFIG
:=$(if
$(CONFIG
),$(CONFIG
),$(BUILD_VARIANT
))
75 UBOOT_IMAGE
:=$(if
$(IMAGE
),$(IMAGE
),openwrt-
$(BOARD
)-$(BUILD_VARIANT
)-u-boot.bin
)
78 define Build
/Configure
79 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
80 $(BOARD
)_
$(UBOOT_CONFIG
)_config
84 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
85 CROSS_COMPILE
=$(TARGET_CROSS
) DTC
=$(LINUX_DIR
)/scripts
/dtc
/dtc
88 define Package
/uboot
/install/default
89 $(INSTALL_DIR
) $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)
91 $(CP
) $(PKG_BUILD_DIR
)/u-boot \
92 $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)/u-boot.elf
94 $(CP
) $(PKG_BUILD_DIR
)/u-boot-dtb.bin \
95 $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)/u-boot-dtb.bin
97 $(CP
) $(PKG_BUILD_DIR
)/u-boot.dtb \
98 $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)/u-boot.dtb
100 $(CP
) $(PKG_BUILD_DIR
)/u-boot-dtb.img \
101 $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)/u-boot-dtb.img
103 $(CP
) $(PKG_BUILD_DIR
)/spl
/boot.bin \
104 $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)/boot.bin
106 $(CP
) $(PKG_BUILD_DIR
)/spl
/u-boot-spl \
107 $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)/u-boot-spl
109 $(CP
) $(PKG_BUILD_DIR
)/spl
/u-boot-spl-dtb.bin \
110 $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)/u-boot-spl-dtb.bin
113 define Package
/uboot
/install/template
114 define Package
/uboot-zynq-
$(1)/install
115 $(call Package
/uboot
/install/default
,$(2))
119 $(foreach u
,$(UBOOTS
), \
120 $(eval
$(call Package
/uboot
/install/template
,$(u
),$(u
))) \
123 $(foreach u
,$(UBOOTS
), \
124 $(eval
$(call BuildUBootPackage
,$(u
))) \
125 $(eval
$(call BuildPackage
,uboot-zynq-
$(u
))) \