2 # Copyright (C) 2012-2013 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
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
17 http
://mirror2.openwrt.org
/sources \
18 ftp
://ftp.denx.de
/pub
/u-boot
19 PKG_MD5SUM
:=a076a044b64371edc52f7e562b13f6b2
22 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
24 include $(INCLUDE_DIR
)/package.mk
33 define uboot
/arv4519pw_ram
34 TITLE
:=U-Boot for Arcadyan arv4519pw
(RAM
)
36 DDR_SETTINGS
:=board
/arcadyan
/arv4519pw
/ddr_settings.h
39 define uboot
/arv4519pw_nor
40 TITLE
:=U-Boot for Arcadyan arv4519pw
(NOR
)
44 define uboot
/arv4519pw_brn
45 TITLE
:=U-Boot for Arcadyan arv4519pw
(BRN
)
49 define uboot
/arv7510pw_ram
50 TITLE
:=U-Boot for Arcadyan arv7510pw
(RAM
)
52 DDR_SETTINGS
:=board
/arcadyan
/arv7510pw
/ddr_settings.h
55 define uboot
/arv7510pw_nor
56 TITLE
:=U-Boot for Arcadyan arv7510pw
(NOR
)
60 define uboot
/arv7510pw_brn
61 TITLE
:=U-Boot for Arcadyan arv7510pw
(BRN
)
65 define uboot
/arv7518pw_ram
66 TITLE
:=U-Boot for Arcadyan arv7518pw
(RAM
)
68 DDR_SETTINGS
:=board
/arcadyan
/arv7518pw
/ddr_settings.h
71 define uboot
/arv7518pw_nor
72 TITLE
:=U-Boot for Arcadyan arv7518pw
(NOR
)
76 define uboot
/arv7518pw_brn
77 TITLE
:=U-Boot for Arcadyan arv7518pw
(BRN
)
81 define uboot
/arv752dpw_ram
82 TITLE
:=U-Boot for Arcadyan arv752dpw
(RAM
)
84 DDR_SETTINGS
:=board
/arcadyan
/arv752dpw
/ddr_settings.h
87 define uboot
/arv752dpw_nor
88 TITLE
:=U-Boot for Arcadyan arv752dpw
(NOR
)
92 define uboot
/arv752dpw_brn
93 TITLE
:=U-Boot for Arcadyan arv752dpw
(BRN
)
97 define uboot
/arv752dpw22_ram
98 TITLE
:=U-Boot for Arcadyan arv752dpw22
(RAM
)
100 DDR_SETTINGS
:=board
/arcadyan
/arv752dpw22
/ddr_settings.h
103 define uboot
/arv752dpw22_nor
104 TITLE
:=U-Boot for Arcadyan arv752dpw22
(NOR
)
108 define uboot
/arv752dpw22_brn
109 TITLE
:=U-Boot for Arcadyan arv752dpw22
(BRN
)
113 define uboot
/gigasx76x_ram
114 TITLE
:=U-Boot for Siemens Gigaset sx76x
(RAM
)
116 DDR_SETTINGS
:=board
/gigaset
/sx76x
/ddr_settings.h
119 define uboot
/gigasx76x_nor
120 TITLE
:=U-Boot for Siemens Gigaset sx76x
(NOR
)
124 define uboot
/acmp252_ram
125 TITLE
:=U-Boot for AudioCodes MP-252
(RAM
)
127 DDR_SETTINGS
:=board
/audiocodes
/acmp252
/ddr_settings.h
130 define uboot
/acmp252_nor
131 TITLE
:=U-Boot for AudioCodes MP-252
(NOR
)
135 define uboot
/easy50712_ram
136 TITLE
:=U-Boot for Lantiq EASY50712
(RAM
)
138 DDR_SETTINGS
:=board
/lantiq
/easy50712
/ddr_settings.h
141 define uboot
/easy50712_nor
142 TITLE
:=U-Boot for Lantiq EASY50712
(NOR
)
146 define uboot
/easy50712_norspl
147 TITLE
:=U-Boot for Lantiq EASY50712
(NOR SPL
)
149 IMAGE
:=u-boot.ltq.lzo.norspl
152 define uboot
/easy80920_ram
153 TITLE
:=U-Boot for Lantiq EASY80920
(RAM
)
155 DDR_SETTINGS
:=board
/lantiq
/easy80920
/ddr_settings.h
158 define uboot
/easy80920_nor
159 TITLE
:=U-Boot for Lantiq EASY80920
(NOR
)
163 define uboot
/easy80920_norspl
164 TITLE
:=U-Boot for Lantiq EASY80920
(NOR SPL
)
166 IMAGE
:=u-boot.ltq.lzo.norspl
169 define uboot
/easy80920_sfspl
170 TITLE
:=U-Boot for Lantiq EASY80920
(SPI SPL
)
172 IMAGE
:=u-boot.ltq.lzo.sfspl
177 arv4519pw_ram arv4519pw_nor arv4519pw_brn \
178 arv7510pw_ram arv7510pw_nor arv7510pw_brn \
179 arv7518pw_ram arv7518pw_nor arv7518pw_brn \
180 arv752dpw_ram arv752dpw_nor arv752dpw_brn \
181 arv752dpw22_ram arv752dpw22_nor arv752dpw22_brn \
182 gigasx76x_ram gigasx76x_nor \
183 acmp252_ram acmp252_nor \
184 easy50712_ram easy50712_nor easy50712_norspl \
185 easy80920_ram easy80920_nor easy80920_norspl easy80920_sfspl
187 define Package
/uboot
/template
188 define Package
/uboot-lantiq-
$(1)
190 CATEGORY
:=Boot Loaders
191 DEPENDS
:=@TARGET_lantiq_xway
193 URL
:=http
://www.denx.de
/wiki
/U-Boot
195 MAINTAINER
:=Luka Perkov
<luka@openwrt.org
>
199 define BuildUBootPackage
200 $(eval
$(uboot
/Default
))
201 $(eval
$(uboot
/$(1)))
202 $(call Package
/uboot
/template
,$(1),$(TITLE
))
205 define Build
/Configure
206 $(MAKE
) -C
$(PKG_BUILD_DIR
) $(BUILD_VARIANT
)_config
210 $(MAKE
) -C
$(PKG_BUILD_DIR
) CROSS_COMPILE
=$(TARGET_CROSS
)
213 define Package
/uboot
/install/default
215 $(PKG_BUILD_DIR
)/$(2) \
216 $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)/openwrt-
$(BOARD
)-$(1)-u-boot.img
219 define Package
/uboot
/install/uart
220 awk
-f
$(PKG_BUILD_DIR
)/tools
/lantiq_ram_init_uart.awk \
221 -v soc
=$(2) $(PKG_BUILD_DIR
)/$(3) \
222 > $(PKG_BUILD_DIR
)/ddr_settings
223 perl
$(PKG_BUILD_DIR
)/tools
/gct.pl \
224 $(PKG_BUILD_DIR
)/ddr_settings
$(PKG_BUILD_DIR
)/u-boot.srec \
225 $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)/openwrt-
$(BOARD
)-$(1)-u-boot.asc
228 define Package
/uboot
/install/template
229 define Package
/uboot-lantiq-
$(1)/install
230 $(call Package
/uboot
/install/default
,$(1),$(if
$(IMAGE
),$(IMAGE
),u-boot.bin
))
231 $(if
$(DDR_SETTINGS
), \
232 $(call Package
/uboot
/install/uart
,$(1),$(SOC
),$(DDR_SETTINGS
)) \
237 $(foreach u
,$(UBOOTS
), \
238 $(eval
$(call BuildUBootPackage
,$(u
))) \
239 $(eval
$(call Package
/uboot
/install/template
,$(u
))) \
240 $(eval
$(call BuildPackage
,uboot-lantiq-
$(u
))) \