openssl: update to 3.0.14
[openwrt/openwrt.git] / package / boot / uboot-kirkwood / Makefile
1 #
2 # Copyright (C) 2010-2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_VERSION:=2020.04
11 PKG_RELEASE:=10
12
13 PKG_HASH:=fe732aaf037d9cc3c0909bad8362af366ae964bbdac6913a34081ff4ad565372
14
15 include $(INCLUDE_DIR)/u-boot.mk
16 include $(INCLUDE_DIR)/package.mk
17
18 define U-Boot/Default
19 BUILD_TARGET:=kirkwood
20 BUILD_SUBTARGET:=generic
21 endef
22
23 define U-Boot/dns320l
24 NAME:=D-Link DNS-320L
25 BUILD_DEVICES:=dlink_dns320l
26 endef
27
28 define U-Boot/dockstar
29 NAME:=Seagate DockStar
30 BUILD_DEVICES:=seagate_dockstar
31 endef
32
33 define U-Boot/dockstar_second_stage
34 NAME:=Seagate DockStar (second stage)
35 BUILD_DEVICES:=seagate_dockstar
36 endef
37
38 define U-Boot/goflexhome
39 NAME:=the Seagate GoFlexHome/GoFlexNet
40 BUILD_DEVICES:=seagate_goflexhome seagate_goflexnet
41 endef
42
43 define U-Boot/ib62x0
44 NAME:=RaidSonic ICY BOX NAS6210 and NAS6220
45 BUILD_DEVICES:=raidsonic_ib-nas62x0
46 endef
47
48 define U-Boot/ib62x0_second_stage
49 NAME:=RaidSonic ICY BOX NAS6210 and NAS6220 (second stage)
50 BUILD_DEVICES:=raidsonic_ib-nas62x0
51 endef
52
53 define U-Boot/iconnect
54 NAME:=Iomega iConnect Wireless
55 BUILD_DEVICES:=iom_iconnect-1.1
56 endef
57
58 define U-Boot/iconnect_second_stage
59 NAME:=Iomega iConnect Wireless (second stage)
60 BUILD_DEVICES:=iom_iconnect-1.1
61 endef
62
63 define U-Boot/l-50
64 NAME:=CheckPoint L-50
65 BUILD_DEVICES:=checkpoint_l-50
66 endef
67
68 define U-Boot/nas220
69 NAME:=Seagate Blackarmor NAS220
70 BUILD_DEVICES:=seagate_blackarmor-nas220
71 endef
72
73 define U-Boot/netgear_ms2110
74 NAME:=Netgear Stora (MS2000/2110)
75 BUILD_DEVICES:=netgear_stora
76 endef
77
78 define U-Boot/nsa310
79 NAME:=Zyxel NSA310
80 BUILD_DEVICES:=zyxel_nsa310b
81 endef
82
83 define U-Boot/nsa310s
84 NAME:=Zyxel NSA310S
85 BUILD_DEVICES:=zyxel_nsa310s
86 endef
87
88 define U-Boot/nsa325
89 NAME:=Zyxel NSA325v1 and v2
90 BUILD_DEVICES:=zyxel_nsa325
91 endef
92
93 define U-Boot/pogo_e02
94 NAME:=Cloud Engines Pogoplug E02
95 BUILD_DEVICES:=cloudengines_pogoe02
96 endef
97
98 define U-Boot/pogo_e02_second_stage
99 NAME:=Cloud Engines Pogoplug E02 (second stage)
100 BUILD_DEVICES:=cloudengines_pogoe02
101 endef
102
103 define U-Boot/pogoplugv4
104 NAME:=Cloud Engines Pogoplug V4
105 BUILD_DEVICES:=cloudengines_pogoplugv4
106 endef
107
108 define U-Boot/sheevaplug
109 NAME:=Globalscale SheevaPlug
110 BUILD_DEVICES:=globalscale_sheevaplug
111 endef
112
113 UBOOT_TARGETS := \
114 dns320l \
115 dockstar dockstar_second_stage \
116 goflexhome \
117 ib62x0 ib62x0_second_stage \
118 iconnect iconnect_second_stage \
119 l-50 \
120 nas220 \
121 netgear_ms2110 \
122 nsa310 \
123 nsa310s \
124 nsa325 \
125 pogo_e02 pogo_e02_second_stage \
126 pogoplugv4 \
127 sheevaplug
128
129 define Build/Configure
130 $(if $(findstring _second_stage,$(BUILD_VARIANT)),
131 $(CP) \
132 $(PKG_BUILD_DIR)/configs/$(subst _second_stage,,$(BUILD_VARIANT))_defconfig \
133 $(PKG_BUILD_DIR)/configs/$(BUILD_VARIANT)_defconfig
134 echo CONFIG_SECOND_STAGE=y >> $(PKG_BUILD_DIR)/configs/$(BUILD_VARIANT)_defconfig
135 )
136 +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
137 $(BUILD_VARIANT)_config V=1
138 endef
139
140 define Build/Compile
141 +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
142 u-boot.kwb \
143 CROSS_COMPILE=$(TARGET_CROSS)
144 mkimage -A $(ARCH) -O linux -T kernel -C none \
145 -a 0x600000 -e 0x600000 \
146 -n 'U-Boot uImage' \
147 -d $(PKG_BUILD_DIR)/u-boot.bin $(PKG_BUILD_DIR)/u-boot.img
148 endef
149
150 define Package/u-boot/install
151 $(CP) \
152 $(PKG_BUILD_DIR)/u-boot.bin \
153 $(PKG_BUILD_DIR)/u-boot.kwb \
154 $(PKG_BUILD_DIR)/u-boot.img \
155 $(1)/
156 endef
157
158 define Build/InstallDev
159 $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
160 $(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/kwboot $(STAGING_DIR_HOST)/bin/
161 endef
162
163 $(eval $(call BuildPackage/U-Boot))