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
21 PKG_LICENSE
:=GPL-2.0 GPL-2.0
+
22 PKG_LICENSE_FILES
:=Licenses
/README
26 include $(INCLUDE_DIR
)/package.mk
34 define uboot
/nitrogen6dl
35 TITLE
:=U-Boot for Nitrogen6x i.MX6Dual-Lite
1GB board
38 define uboot
/nitrogen6dl2g
39 TITLE
:=U-Boot for Nitrogen6x i.MX6Dual-Lite
2GB board
42 define uboot
/nitrogen6q
43 TITLE
:=U-Boot for Nitrogen6x
/SABRE Lite
(MX6Q
/1GB
)
46 define uboot
/nitrogen6q2g
47 TITLE
:=U-Boot for Nitrogen6x i.MX6Quad
2GB board
50 define uboot
/nitrogen6s
51 TITLE
:=U-Boot for Nitrogen6x i.MX6Solo
512MB board
54 define uboot
/nitrogen6s1g
55 TITLE
:=U-Boot for Nitrogen6x i.MX6Solo
1GB board
58 define uboot
/wandboard_dl
59 TITLE
:=U-Boot for the Wandboard Dual Lite
62 define uboot
/wandboard_quad
63 TITLE
:=U-Boot for the Wandboard Quad
66 define uboot
/wandboard_solo
67 TITLE
:=U-Boot for the Wandboard Solo
81 define Package
/uboot
/template
82 define Package
/uboot-imx6-
$(1)
84 CATEGORY
:=Boot Loaders
87 URL
:=http
://www.denx.de
/wiki
/U-Boot
89 MAINTAINER
:=Luka Perkov
<luka@openwrt.org
>
93 define BuildUBootPackage
94 $(eval
$(uboot
/Default
))
96 $(call Package
/uboot
/template
,$(1),$(TITLE
))
100 $(eval
$(call uboot
/$(BUILD_VARIANT
)))
101 UBOOT_CONFIG
:=$(if
$(CONFIG
),$(CONFIG
),$(BUILD_VARIANT
))
102 UBOOT_IMAGE
:=$(if
$(IMAGE
),$(IMAGE
),openwrt-
$(BOARD
)-$(BUILD_VARIANT
)-u-boot.bin
)
105 define Build
/Configure
106 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
107 $(UBOOT_CONFIG
)_config
111 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
112 CROSS_COMPILE
=$(TARGET_CROSS
)
115 define Package
/uboot
/install/default
116 $(INSTALL_DIR
) $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)
118 $(PKG_BUILD_DIR
)/u-boot.imx \
119 $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)/openwrt-
$(BOARD
)-$(1)-u-boot.imx
122 define Package
/uboot
/install/template
123 define Package
/uboot-imx6-
$(1)/install
124 $(call Package
/uboot
/install/default
,$(2))
128 $(foreach u
,$(UBOOTS
), \
129 $(eval
$(call Package
/uboot
/install/template
,$(u
),$(u
))) \
132 $(foreach u
,$(UBOOTS
), \
133 $(eval
$(call BuildUBootPackage
,$(u
))) \
134 $(eval
$(call BuildPackage
,uboot-imx6-
$(u
))) \