2 # Copyright (C) 2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/kernel.mk
12 PKG_REV
:=1998b60b81ddd6400cdf208d71a7878a7021a078
13 PKG_VERSION
:=$(PKG_REV
)
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=http
://github.com
/kakaroto
/PSFreedom.git
19 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_SOURCE_VERSION
:=$(PKG_REV
)
22 include $(INCLUDE_DIR
)/package.mk
24 define KernelPackage
/psfreedom
26 DEPENDS
:=@TARGET_omap24xx
+TARGET_omap24xx
:kmod-usb-tahvo
+TARGET_omap24xx
:kmod-musb-hdrc
27 TITLE
:=PSFreedom PS3 USB exploit
28 FILES
:=$(PKG_BUILD_DIR
)/psfreedom.ko
29 MAINTAINER
:=Michael Buesch
<mb@bu3sch.de
>
32 define KernelPackage
/psfreedom
/description
33 Playstation
3 USB exploit. Runs on Nokia n810.
36 include $(INCLUDE_DIR
)/kernel-defaults.mk
38 TARGET_CFG_CFLAGS
:=$(if
$(CONFIG_TARGET_omap24xx
),-DENABLE_MUSB_CONTROLLER
)
41 $(MAKE
) $(KERNEL_MAKEOPTS
) \
42 SUBDIRS
="$(PKG_BUILD_DIR)" \
44 PWD
="$(PKG_BUILD_DIR)" \
45 EXTRA_CFLAGS
="$(TARGET_CFG_CFLAGS)" \
49 define KernelPackage
/psfreedom
/install
50 $(INSTALL_DIR
) $(1)/usr
/share
/psfreedom
/
51 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/bins
/*.bin
$(1)/usr
/share
/psfreedom
/
54 $(eval
$(call KernelPackage
,psfreedom
))