2 # Copyright (C) 2010-2012 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
16 PKG_SOURCE_URL
:=ftp
://ftp.denx.de
/pub
/u-boot
17 PKG_MD5SUM
:=8655f63b1e5c4647295ac9ce44660be3
20 include $(INCLUDE_DIR
)/package.mk
28 define uboot
/sheevaplug
29 TITLE
:=U-Boot for the SheevaPlug
33 TITLE
:=U-Boot for the Seagate DockStar
37 TITLE
:=U-Boot for the Iomega iConnect Wireless
41 TITLE
:=U-Boot for the RaidSonic ICY BOX NAS6210 and NAS6220
44 UBOOTS
:=sheevaplug dockstar iconnect ib62x0
46 define Package
/uboot
/template
47 define Package
/uboot-kirkwood-
$(1)
49 CATEGORY
:=Boot Loaders
50 DEPENDS
:=@TARGET_kirkwood
52 URL
:=http
://www.denx.de
/wiki
/U-Boot
57 define BuildUBootPackage
58 $(eval
$(uboot
/Default
))
60 $(call Package
/uboot
/template
,$(1),$(TITLE
))
64 $(eval
$(call uboot
/$(BUILD_VARIANT
)))
65 UBOOT_CONFIG
:=$(if
$(CONFIG
),$(CONFIG
),$(BUILD_VARIANT
))
66 UBOOT_IMAGE
:=$(if
$(IMAGE
),$(IMAGE
),openwrt-
$(BOARD
)-$(BUILD_VARIANT
)-u-boot.bin
)
69 define Build
/Configure
70 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
71 $(UBOOT_CONFIG
)_config
75 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
77 CROSS_COMPILE
=$(TARGET_CROSS
)
80 define Package
/uboot
/install/default
81 $(INSTALL_DIR
) $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)
82 $(CP
) $(PKG_BUILD_DIR
)/u-boot.bin \
83 $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)/openwrt-
$(BOARD
)-$(1)-u-boot.bin
84 $(CP
) $(PKG_BUILD_DIR
)/u-boot.kwb \
85 $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)/openwrt-
$(BOARD
)-$(1)-u-boot.kwb
86 $(INSTALL_DIR
) $(BIN_DIR
)/u-boot-kwboot
/
87 $(CP
) $(PKG_BUILD_DIR
)/tools
/kwboot \
88 $(BIN_DIR
)/u-boot-kwboot
/
91 define Package
/uboot
/install/template
92 define Package
/uboot-kirkwood-
$(1)/install
93 $(call Package
/uboot
/install/default
,$(2))
97 $(foreach u
,$(UBOOTS
), \
98 $(eval
$(call Package
/uboot
/install/template
,$(u
),$(u
))) \
101 $(foreach u
,$(UBOOTS
), \
102 $(eval
$(call BuildUBootPackage
,$(u
))) \
103 $(eval
$(call BuildPackage
,uboot-kirkwood-
$(u
))) \