Makefile 1.9 KB

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