Root/package/ps3-utils/Makefile

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

Archive Download this file



interactive