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
16 PKG_SOURCE_URL
:=ftp
://ftp.denx.de
/pub
/u-boot
17 PKG_MD5SUM
:=8445162690052e6afd4b8f87af2bb557
19 include $(INCLUDE_DIR
)/package.mk
27 define uboot
/mx23_olinuxino
28 TITLE
:=U-Boot
2013.07 for the Olinuxino i.MX233
34 define Package
/uboot
/template
35 define Package
/uboot-imx23-
$(1)
37 CATEGORY
:=Boot Loaders
40 URL
:=http
://www.denx.de
/wiki
/U-Boot
42 MAINTAINER
:=Zoltan HERPAI
<wigyori@uid0.hu
>
46 define BuildUBootPackage
47 $(eval
$(uboot
/Default
))
49 $(call Package
/uboot
/template
,$(1),$(TITLE
))
53 $(eval
$(call uboot
/$(BUILD_VARIANT
)))
54 UBOOT_CONFIG
:=$(if
$(CONFIG
),$(CONFIG
),$(BUILD_VARIANT
))
55 UBOOT_IMAGE
:=$(if
$(IMAGE
),$(IMAGE
),openwrt-
$(BOARD
)-$(BUILD_VARIANT
)-u-boot.bin
)
58 define Build
/Configure
59 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
60 $(UBOOT_CONFIG
)_config
64 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
65 CROSS_COMPILE
=$(TARGET_CROSS
) u-boot.sb
69 define Package
/uboot
/install/default
70 $(INSTALL_DIR
) $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)
71 dd if
=$(PKG_BUILD_DIR
)/u-boot.sb of
=$(BIN_DIR
)/uboot-
$(BOARD
)-$(1).sb bs
=512 seek
=4
74 define Package
/uboot
/install/template
75 define Package
/uboot-imx23-
$(1)/install
76 $(call Package
/uboot
/install/default
,$(2))
80 $(foreach u
,$(UBOOTS
), \
81 $(eval
$(call Package
/uboot
/install/template
,$(u
),$(u
))) \
84 $(foreach u
,$(UBOOTS
), \
85 $(eval
$(call BuildUBootPackage
,$(u
))) \
86 $(eval
$(call BuildPackage
,uboot-imx23-
$(u
))) \