blob: 742c8a3bd0953c7b7971a12595b848839a50a645 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
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_HASH:=09ecd81a64db5166a235932146faf08d0689bfc7ac04ac9fcc3a5bd809fba74a
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