2010-09-05 00:16:19 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2010 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
|
|
|
|
PKG_NAME:=psfreedom
|
2010-09-08 10:06:51 +00:00
|
|
|
PKG_REV:=1998b60b81ddd6400cdf208d71a7878a7021a078
|
2010-09-05 00:16:19 +00:00
|
|
|
PKG_VERSION:=$(PKG_REV)
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://github.com/kakaroto/PSFreedom.git
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_SOURCE_VERSION:=$(PKG_REV)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define KernelPackage/psfreedom
|
|
|
|
SUBMENU:=USB Support
|
2010-09-08 10:06:51 +00:00
|
|
|
DEPENDS:=@TARGET_omap24xx +TARGET_omap24xx:kmod-usb-tahvo +TARGET_omap24xx:kmod-musb-hdrc
|
2010-09-05 00:16:19 +00:00
|
|
|
TITLE:=PSFreedom PS3 USB exploit
|
|
|
|
FILES:=$(PKG_BUILD_DIR)/psfreedom.ko
|
2010-09-30 10:18:02 +00:00
|
|
|
MAINTAINER:=Michael Buesch <mb@bu3sch.de>
|
2010-09-05 00:16:19 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/psfreedom/description
|
|
|
|
Playstation 3 USB exploit. Runs on Nokia n810.
|
|
|
|
endef
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/kernel-defaults.mk
|
|
|
|
|
2010-09-08 10:06:51 +00:00
|
|
|
TARGET_CFG_CFLAGS:=$(if $(CONFIG_TARGET_omap24xx),-DENABLE_MUSB_CONTROLLER)
|
|
|
|
|
2010-09-05 00:16:19 +00:00
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) $(KERNEL_MAKEOPTS) \
|
|
|
|
SUBDIRS="$(PKG_BUILD_DIR)" \
|
|
|
|
KDIR="$(LINUX_DIR)" \
|
|
|
|
PWD="$(PKG_BUILD_DIR)" \
|
2010-09-08 10:06:51 +00:00
|
|
|
EXTRA_CFLAGS="$(TARGET_CFG_CFLAGS)" \
|
2010-09-05 00:16:19 +00:00
|
|
|
modules
|
|
|
|
endef
|
|
|
|
|
2010-09-05 11:03:39 +00:00
|
|
|
define KernelPackage/psfreedom/install
|
2010-09-08 10:06:51 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/share/psfreedom/
|
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/bins/*.bin $(1)/usr/share/psfreedom/
|
2010-09-05 11:03:39 +00:00
|
|
|
endef
|
|
|
|
|
2010-09-05 00:16:19 +00:00
|
|
|
$(eval $(call KernelPackage,psfreedom))
|