Makefile 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #
  2. # Copyright (C) 2008-2010 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_REV:=6488134e48cf2d6f2d6471ced8346ac8cb1b855a
  10. PKG_VERSION:=20090320
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  13. PKG_SOURCE_URL:=http://www.kernel.org/pub/scm/linux/kernel/git/geoff/ps3-utils.git
  14. PKG_SOURCE_PROTO:=git
  15. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  16. PKG_SOURCE_VERSION:=$(PKG_REV)
  17. PKG_FIXUP:=libtool
  18. PKG_INSTALL=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/ps3-utils
  21. SECTION:=utils
  22. CATEGORY:=Utilities
  23. TITLE:=PS3 Linux Utilities
  24. URL:=http://kernel.org/pub/linux/kernel/people/geoff/cell/ps3-utils/
  25. MAINTAINER:=Geoff Levand <[email protected]>
  26. DEPENDS:=@TARGET_ps3||TARGET_ps3chk||TARGET_powerpc
  27. endef
  28. define Package/ps3-utils/description
  29. The ps3-utils package is a set of system administration utilites for the
  30. PS3 game console.
  31. endef
  32. define Build/Configure
  33. (cd $(PKG_BUILD_DIR) && $(BASH) -x ./bootstrap)
  34. $(call Build/Configure/Default)
  35. endef
  36. define Build/InstallDev
  37. $(INSTALL_DIR) $(1)/usr/include
  38. $(INSTALL_DATA) \
  39. $(PKG_INSTALL_DIR)/usr/include/ps3*.h \
  40. $(1)/usr/include
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(INSTALL_BIN) \
  43. $(PKG_INSTALL_DIR)/usr/lib/libps3-utils.{la,a,so*} \
  44. $(1)/usr/lib/
  45. endef
  46. define Package/ps3-utils/install
  47. $(INSTALL_DIR) $(1)/usr/sbin
  48. $(INSTALL_DIR) $(1)/usr/bin
  49. $(INSTALL_DIR) $(1)/usr/lib
  50. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ps3-boot-game-os $(1)/usr/sbin
  51. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ps3-dump-bootloader $(1)/usr/sbin
  52. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ps3-flash-util $(1)/usr/sbin
  53. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ps3-video-mode $(1)/usr/bin
  54. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libps3-utils.so.* $(1)/usr/lib
  55. endef
  56. $(eval $(call BuildPackage,ps3-utils))