2 # Copyright (C) 2010-2014 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
13 PKG_HASH
:=fe732aaf037d9cc3c0909bad8362af366ae964bbdac6913a34081ff4ad565372
15 include $(INCLUDE_DIR
)/u-boot.mk
16 include $(INCLUDE_DIR
)/package.mk
19 BUILD_TARGET
:=kirkwood
22 define U-Boot
/dockstar
23 NAME
:=Seagate DockStar
24 BUILD_DEVICES
:=seagate_dockstar
27 define U-Boot
/dockstar_second_stage
28 NAME
:=Seagate DockStar
(second stage
)
29 BUILD_DEVICES
:=seagate_dockstar
32 define U-Boot
/goflexhome
33 NAME
:=the Seagate GoFlexHome
/GoFlexNet
34 BUILD_DEVICES
:=seagate_goflexhome seagate_goflexnet
38 NAME
:=RaidSonic ICY BOX NAS6210 and NAS6220
39 BUILD_DEVICES
:=raidsonic_ib-nas62x0
42 define U-Boot
/ib62x0_second_stage
43 NAME
:=RaidSonic ICY BOX NAS6210 and NAS6220
(second stage
)
44 BUILD_DEVICES
:=raidsonic_ib-nas62x0
47 define U-Boot
/iconnect
48 NAME
:=Iomega iConnect Wireless
49 BUILD_DEVICES
:=iom_iconnect-1.1
52 define U-Boot
/iconnect_second_stage
53 NAME
:=Iomega iConnect Wireless
(second stage
)
54 BUILD_DEVICES
:=iom_iconnect-1.1
57 define U-Boot
/netgear_ms2110
58 NAME
:=Netgear Stora
(MS2110
)
59 BUILD_DEVICES
:=netgear_stora
64 BUILD_DEVICES
:=zyxel_nsa310b
68 NAME
:=Zyxel NSA325v1 and v2
69 BUILD_DEVICES
:=zyxel_nsa325
72 define U-Boot
/pogo_e02
73 NAME
:=Cloud Engines Pogoplug E02
74 BUILD_DEVICES
:=cloudengines_pogoe02
77 define U-Boot
/pogo_e02_second_stage
78 NAME
:=Cloud Engines Pogoplug E02
(second stage
)
79 BUILD_DEVICES
:=cloudengines_pogoe02
82 define U-Boot
/pogoplugv4
83 NAME
:=Cloud Engines Pogoplug V4
84 BUILD_DEVICES
:=cloudengines_pogoplugv4
88 dockstar dockstar_second_stage \
90 ib62x0 ib62x0_second_stage \
91 iconnect iconnect_second_stage \
95 pogo_e02 pogo_e02_second_stage \
98 define Build
/Configure
99 $(if
$(findstring _second_stage
,$(BUILD_VARIANT
)),
101 $(PKG_BUILD_DIR
)/configs
/$(subst _second_stage
,,$(BUILD_VARIANT
))_defconfig \
102 $(PKG_BUILD_DIR
)/configs
/$(BUILD_VARIANT
)_defconfig
103 echo CONFIG_SECOND_STAGE
=y
>> $(PKG_BUILD_DIR
)/configs
/$(BUILD_VARIANT
)_defconfig
105 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
106 $(BUILD_VARIANT
)_config V
=1
110 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
112 CROSS_COMPILE
=$(TARGET_CROSS
)
113 mkimage
-A
$(ARCH
) -O linux
-T kernel
-C none \
114 -a
0x600000 -e
0x600000 \
116 -d
$(PKG_BUILD_DIR
)/u-boot.bin
$(PKG_BUILD_DIR
)/u-boot.img
119 define Package
/u-boot
/install
121 $(PKG_BUILD_DIR
)/u-boot.bin \
122 $(PKG_BUILD_DIR
)/u-boot.kwb \
123 $(PKG_BUILD_DIR
)/u-boot.img \
127 define Build
/InstallDev
128 $(INSTALL_DIR
) $(STAGING_DIR_HOST
)/bin
129 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/tools
/kwboot
$(STAGING_DIR_HOST
)/bin
/
132 $(eval
$(call BuildPackage
/U-Boot
))