56e2d7f023bb139fb4466fbac827141a63798627
[openwrt/staging/dedeckeh.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_MD5SUM:=82e375193b66ca643023c1656d536282
15
16 PKG_LICENSE:=GPL-2.0+
17 PKG_LICENSE_FILES:=
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/imx-bootlets
22 SECTION:=boot
23 CATEGORY:=Boot Loaders
24 TITLE:=i.MX23/i.MX28 bootlets
25 DEPENDS:=@TARGET_mxs
26 endef
27
28 define Package/imx-bootlets/description
29 i.MX23/i.MX28 bootlets (for oLinuxino)
30 endef
31
32 define Build/Compile
33 $(MAKE) -C $(PKG_BUILD_DIR) CROSS_COMPILE="$(TARGET_CROSS)"
34 endef
35
36 define Package/imx-bootlets/install
37 @echo Copying boot_prep and power_prep into staging - $(STAGING_DIR)
38 $(INSTALL_BIN) $(PKG_BUILD_DIR)/boot_prep/boot_prep $(STAGING_DIR)/boot_prep
39 $(INSTALL_BIN) $(PKG_BUILD_DIR)/linux_prep/output-target/linux_prep $(STAGING_DIR)/linux_prep
40 $(INSTALL_BIN) $(PKG_BUILD_DIR)/power_prep/power_prep $(STAGING_DIR)/power_prep
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/linux_prebuilt.db $(STAGING_DIR)/linux_prebuilt.db
42 endef
43
44 $(eval $(call BuildPackage,imx-bootlets))
45