2
0

Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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_HASH:=09ecd81a64db5166a235932146faf08d0689bfc7ac04ac9fcc3a5bd809fba74a
  13. PKG_FLAGS:=nonshared
  14. include $(INCLUDE_DIR)/package.mk
  15. define Package/imx-bootlets
  16. SECTION:=boot
  17. CATEGORY:=Boot Loaders
  18. TITLE:=i.MX23/i.MX28 bootlets
  19. DEPENDS:=@TARGET_mxs
  20. endef
  21. define Package/imx-bootlets/description
  22. i.MX23/i.MX28 bootlets (for oLinuxino)
  23. endef
  24. define Build/Compile
  25. $(MAKE) -C $(PKG_BUILD_DIR) CROSS_COMPILE="$(TARGET_CROSS)"
  26. endef
  27. define Package/imx-bootlets/install
  28. @echo Copying boot_prep and power_prep into staging - $(STAGING_DIR)
  29. $(INSTALL_BIN) $(PKG_BUILD_DIR)/boot_prep/boot_prep $(STAGING_DIR)/boot_prep
  30. $(INSTALL_BIN) $(PKG_BUILD_DIR)/linux_prep/output-target/linux_prep $(STAGING_DIR)/linux_prep
  31. $(INSTALL_BIN) $(PKG_BUILD_DIR)/power_prep/power_prep $(STAGING_DIR)/power_prep
  32. $(INSTALL_BIN) $(PKG_BUILD_DIR)/linux_prebuilt.db $(STAGING_DIR)/linux_prebuilt.db
  33. endef
  34. $(eval $(call BuildPackage,imx-bootlets))