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
:=e58a8a7f78972248190d83de0dc362ce
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
/arv7518pw_ram
45 TITLE
:=U-Boot for Arcadyan arv7518pw
(RAM
)
47 DDR_SETTINGS
:=board
/arcadyan
/arv7518pw
/ddr_settings.h
50 define uboot
/arv7518pw_nor
51 TITLE
:=U-Boot for Arcadyan arv7518pw
(NOR
)
55 define uboot
/gigasx76x_ram
56 TITLE
:=U-Boot for Siemens Gigaset sx76x
(RAM
)
58 DDR_SETTINGS
:=board
/gigaset
/sx76x
/ddr_settings.h
61 define uboot
/gigasx76x_nor
62 TITLE
:=U-Boot for Siemens Gigaset sx76x
(NOR
)
67 arv4519pw_ram arv4519pw_nor \
68 arv7518pw_ram arv7518pw_nor \
69 gigasx76x_ram gigasx76x_nor
71 define Package
/uboot
/template
72 define Package
/uboot-lantiq-
$(1)
74 CATEGORY
:=Boot Loaders
75 DEPENDS
:=@TARGET_lantiq_xway
77 URL
:=http
://www.denx.de
/wiki
/U-Boot
79 MAINTAINER
:=Luka Perkov
<luka@openwrt.org
>
83 define BuildUBootPackage
84 $(eval
$(uboot
/Default
))
86 $(call Package
/uboot
/template
,$(1),$(TITLE
))
89 define Build
/Configure
90 $(MAKE
) -C
$(PKG_BUILD_DIR
) $(BUILD_VARIANT
)_config
94 $(MAKE
) -C
$(PKG_BUILD_DIR
) CROSS_COMPILE
=$(TARGET_CROSS
)
97 define Package
/uboot
/install/default
99 $(PKG_BUILD_DIR
)/$(2) \
100 $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)/openwrt-
$(BOARD
)-$(1)-u-boot.img
103 define Package
/uboot
/install/uart
104 awk
-f
$(PKG_BUILD_DIR
)/tools
/lantiq_ram_init_uart.awk \
105 -v soc
=$(2) $(PKG_BUILD_DIR
)/$(3) \
106 > $(PKG_BUILD_DIR
)/ddr_settings
107 perl
$(PKG_BUILD_DIR
)/tools
/gct.pl \
108 $(PKG_BUILD_DIR
)/ddr_settings
$(PKG_BUILD_DIR
)/u-boot.srec \
109 $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)/openwrt-
$(BOARD
)-$(1)-u-boot.asc
112 define Package
/uboot
/install/template
113 define Package
/uboot-lantiq-
$(1)/install
114 $(call Package
/uboot
/install/default
,$(1),$(if
$(IMAGE
),$(IMAGE
),u-boot.bin
))
115 $(if
$(DDR_SETTINGS
), \
116 $(call Package
/uboot
/install/uart
,$(1),$(SOC
),$(DDR_SETTINGS
)) \
121 $(foreach u
,$(UBOOTS
), \
122 $(eval
$(call BuildUBootPackage
,$(u
))) \
123 $(eval
$(call Package
/uboot
/install/template
,$(u
))) \
124 $(eval
$(call BuildPackage
,uboot-lantiq-
$(u
))) \