2 # Copyright (C) 2008 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_VERSION
:=2009-02-21
15 CRYPTO_MENU
:=OCF Configuration
17 include $(INCLUDE_DIR
)/package.mk
19 define KernelPackage
/ocf-ubsec-ssb
20 SUBMENU
:=$(CRYPTO_MENU
)
21 DEPENDS
:=@TARGET_brcm47xx
+kmod-crypto-core
+kmod-crypto-ocf
22 TITLE
:=BCM5365P IPSec Core driver
23 FILES
:=$(PKG_BUILD_DIR
)/src
/ubsec_ssb.
$(LINUX_KMOD_SUFFIX
)
24 AUTOLOAD
:=$(call AutoLoad
,09,ubsec_ssb
)
27 define KernelPackage
/ocf-ubsec-ssb
/description
28 This package contains the OCF driver for the BCM5365p IPSec Core
32 mkdir
-p
$(PKG_BUILD_DIR
)
33 $(CP
) -r .
/src
$(PKG_BUILD_DIR
)/
36 LINUX_PATCHLEVEL
:=$(shell echo
"$(LINUX_VERSION)" | cut
-d.
-f2
)
39 $(MAKE
) -C
$(LINUX_DIR
) \
40 ARCH
="$(LINUX_KARCH)" \
41 CROSS_COMPILE
="$(TARGET_CROSS)" \
42 PATCHLEVEL
="$(LINUX_PATCHLEVEL)" \
43 KERNDIR
="$(LINUX_DIR)" \
44 SUBDIRS
="$(PKG_BUILD_DIR)/src" \
48 $(eval
$(call KernelPackage
,ocf-ubsec-ssb
))