2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR)/rules.mk
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_SOURCE_URL:=http://trabant.uid0.hu/openwrt/
14 PKG_HASH:=09ecd81a64db5166a235932146faf08d0689bfc7ac04ac9fcc3a5bd809fba74a
16 include $(INCLUDE_DIR)/package.mk
18 define Package/imx-bootlets
20 CATEGORY:=Boot Loaders
21 TITLE:=i.MX23/i.MX28 bootlets
25 define Package/imx-bootlets/description
26 i.MX23/i.MX28 bootlets (for oLinuxino)
30 $(MAKE) -C $(PKG_BUILD_DIR) CROSS_COMPILE="$(TARGET_CROSS)"
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
41 $(eval $(call BuildPackage,imx-bootlets))