uboot-mxs: fix build on hosts lacking pkg-config
[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:=2017.11
12 PKG_RELEASE:=1
13
14 PKG_HASH:=6a018fd3caf58f3dcfa23ee989a82bd35df03af71872b9dca8c6d758a0d26c05
15
16 include $(INCLUDE_DIR)/u-boot.mk
17 include $(INCLUDE_DIR)/package.mk
18 include $(INCLUDE_DIR)/host-build.mk
19
20 define U-Boot/Default
21 BUILD_TARGET:=mxs
22 UBOOT_IMAGE:=u-boot.sb
23 DEFAULT:=y
24 HIDDEN:=1
25 endef
26
27 define U-Boot/mx23_olinuxino
28 NAME:=Olinuxino i.MX233
29 endef
30
31 define U-Boot/duckbill
32 NAME:=I2SE Duckbill
33 endef
34
35 UBOOT_TARGETS := \
36 mx23_olinuxino \
37 duckbill
38
39 UBOOT_MAKE_FLAGS += $(UBOOT_IMAGE)
40
41 Build/Exports:=$(Host/Exports)
42
43 define Build/InstallDev
44 $(INSTALL_DIR) $(STAGING_DIR_IMAGE)
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(UBOOT_IMAGE) $(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-$(UBOOT_IMAGE)
46 endef
47
48 $(eval $(call BuildPackage/U-Boot))