2 # Copyright (C) 2016 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
9 include $(INCLUDE_DIR
)/kernel.mk
15 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
18 http
://mirror2.openwrt.org
/sources \
19 ftp
://ftp.denx.de
/pub
/u-boot
20 PKG_MD5SUM
:=973c1d896be751321cc3aafa564f64b2
22 PKG_LICENSE
:=GPL-2.0 GPL-2.0
+
23 PKG_LICENSE_FILES
:=Licenses
/README
27 include $(INCLUDE_DIR
)/package.mk
34 TITLE
:=U-Boot for SolidRun ClearFog A1
40 define Package
/uboot
/template
41 define Package
/uboot-mvebu-
$(1)
43 CATEGORY
:=Boot Loaders
44 DEPENDS
:=@TARGET_mvebu
46 URL
:=http
://www.denx.de
/wiki
/U-Boot
48 MAINTAINER
:=Luka Perkov
<luka@openwrt.org
>
52 define BuildUBootPackage
53 $(eval
$(uboot
/Default
))
55 $(call Package
/uboot
/template
,$(1),$(TITLE
))
58 define Build
/Configure
59 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
60 $(BUILD_VARIANT
)_config
64 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
65 CROSS_COMPILE
=$(TARGET_CROSS
) \
66 DTC_DIR
=$(LINUX_DIR
)/scripts
/dtc
/
69 define Package
/uboot
/install/default
70 $(INSTALL_DIR
) $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)
71 $(CP
) $(PKG_BUILD_DIR
)/u-boot-spl.kwb \
72 $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)/openwrt-
$(BOARD
)-$(1)-u-boot-spl.kwb
73 $(INSTALL_DIR
) $(BIN_DIR
)/u-boot-kwboot
/
74 $(CP
) $(PKG_BUILD_DIR
)/tools
/kwboot \
75 $(BIN_DIR
)/u-boot-kwboot
/
78 define Package
/uboot
/install/template
79 define Package
/uboot-mvebu-
$(1)/install
80 $(call Package
/uboot
/install/default
,$(2))
84 $(foreach u
,$(UBOOTS
), \
85 $(eval
$(call Package
/uboot
/install/template
,$(u
),$(u
))) \
88 $(foreach u
,$(UBOOTS
), \
89 $(eval
$(call BuildUBootPackage
,$(u
))) \
90 $(eval
$(call BuildPackage
,uboot-mvebu-
$(u
))) \