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.
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
14 CRYPTO_MENU
:=OCF Configuration
16 include $(INCLUDE_DIR
)/package.mk
18 define KernelPackage
/ocf-ubsec-ssb
19 SUBMENU
:=$(CRYPTO_MENU
)
20 DEPENDS
:=@TARGET_brcm47xx
21 TITLE
:=BCM5365P IPSec Core driver
22 FILES
:=$(PKG_BUILD_DIR
)/src
/ubsec_ssb.
$(LINUX_KMOD_SUFFIX
)
23 AUTOLOAD
:=$(call AutoLoad
,09,ubsec_ssb
)
26 define KernelPackage
/ocf-ubsec-ssb
/description
27 This package contains the OCF driver for the BCM5365p IPSec Core
31 mkdir
-p
$(PKG_BUILD_DIR
)
32 $(CP
) -r .
/src
$(PKG_BUILD_DIR
)/
35 LINUX_PATCHLEVEL
:=$(shell echo
"$(LINUX_VERSION)" | cut
-d.
-f2
)
38 $(MAKE
) -C
$(LINUX_DIR
) \
39 ARCH
="$(LINUX_KARCH)" \
40 CROSS_COMPILE
="$(TARGET_CROSS)" \
41 PATCHLEVEL
="$(LINUX_PATCHLEVEL)" \
42 KERNDIR
="$(LINUX_DIR)" \
43 SUBDIRS
="$(PKG_BUILD_DIR)/src" \
47 $(eval
$(call KernelPackage
,ocf-ubsec-ssb
))