eec78417f2a1813c7b55a5136c5b2c871ddde564
[openwrt/openwrt.git] / package / boot / uboot-mxs / Makefile
1 #
2 # Copyright (C) 2013-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.01
12 PKG_RELEASE:=1
13
14 PKG_HASH:=e5792fba9399d9804aa2ef667f14ff771e2cdece72367d340250265bf095a5d5
15
16 include $(INCLUDE_DIR)/u-boot.mk
17 include $(INCLUDE_DIR)/package.mk
18
19 define U-Boot/Default
20 BUILD_TARGET:=mxs
21 UBOOT_IMAGE:=u-boot.sb
22 DEFAULT:=y
23 HIDDEN:=1
24 endef
25
26 define U-Boot/mx23_olinuxino
27 NAME:=Olinuxino i.MX233
28 endef
29
30 define U-Boot/duckbill
31 NAME:=I2SE Duckbill
32 endef
33
34 UBOOT_TARGETS := \
35 mx23_olinuxino \
36 duckbill
37
38 UBOOT_MAKE_FLAGS += $(UBOOT_IMAGE)
39
40 define Build/InstallDev
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(UBOOT_IMAGE) $(KERNEL_BUILD_DIR)/$(BUILD_VARIANT)-$(UBOOT_IMAGE)
42 endef
43
44 $(eval $(call BuildPackage/U-Boot))