uboot-mvebu: switch to u-boot.mk
[openwrt/openwrt.git] / package / boot / uboot-mvebu / Makefile
1 #
2 # Copyright (C) 2016 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_VERSION:=2016.03
12 PKG_RELEASE:=1
13
14 PKG_HASH:=e49337262ecac44dbdeac140f2c6ebd1eba345e0162b0464172e7f05583ed7bb
15
16 include $(INCLUDE_DIR)/u-boot.mk
17 include $(INCLUDE_DIR)/package.mk
18
19 define U-Boot/Default
20 BUILD_TARGET:=mvebu
21 HIDDEN:=1
22 endef
23
24 define U-Boot/clearfog
25 NAME:=SolidRun ClearFog A1
26 BUILD_DEVICES:=armada-388-clearfog
27 UBOOT_IMAGE:=u-boot-spl.kwb
28 endef
29
30 UBOOT_TARGETS:= \
31 clearfog
32
33 define Build/InstallDev
34 $(INSTALL_DIR) $(KERNEL_BUILD_DIR)/
35 $(CP) $(PKG_BUILD_DIR)/$(UBOOT_IMAGE) $(KERNEL_BUILD_DIR)/$(BUILD_VARIANT)-u-boot-spl.kwb
36 endef
37
38 $(eval $(call BuildPackage/U-Boot))