2 # Copyright (C) 2013-2014 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
:=6d2116d1385a66e9a59742caa9d62a54
23 include $(INCLUDE_DIR
)/package.mk
31 define uboot
/mx6qsabresd
32 TITLE
:=U-Boot for SABRE i.MX6Quad board
35 define uboot
/nitrogen6dl
36 TITLE
:=U-Boot for Nitrogen6x i.MX6Dual-Lite
1GB board
39 define uboot
/nitrogen6dl2g
40 TITLE
:=U-Boot for Nitrogen6x i.MX6Dual-Lite
2GB board
43 define uboot
/nitrogen6q
44 TITLE
:=U-Boot for Nitrogen6x
/SABRE Lite
(MX6Q
/1GB
)
47 define uboot
/nitrogen6q2g
48 TITLE
:=U-Boot for Nitrogen6x i.MX6Quad
2GB board
51 define uboot
/nitrogen6s
52 TITLE
:=U-Boot for Nitrogen6x i.MX6Solo
512MB board
55 define uboot
/nitrogen6s1g
56 TITLE
:=U-Boot for Nitrogen6x i.MX6Solo
1GB board
59 define uboot
/wandboard_dl
60 TITLE
:=U-Boot for the Wandboard Dual Lite
63 define uboot
/wandboard_quad
64 TITLE
:=U-Boot for the Wandboard Quad
67 define uboot
/wandboard_solo
68 TITLE
:=U-Boot for the Wandboard Solo
83 define Package
/uboot
/template
84 define Package
/uboot-imx6-
$(1)
86 CATEGORY
:=Boot Loaders
89 URL
:=http
://www.denx.de
/wiki
/U-Boot
91 MAINTAINER
:=Luka Perkov
<luka@openwrt.org
>
95 define BuildUBootPackage
96 $(eval
$(uboot
/Default
))
98 $(call Package
/uboot
/template
,$(1),$(TITLE
))
102 $(eval
$(call uboot
/$(BUILD_VARIANT
)))
103 UBOOT_CONFIG
:=$(if
$(CONFIG
),$(CONFIG
),$(BUILD_VARIANT
))
104 UBOOT_IMAGE
:=$(if
$(IMAGE
),$(IMAGE
),openwrt-
$(BOARD
)-$(BUILD_VARIANT
)-u-boot.bin
)
107 define Build
/Configure
108 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
109 $(UBOOT_CONFIG
)_config
113 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
114 CROSS_COMPILE
=$(TARGET_CROSS
)
117 define Package
/uboot
/install/default
118 $(INSTALL_DIR
) $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)
120 $(PKG_BUILD_DIR
)/u-boot.imx \
121 $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)/openwrt-
$(BOARD
)-$(1)-u-boot.imx
124 define Package
/uboot
/install/template
125 define Package
/uboot-imx6-
$(1)/install
126 $(call Package
/uboot
/install/default
,$(2))
130 $(foreach u
,$(UBOOTS
), \
131 $(eval
$(call Package
/uboot
/install/template
,$(u
),$(u
))) \
134 $(foreach u
,$(UBOOTS
), \
135 $(eval
$(call BuildUBootPackage
,$(u
))) \
136 $(eval
$(call BuildPackage
,uboot-imx6-
$(u
))) \