Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #
  2. # Copyright (C) 2012-2015 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. include $(INCLUDE_DIR)/kernel.mk
  9. PKG_NAME:=brcm2708-gpu-fw
  10. PKG_REV:=38aa676b044f8de46aedb4bd972538a7ad6a3ce1
  11. PKG_VERSION:=20150210
  12. PKG_RELEASE:=1
  13. PKG_SOURCE:=$(PKG_REV).tar.gz
  14. PKG_SOURCE_URL:=https://github.com/Hexxeh/rpi-firmware/archive/
  15. PKG_MD5SUM:=edefa7a1684d5b0a2b11acd058adceff
  16. PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)/rpi-firmware-$(PKG_REV)
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/brcm2708-gpu-fw
  19. SECTION:=boot
  20. CATEGORY:=Boot Loaders
  21. DEPENDS:=@TARGET_brcm2708
  22. TITLE:=brcm2708-gpu-fw
  23. DEFAULT:=y if TARGET_brcm2708
  24. endef
  25. define Package/brcm2708-gpu-fw/description
  26. GPU and kernel boot firmware for brcm2708.
  27. endef
  28. define Build/Compile
  29. true
  30. endef
  31. define Package/brcm2708-gpu-fw/install
  32. true
  33. endef
  34. define Build/InstallDev
  35. $(CP) $(PKG_BUILD_DIR)/bootcode.bin $(KERNEL_BUILD_DIR)
  36. $(CP) $(PKG_BUILD_DIR)/COPYING.linux $(KERNEL_BUILD_DIR)
  37. $(CP) $(PKG_BUILD_DIR)/LICENCE.broadcom $(KERNEL_BUILD_DIR)
  38. $(CP) $(PKG_BUILD_DIR)/start.elf $(KERNEL_BUILD_DIR)
  39. $(CP) $(PKG_BUILD_DIR)/start_cd.elf $(KERNEL_BUILD_DIR)
  40. $(CP) $(PKG_BUILD_DIR)/fixup.dat $(KERNEL_BUILD_DIR)
  41. $(CP) $(PKG_BUILD_DIR)/fixup_cd.dat $(KERNEL_BUILD_DIR)
  42. endef
  43. $(eval $(call BuildPackage,brcm2708-gpu-fw))