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
:=b2d15f2cf5f72e706025cde73d67247c6da8cd35f7e10891eefe7d9095089744
15 include $(INCLUDE_DIR
)/u-boot.mk
16 include $(INCLUDE_DIR
)/package.mk
19 BUILD_TARGET
:=kirkwood
20 BUILD_DEVICES
:=$(patsubst %_second_stage
,%,$(1))
23 define U-Boot
/dockstar
24 NAME
:=Seagate DockStar
27 define U-Boot
/dockstar_second_stage
28 NAME
:=Seagate DockStar
(second stage
)
31 define U-Boot
/goflexhome
32 NAME
:=the Seagate GoFlexHome
/GoFlexNet
33 BUILD_DEVICES
+=goflexnet
37 NAME
:=RaidSonic ICY BOX NAS6210 and NAS6220
40 define U-Boot
/ib62x0_second_stage
41 NAME
:=RaidSonic ICY BOX NAS6210 and NAS6220
(second stage
)
44 define U-Boot
/iconnect
45 NAME
:=Iomega iConnect Wireless
48 define U-Boot
/iconnect_second_stage
49 NAME
:=Iomega iConnect Wireless
(second stage
)
54 BUILD_DEVICES
:=nsa310b
58 NAME
:=Zyxel NSA325v1 and v2
61 define U-Boot
/pogo_e02
62 NAME
:=Cloud Engines Pogoplug E02
65 define U-Boot
/pogo_e02_second_stage
66 NAME
:=Cloud Engines Pogoplug E02
(second stage
)
70 dockstar dockstar_second_stage \
72 ib62x0 ib62x0_second_stage \
73 iconnect iconnect_second_stage \
76 pogo_e02 pogo_e02_second_stage
78 define Build
/Configure
79 $(if
$(findstring _second_stage
,$(BUILD_VARIANT
)),
81 $(PKG_BUILD_DIR
)/configs
/$(subst _second_stage
,,$(BUILD_VARIANT
))_defconfig \
82 $(PKG_BUILD_DIR
)/configs
/$(BUILD_VARIANT
)_defconfig
83 echo CONFIG_SECOND_STAGE
=y
>> $(PKG_BUILD_DIR
)/configs
/$(BUILD_VARIANT
)_defconfig
85 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
86 $(BUILD_VARIANT
)_config V
=1
90 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
92 CROSS_COMPILE
=$(TARGET_CROSS
)
93 mkimage
-A
$(ARCH
) -O linux
-T kernel
-C none \
94 -a
0x600000 -e
0x600000 \
96 -d
$(PKG_BUILD_DIR
)/u-boot.bin
$(PKG_BUILD_DIR
)/u-boot.img
99 define Package
/u-boot
/install
101 $(PKG_BUILD_DIR
)/u-boot.bin \
102 $(PKG_BUILD_DIR
)/u-boot.kwb \
103 $(PKG_BUILD_DIR
)/u-boot.img \
107 define Build
/InstallDev
108 $(INSTALL_DIR
) $(STAGING_DIR_HOST
)/bin
109 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/tools
/kwboot
$(STAGING_DIR_HOST
)/bin
/
112 $(eval
$(call BuildPackage
/U-Boot
))