Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #
  2. # Copyright (C) 2014 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:=am33x-cm3
  9. PKG_VERSION:=20130304
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  13. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  14. PKG_SOURCE_URL:=git://arago-project.org/git/projects/am33x-cm3.git
  15. PKG_SOURCE_VERSION:=32cf44e25b5828b87af6dceebc3a49fed5d858ac
  16. PKG_MD5SUM:=40a6b7edae5e5cfff99bebde2bf20b97
  17. PKG_MAINTAINER:=Imre Kaloz <kaloz@openwrt.org>
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/am33x-cm3
  20. SECTION:=firmware
  21. CATEGORY:=Firmware
  22. URL:=http://arago-project.org/git/projects/?p=am33x-cm3.git
  23. TITLE:=TI AM335x PM firmware
  24. DEPENDS:=@TARGET_omap
  25. endef
  26. define Build/Compile
  27. $(MAKE) CROSS_COMPILE=$(TARGET_CROSS) -C $(PKG_BUILD_DIR)
  28. endef
  29. define Package/am33x-cm3/install
  30. $(INSTALL_DIR) $(1)/lib/firmware
  31. $(CP) $(PKG_BUILD_DIR)/bin/am335x-pm-firmware.bin $(1)/lib/firmware
  32. endef
  33. $(eval $(call BuildPackage,am33x-cm3))