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
28 include $(INCLUDE_DIR
)/package.mk
35 TITLE
:=U-Boot for SolidRun ClearFog A1
41 define Package
/uboot
/template
42 define Package
/uboot-mvebu-
$(1)
44 CATEGORY
:=Boot Loaders
45 DEPENDS
:=@TARGET_mvebu
47 URL
:=http
://www.denx.de
/wiki
/U-Boot
49 MAINTAINER
:=Felix Fietkau
<nbd@nbd.name
>
53 define BuildUBootPackage
54 $(eval
$(uboot
/Default
))
56 $(call Package
/uboot
/template
,$(1),$(TITLE
))
59 define Build
/Configure
60 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
61 $(BUILD_VARIANT
)_config
65 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
66 CROSS_COMPILE
=$(TARGET_CROSS
) \
67 DTC_DIR
=$(LINUX_DIR
)/scripts
/dtc
/
70 define Package
/uboot
/install/default
71 $(INSTALL_DIR
) $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)
72 $(CP
) $(PKG_BUILD_DIR
)/u-boot-spl.kwb \
73 $(BIN_DIR
)/uboot-
$(BOARD
)-$(1)/openwrt-
$(BOARD
)-$(1)-u-boot-spl.kwb
74 $(INSTALL_DIR
) $(KERNEL_BUILD_DIR
)/
75 $(CP
) $(PKG_BUILD_DIR
)/u-boot-spl.kwb \
76 $(KERNEL_BUILD_DIR
)/openwrt-
$(BOARD
)-$(1)-u-boot-spl.kwb
77 $(INSTALL_DIR
) $(BIN_DIR
)/u-boot-kwboot
/
78 $(CP
) $(PKG_BUILD_DIR
)/tools
/kwboot \
79 $(BIN_DIR
)/u-boot-kwboot
/
82 define Package
/uboot
/install/template
83 define Package
/uboot-mvebu-
$(1)/install
84 $(call Package
/uboot
/install/default
,$(2))
88 $(foreach u
,$(UBOOTS
), \
89 $(eval
$(call Package
/uboot
/install/template
,$(u
),$(u
))) \
92 $(foreach u
,$(UBOOTS
), \
93 $(eval
$(call BuildUBootPackage
,$(u
))) \
94 $(eval
$(call BuildPackage
,uboot-mvebu-
$(u
))) \