2 # Copyright (C) 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
:=8445162690052e6afd4b8f87af2bb557
21 include $(INCLUDE_DIR
)/package.mk
29 define uboot
/mx23_olinuxino
30 TITLE
:=U-Boot
2013.10 for the Olinuxino i.MX233
36 define Package
/uboot
/template
37 define Package
/uboot-mxs-
$(1)
39 CATEGORY
:=Boot Loaders
42 URL
:=http
://www.denx.de
/wiki
/U-Boot
44 MAINTAINER
:=Zoltan HERPAI
<wigyori@uid0.hu
>
48 define BuildUBootPackage
49 $(eval
$(uboot
/Default
))
51 $(call Package
/uboot
/template
,$(1),$(TITLE
))
55 $(eval
$(call uboot
/$(BUILD_VARIANT
)))
56 UBOOT_CONFIG
:=$(if
$(CONFIG
),$(CONFIG
),$(BUILD_VARIANT
))
57 UBOOT_IMAGE
:=$(if
$(IMAGE
),$(IMAGE
),openwrt-
$(BOARD
)-$(BUILD_VARIANT
)-u-boot.bin
)
60 define Build
/Configure
61 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
62 $(UBOOT_CONFIG
)_config
66 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
67 CROSS_COMPILE
=$(TARGET_CROSS
) u-boot.sb
71 define Package
/uboot
/install/default
72 $(INSTALL_DIR
) $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)
73 dd if
=$(PKG_BUILD_DIR
)/u-boot.sb of
=$(BIN_DIR
)/uboot-
$(BOARD
)-$(1).sb bs
=512 seek
=4
76 define Package
/uboot
/install/template
77 define Package
/uboot-mxs-
$(1)/install
78 $(call Package
/uboot
/install/default
,$(2))
82 $(foreach u
,$(UBOOTS
), \
83 $(eval
$(call Package
/uboot
/install/template
,$(u
),$(u
))) \
86 $(foreach u
,$(UBOOTS
), \
87 $(eval
$(call BuildUBootPackage
,$(u
))) \
88 $(eval
$(call BuildPackage
,uboot-mxs-
$(u
))) \