2 # Copyright (C) 2010-2013 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
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
17 http
://mirror2.openwrt.org
/sources \
18 ftp
://ftp.denx.de
/pub
/u-boot
19 PKG_MD5SUM
:=a076a044b64371edc52f7e562b13f6b2
24 include $(INCLUDE_DIR
)/package.mk
33 TITLE
:=U-Boot for Seagate DockStar
36 define uboot
/dockstar_second_stage
37 TITLE
:=second stage U-Boot for Seagate DockStar
40 define uboot
/goflexhome
41 TITLE
:=U-Boot for the Seagate GoFlexHome
/GoFlexNet
45 TITLE
:=U-Boot for RaidSonic ICY BOX NAS6210 and NAS6220
48 define uboot
/ib62x0_second_stage
49 TITLE
:=second stage U-Boot for RaidSonic ICY BOX NAS6210 and NAS6220
53 TITLE
:=U-Boot for Iomega iConnect Wireless
56 define uboot
/iconnect_second_stage
57 TITLE
:=second stage U-Boot for Iomega iConnect Wireless
61 TITLE
:=U-Boot for Cloud Engines Pogoplug E02
64 define uboot
/sheevaplug
65 TITLE
:=U-Boot for SheevaPlug
69 dockstar dockstar_second_stage \
71 ib62x0 ib62x0_second_stage \
72 iconnect iconnect_second_stage \
76 define Package
/uboot
/template
77 define Package
/uboot-kirkwood-
$(1)
79 CATEGORY
:=Boot Loaders
80 DEPENDS
:=@TARGET_kirkwood
82 URL
:=http
://www.denx.de
/wiki
/U-Boot
87 define BuildUBootPackage
88 $(eval
$(uboot
/Default
))
90 $(call Package
/uboot
/template
,$(1),$(TITLE
))
94 $(eval
$(call uboot
/$(BUILD_VARIANT
)))
95 UBOOT_CONFIG
:=$(if
$(CONFIG
),$(CONFIG
),$(BUILD_VARIANT
))
96 UBOOT_IMAGE
:=$(if
$(IMAGE
),$(IMAGE
),openwrt-
$(BOARD
)-$(BUILD_VARIANT
)-u-boot.bin
)
99 define Build
/Configure
100 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
101 $(UBOOT_CONFIG
)_config
105 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
107 CROSS_COMPILE
=$(TARGET_CROSS
)
108 mkimage
-A
$(ARCH
) -O linux
-T kernel
-C none \
109 -a
0x600000 -e
0x600000 \
110 -n
'OpenWrt Das U-Boot uImage' \
111 -d
$(PKG_BUILD_DIR
)/u-boot.bin
$(PKG_BUILD_DIR
)/u-boot.img
114 define Package
/uboot
/install/default
115 $(INSTALL_DIR
) $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)
116 $(CP
) $(PKG_BUILD_DIR
)/u-boot.bin \
117 $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)/openwrt-
$(BOARD
)-$(1)-u-boot.bin
118 $(CP
) $(PKG_BUILD_DIR
)/u-boot.kwb \
119 $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)/openwrt-
$(BOARD
)-$(1)-u-boot.kwb
120 $(CP
) $(PKG_BUILD_DIR
)/u-boot.img \
121 $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)/openwrt-
$(BOARD
)-$(1)-u-boot.img
122 $(INSTALL_DIR
) $(BIN_DIR
)/u-boot-kwboot
/
123 $(CP
) $(PKG_BUILD_DIR
)/tools
/kwboot \
124 $(BIN_DIR
)/u-boot-kwboot
/
127 define Package
/uboot
/install/template
128 define Package
/uboot-kirkwood-
$(1)/install
129 $(call Package
/uboot
/install/default
,$(2))
133 $(foreach u
,$(UBOOTS
), \
134 $(eval
$(call Package
/uboot
/install/template
,$(u
),$(u
))) \
137 $(foreach u
,$(UBOOTS
), \
138 $(eval
$(call BuildUBootPackage
,$(u
))) \
139 $(eval
$(call BuildPackage
,uboot-kirkwood-
$(u
))) \