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
:=36d4bad687edcafa396fee607e505d4e
21 PKG_LICENSE
:=GPL-2.0 GPL-2.0
+
22 PKG_LICENSE_FILES
:=Licenses
/README
24 include $(INCLUDE_DIR
)/package.mk
32 define uboot
/mx23_olinuxino
33 TITLE
:=U-Boot
2014.07 for the Olinuxino i.MX233
39 define Package
/uboot
/template
40 define Package
/uboot-mxs-
$(1)
42 CATEGORY
:=Boot Loaders
45 URL
:=http
://www.denx.de
/wiki
/U-Boot
47 MAINTAINER
:=Zoltan HERPAI
<wigyori@uid0.hu
>
51 define BuildUBootPackage
52 $(eval
$(uboot
/Default
))
54 $(call Package
/uboot
/template
,$(1),$(TITLE
))
58 $(eval
$(call uboot
/$(BUILD_VARIANT
)))
59 UBOOT_CONFIG
:=$(if
$(CONFIG
),$(CONFIG
),$(BUILD_VARIANT
))
60 UBOOT_IMAGE
:=$(if
$(IMAGE
),$(IMAGE
),openwrt-
$(BOARD
)-$(BUILD_VARIANT
)-u-boot.bin
)
63 define Build
/Configure
64 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
65 $(UBOOT_CONFIG
)_config
69 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
70 CROSS_COMPILE
=$(TARGET_CROSS
) u-boot.sb
74 define Package
/uboot
/install/default
75 $(INSTALL_DIR
) $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)
76 dd if
=$(PKG_BUILD_DIR
)/u-boot.sb of
=$(BIN_DIR
)/uboot-
$(BOARD
)-$(1).sb bs
=512 seek
=4
79 define Package
/uboot
/install/template
80 define Package
/uboot-mxs-
$(1)/install
81 $(call Package
/uboot
/install/default
,$(2))
85 $(foreach u
,$(UBOOTS
), \
86 $(eval
$(call Package
/uboot
/install/template
,$(u
),$(u
))) \
89 $(foreach u
,$(UBOOTS
), \
90 $(eval
$(call BuildUBootPackage
,$(u
))) \
91 $(eval
$(call BuildPackage
,uboot-mxs-
$(u
))) \