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
10 PKG_VERSION
:=2016.09.01
13 PKG_HASH
:=95728e89dd476d17428f94080752ab48884be477b6a678941582aeef618b70bb
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
36 NAME
:=RaidSonic ICY BOX NAS6210 and NAS6220
39 define U-Boot
/ib62x0_second_stage
40 NAME
:=RaidSonic ICY BOX NAS6210 and NAS6220
(second stage
)
43 define U-Boot
/iconnect
44 NAME
:=Iomega iConnect Wireless
47 define U-Boot
/iconnect_second_stage
48 NAME
:=Iomega iConnect Wireless
(second stage
)
55 define U-Boot
/pogo_e02
56 NAME
:=Cloud Engines Pogoplug E02
59 define U-Boot
/pogo_e02_second_stage
60 NAME
:=Cloud Engines Pogoplug E02
(second stage
)
63 define U-Boot
/sheevaplug
68 dockstar dockstar_second_stage \
70 ib62x0 ib62x0_second_stage \
71 iconnect iconnect_second_stage \
73 pogo_e02 pogo_e02_second_stage \
76 define Build
/Configure
77 $(if
$(findstring _second_stage
,$(BUILD_VARIANT
)),
79 $(PKG_BUILD_DIR
)/configs
/$(subst _second_stage
,,$(BUILD_VARIANT
))_defconfig \
80 $(PKG_BUILD_DIR
)/configs
/$(BUILD_VARIANT
)_defconfig
81 echo CONFIG_SECOND_STAGE
=y
>> $(PKG_BUILD_DIR
)/configs
/$(BUILD_VARIANT
)_defconfig
83 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
84 $(BUILD_VARIANT
)_config V
=1
88 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
90 CROSS_COMPILE
=$(TARGET_CROSS
)
91 mkimage
-A
$(ARCH
) -O linux
-T kernel
-C none \
92 -a
0x600000 -e
0x600000 \
94 -d
$(PKG_BUILD_DIR
)/u-boot.bin
$(PKG_BUILD_DIR
)/u-boot.img
97 define Package
/u-boot
/install
99 $(PKG_BUILD_DIR
)/u-boot.bin \
100 $(PKG_BUILD_DIR
)/u-boot.kwb \
101 $(PKG_BUILD_DIR
)/u-boot.img \
105 define Build
/InstallDev
106 $(INSTALL_DIR
) $(STAGING_DIR_HOST
)/bin
107 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/tools
/kwboot
$(STAGING_DIR_HOST
)/bin
/
110 $(eval
$(call BuildPackage
/U-Boot
))