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#
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:=imx-bootlets
10PKG_VERSION:=10.05.02
11
12PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13PKG_SOURCE_URL:=http://trabant.uid0.hu/openwrt/
14PKG_MD5SUM:=82e375193b66ca643023c1656d536282
15
16include $(INCLUDE_DIR)/package.mk
17
18define Package/imx-bootlets
19	SECTION:=boot
20	CATEGORY:=Boot Loaders
21	TITLE:=i.MX23/i.MX28 bootlets
22	DEPENDS:=@TARGET_mxs
23endef
24
25define Package/imx-bootlets/description
26 i.MX23/i.MX28 bootlets (for oLinuxino)
27endef
28
29define Build/Compile
30	$(MAKE) -C $(PKG_BUILD_DIR) CROSS_COMPILE="$(TARGET_CROSS)"
31endef
32
33define 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
39endef
40
41$(eval $(call BuildPackage,imx-bootlets))
42
43