Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. PKG_NAME:=imx-bootlets
  9. PKG_VERSION:=10.05.02
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  11. PKG_SOURCE_URL:=http://trabant.uid0.hu/openwrt/
  12. PKG_MD5SUM:=82e375193b66ca643023c1656d536282
  13. include $(INCLUDE_DIR)/package.mk
  14. define Package/imx-bootlets
  15. SECTION:=boot
  16. CATEGORY:=Boot Loaders
  17. TITLE:=i.MX23/i.MX28 bootlets
  18. DEPENDS:=@TARGET_mxs
  19. endef
  20. define Package/imx-bootlets/description
  21. i.MX23/i.MX28 bootlets (for oLinuxino)
  22. endef
  23. define Build/Compile
  24. $(MAKE) -C $(PKG_BUILD_DIR) CROSS_COMPILE="$(TARGET_CROSS)"
  25. endef
  26. define Package/imx-bootlets/install
  27. @echo Copying boot_prep and power_prep into staging - $(STAGING_DIR)
  28. $(INSTALL_BIN) $(PKG_BUILD_DIR)/boot_prep/boot_prep $(STAGING_DIR)/boot_prep
  29. $(INSTALL_BIN) $(PKG_BUILD_DIR)/linux_prep/output-target/linux_prep $(STAGING_DIR)/linux_prep
  30. $(INSTALL_BIN) $(PKG_BUILD_DIR)/power_prep/power_prep $(STAGING_DIR)/power_prep
  31. $(INSTALL_BIN) $(PKG_BUILD_DIR)/linux_prebuilt.db $(STAGING_DIR)/linux_prebuilt.db
  32. endef
  33. $(eval $(call BuildPackage,imx-bootlets))