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
20 BUILD_SUBTARGET
:=generic
23 define U-Boot
/dockstar
24 NAME
:=Seagate DockStar
25 BUILD_DEVICES
:=seagate_dockstar
28 define U-Boot
/dockstar_second_stage
29 NAME
:=Seagate DockStar
(second stage
)
30 BUILD_DEVICES
:=seagate_dockstar
33 define U-Boot
/goflexhome
34 NAME
:=the Seagate GoFlexHome
/GoFlexNet
35 BUILD_DEVICES
:=seagate_goflexhome seagate_goflexnet
39 NAME
:=RaidSonic ICY BOX NAS6210 and NAS6220
40 BUILD_DEVICES
:=raidsonic_ib-nas62x0
43 define U-Boot
/ib62x0_second_stage
44 NAME
:=RaidSonic ICY BOX NAS6210 and NAS6220
(second stage
)
45 BUILD_DEVICES
:=raidsonic_ib-nas62x0
48 define U-Boot
/iconnect
49 NAME
:=Iomega iConnect Wireless
50 BUILD_DEVICES
:=iom_iconnect-1.1
53 define U-Boot
/iconnect_second_stage
54 NAME
:=Iomega iConnect Wireless
(second stage
)
55 BUILD_DEVICES
:=iom_iconnect-1.1
60 BUILD_DEVICES
:=checkpoint_l-50
64 NAME
:=Seagate Blackarmor NAS220
65 BUILD_DEVICES
:=seagate_blackarmor-nas220
68 define U-Boot
/netgear_ms2110
69 NAME
:=Netgear Stora
(MS2000
/2110)
70 BUILD_DEVICES
:=netgear_stora
75 BUILD_DEVICES
:=zyxel_nsa310b
80 BUILD_DEVICES
:=zyxel_nsa310s
84 NAME
:=Zyxel NSA325v1 and v2
85 BUILD_DEVICES
:=zyxel_nsa325
88 define U-Boot
/pogo_e02
89 NAME
:=Cloud Engines Pogoplug E02
90 BUILD_DEVICES
:=cloudengines_pogoe02
93 define U-Boot
/pogo_e02_second_stage
94 NAME
:=Cloud Engines Pogoplug E02
(second stage
)
95 BUILD_DEVICES
:=cloudengines_pogoe02
98 define U-Boot
/pogoplugv4
99 NAME
:=Cloud Engines Pogoplug V4
100 BUILD_DEVICES
:=cloudengines_pogoplugv4
103 define U-Boot
/sheevaplug
104 NAME
:=Globalscale SheevaPlug
105 BUILD_DEVICES
:=globalscale_sheevaplug
109 dockstar dockstar_second_stage \
111 ib62x0 ib62x0_second_stage \
112 iconnect iconnect_second_stage \
119 pogo_e02 pogo_e02_second_stage \
123 define Build
/Configure
124 $(if
$(findstring _second_stage
,$(BUILD_VARIANT
)),
126 $(PKG_BUILD_DIR
)/configs
/$(subst _second_stage
,,$(BUILD_VARIANT
))_defconfig \
127 $(PKG_BUILD_DIR
)/configs
/$(BUILD_VARIANT
)_defconfig
128 echo CONFIG_SECOND_STAGE
=y
>> $(PKG_BUILD_DIR
)/configs
/$(BUILD_VARIANT
)_defconfig
130 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
131 $(BUILD_VARIANT
)_config V
=1
135 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
137 CROSS_COMPILE
=$(TARGET_CROSS
)
138 mkimage
-A
$(ARCH
) -O linux
-T kernel
-C none \
139 -a
0x600000 -e
0x600000 \
141 -d
$(PKG_BUILD_DIR
)/u-boot.bin
$(PKG_BUILD_DIR
)/u-boot.img
144 define Package
/u-boot
/install
146 $(PKG_BUILD_DIR
)/u-boot.bin \
147 $(PKG_BUILD_DIR
)/u-boot.kwb \
148 $(PKG_BUILD_DIR
)/u-boot.img \
152 define Build
/InstallDev
153 $(INSTALL_DIR
) $(STAGING_DIR_HOST
)/bin
154 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/tools
/kwboot
$(STAGING_DIR_HOST
)/bin
/
157 $(eval
$(call BuildPackage
/U-Boot
))