Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. PKG_FLAGS:=nonshared
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/am33x-cm3
  21. SECTION:=firmware
  22. CATEGORY:=Firmware
  23. URL:=http://arago-project.org/git/projects/?p=am33x-cm3.git
  24. TITLE:=TI AM335x PM firmware
  25. DEPENDS:=@TARGET_omap
  26. endef
  27. define Build/Compile
  28. $(MAKE) CROSS_COMPILE=$(TARGET_CROSS) -C $(PKG_BUILD_DIR)
  29. endef
  30. define Package/am33x-cm3/install
  31. $(INSTALL_DIR) $(1)/lib/firmware
  32. $(CP) $(PKG_BUILD_DIR)/bin/am335x-pm-firmware.bin $(1)/lib/firmware
  33. endef
  34. $(eval $(call BuildPackage,am33x-cm3))