diff options
-rw-r--r-- | rules/ps3-utils.in | 10 | ||||
-rw-r--r-- | rules/ps3-utils.make | 83 |
2 files changed, 93 insertions, 0 deletions
diff --git a/rules/ps3-utils.in b/rules/ps3-utils.in new file mode 100644 index 000000000..7564279a9 --- /dev/null +++ b/rules/ps3-utils.in @@ -0,0 +1,10 @@ +## SECTION=shell_and_console + +config PS3_UTILS + tristate + prompt "ps3-utils" + help + Utilities for running Linux on the PS3 game console. + + The ps3-utils package is a set of system administration utilities for + the PS3 game console. diff --git a/rules/ps3-utils.make b/rules/ps3-utils.make new file mode 100644 index 000000000..aec39ce30 --- /dev/null +++ b/rules/ps3-utils.make @@ -0,0 +1,83 @@ +# -*-makefile-*- +# +# Copyright (C) 2009 by Remy Bohmer <linux@bohmer.net> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_ARCH_PPC)-$(PTXCONF_PS3_UTILS) += ps3-utils + +# +# Paths and names +# +PS3_UTILS_VERSION := 2.3 +PS3_UTILS_LICENSE := GPLv2 +PS3_UTILS := ps3-utils-$(PS3_UTILS_VERSION) +PS3_UTILS_SUFFIX := tar.gz +PS3_UTILS_URL := http://www.kernel.org/pub/linux/kernel/people/geoff/cell/ps3-utils/$(PS3_UTILS).$(PS3_UTILS_SUFFIX) +PS3_UTILS_SOURCE := $(SRCDIR)/$(PS3_UTILS).$(PS3_UTILS_SUFFIX) +PS3_UTILS_DIR := $(BUILDDIR)/$(PS3_UTILS) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +$(PS3_UTILS_SOURCE): + @$(call targetinfo) + @$(call get, PS3_UTILS) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# autoconf +# +PS3_UTILS_AUTOCONF := $(CROSS_AUTOCONF_USR) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/ps3-utils.targetinstall: + @$(call targetinfo) + + @$(call install_init, ps3-utils) + @$(call install_fixup, ps3-utils,PACKAGE,ps3-utils) + @$(call install_fixup, ps3-utils,PRIORITY,optional) + @$(call install_fixup, ps3-utils,VERSION,$(PS3_UTILS_VERSION)) + @$(call install_fixup, ps3-utils,SECTION,base) + @$(call install_fixup, ps3-utils,AUTHOR,"Remy Bohmer <linux@bohmer.net>") + @$(call install_fixup, ps3-utils,DEPENDS,) + @$(call install_fixup, ps3-utils,DESCRIPTION,missing) + + @$(call install_copy, ps3-utils, 0, 0, 0644, -, /usr/lib/libps3-utils.so.2.0.0) + @$(call install_link, ps3-utils, libps3-utils.so.2.0.0, /usr/lib/libps3-utils.so) + @$(call install_link, ps3-utils, libps3-utils.so.2.0.0, /usr/lib/libps3-utils.so.2) + + @$(call install_copy, ps3-utils, 0, 0, 0755, -, /usr/bin/ps3-video-mode) + @$(call install_copy, ps3-utils, 0, 0, 0755, -, /usr/sbin/ps3-boot-game-os) + @$(call install_copy, ps3-utils, 0, 0, 0755, -, /usr/sbin/ps3-dump-bootloader) + @$(call install_copy, ps3-utils, 0, 0, 0755, -, /usr/sbin/ps3-flash-util) + @$(call install_copy, ps3-utils, 0, 0, 0755, -, /usr/sbin/ps3-rtc-init) + + @$(call install_finish, ps3-utils) + + @$(call touch) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +ps3-utils_clean: + rm -rf $(STATEDIR)/ps3-utils.* + rm -rf $(PKGDIR)/ps3-utils_* + rm -rf $(PS3_UTILS_DIR) + +# vim: syntax=make |