-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (39 loc) · 1.17 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#
# Copyright (C) 2008 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:=ps3-jupiter
PKG_RELEASE:=1
include $(INCLUDE_DIR)/package.mk
define KernelPackage/ps3-jupiter
SUBMENU:=Wireless Drivers
TITLE:=Dirver for PS3 slim WIFI
FILES:=$(PKG_BUILD_DIR)/ps3_jupiter_sta.$(LINUX_KMOD_SUFFIX) $(PKG_BUILD_DIR)/ps3_jupiter.$(LINUX_KMOD_SUFFIX)
AUTOLOAD:=$(call AutoLoad,80,ps3_jupiter ps3_jupiter_sta)
endef
define KernelPackage/ps3-jupiter/description
Driver for ps3 slim wifi
endef
EXTRA_KCONFIG:= \
EXTRA_CFLAGS:= \
MAKE_OPTS:= \
ARCH="$(LINUX_KARCH)" \
CROSS_COMPILE="$(TARGET_CROSS)" \
SUBDIRS="$(PKG_BUILD_DIR)" \
EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \
LINUXINCLUDE="-I$(LINUX_DIR)/include -include linux/autoconf.h -I$(LINUX_DIR)/arch/powerpc/include" \
$(EXTRA_KCONFIG)
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR) && \
$(CP) ./files/* $(PKG_BUILD_DIR)/
endef
define Build/Compile
$(MAKE) -C "$(LINUX_DIR)" \
$(MAKE_OPTS) \
modules
endef
$(eval $(call KernelPackage,ps3-jupiter))