source: packages/utils/psfreedom/Makefile @ 22932

Last change on this file since 22932 was 22932, checked in by mb, 6 years ago

psfreedom: update

File size: 1.8 KB
Line 
1#
2# Copyright (C) 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
9include $(INCLUDE_DIR)/kernel.mk
10
11PKG_NAME:=psfreedom
12PKG_REV:=d62f4aedf33c1ad5222a8c970e623da5441c40db
13PKG_VERSION:=$(PKG_REV)
14PKG_RELEASE:=1
15
16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17PKG_SOURCE_URL:=http://github.com/kakaroto/PSFreedom.git
18PKG_SOURCE_PROTO:=git
19PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
20PKG_SOURCE_VERSION:=$(PKG_REV)
21
22include $(INCLUDE_DIR)/package.mk
23
24define KernelPackage/psfreedom
25  SUBMENU:=USB Support
26  DEPENDS:=@TARGET_omap24xx +kmod-usb-tahvo +kmod-musb-hdrc
27  TITLE:=PSFreedom PS3 USB exploit
28  FILES:=$(PKG_BUILD_DIR)/psfreedom.ko
29endef
30
31define KernelPackage/psfreedom/description
32  Playstation 3 USB exploit. Runs on Nokia n810.
33endef
34
35include $(INCLUDE_DIR)/kernel-defaults.mk
36
37define Build/Compile
38        $(MAKE) $(KERNEL_MAKEOPTS) \
39                SUBDIRS="$(PKG_BUILD_DIR)" \
40                KDIR="$(LINUX_DIR)" \
41                PWD="$(PKG_BUILD_DIR)" \
42                EXTRA_CFLAGS="-DENABLE_MUSB_CONTROLLER" \
43                modules
44endef
45
46define KernelPackage/psfreedom/install
47        $(INSTALL_DIR) $(1)/lib/firmware
48        $(INSTALL_DATA) $(PKG_BUILD_DIR)/payload_bdemu.bin \
49                $(1)/lib/firmware/psfreedom_payload_bdemu.bin
50        $(INSTALL_DATA) $(PKG_BUILD_DIR)/payload_no_bdemu.bin \
51                $(1)/lib/firmware/psfreedom_payload_no_bdemu.bin
52        $(INSTALL_DATA) $(PKG_BUILD_DIR)/shellcode_exec_payload.bin \
53                $(1)/lib/firmware/psfreedom_shellcode_exec_payload.bin
54        $(INSTALL_DATA) $(PKG_BUILD_DIR)/shellcode_panic.bin \
55                $(1)/lib/firmware/psfreedom_shellcode_panic.bin
56        ( cd $(1)/lib/firmware; \
57                $(LN) psfreedom_payload_bdemu.bin psfreedom_payload.bin; \
58                $(LN) psfreedom_shellcode_exec_payload.bin psfreedom_shellcode.bin; \
59        )
60endef
61
62$(eval $(call KernelPackage,psfreedom))
Note: See TracBrowser for help on using the repository browser.