sunxi: add Orange Pi 2 support
[openwrt/staging/wigyori.git] / package / boot / imx-bootlets / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=imx-bootlets
10 PKG_VERSION:=10.05.02
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_SOURCE_URL:=http://trabant.uid0.hu/openwrt/
14 PKG_HASH:=09ecd81a64db5166a235932146faf08d0689bfc7ac04ac9fcc3a5bd809fba74a
15
16 include $(INCLUDE_DIR)/package.mk
17
18 define Package/imx-bootlets
19 SECTION:=boot
20 CATEGORY:=Boot Loaders
21 TITLE:=i.MX23/i.MX28 bootlets
22 DEPENDS:=@TARGET_mxs
23 endef
24
25 define Package/imx-bootlets/description
26 i.MX23/i.MX28 bootlets (for oLinuxino)
27 endef
28
29 define Build/Compile
30 $(MAKE) -C $(PKG_BUILD_DIR) CROSS_COMPILE="$(TARGET_CROSS)"
31 endef
32
33 define Package/imx-bootlets/install
34 @echo Copying boot_prep and power_prep into staging - $(STAGING_DIR)
35 $(INSTALL_BIN) $(PKG_BUILD_DIR)/boot_prep/boot_prep $(STAGING_DIR)/boot_prep
36 $(INSTALL_BIN) $(PKG_BUILD_DIR)/linux_prep/output-target/linux_prep $(STAGING_DIR)/linux_prep
37 $(INSTALL_BIN) $(PKG_BUILD_DIR)/power_prep/power_prep $(STAGING_DIR)/power_prep
38 $(INSTALL_BIN) $(PKG_BUILD_DIR)/linux_prebuilt.db $(STAGING_DIR)/linux_prebuilt.db
39 endef
40
41 $(eval $(call BuildPackage,imx-bootlets))
42