Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #
  2. # Copyright (C) 2008 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:=ps3-utils
  9. PKG_VERSION:=2.3
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=@KERNEL/linux/kernel/people/geoff/cell/ps3-utils
  13. PKG_MD5SUM:=d0b24527a8582c9ff5be02c62bb2161d
  14. include $(INCLUDE_DIR)/package.mk
  15. define Package/ps3-utils
  16. SECTION:=utils
  17. CATEGORY:=Utilities
  18. TITLE:=PS3 Linux Utilities
  19. DEPENDS:=@TARGET_ps3||TARGET_ps3chk
  20. URL:=http://kernel.org/pub/linux/kernel/people/geoff/cell/ps3-utils/
  21. endef
  22. define Package/ps3-utils/description
  23. The ps3-utils package is a set of system administration utilites for the
  24. PS3 game console.
  25. endef
  26. define Build/Configure
  27. $(call Build/Configure/Default)
  28. endef
  29. define Build/Compile
  30. $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install
  31. endef
  32. define Package/ps3-utils/install
  33. $(INSTALL_DIR) $(1)/usr/sbin
  34. $(INSTALL_DIR) $(1)/usr/bin
  35. $(INSTALL_DIR) $(1)/usr/lib
  36. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ps3-boot-game-os $(1)/usr/sbin
  37. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ps3-dump-bootloader $(1)/usr/sbin
  38. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ps3-flash-util $(1)/usr/sbin
  39. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ps3-video-mode $(1)/usr/bin
  40. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libps3-utils.so.* $(1)/usr/lib
  41. endef
  42. $(eval $(call BuildPackage,ps3-utils))