aboutsummaryrefslogtreecommitdiffstats
path: root/package/ubsec_ssb/Makefile
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2008-07-15 17:12:30 +0000
committerFlorian Fainelli <florian@openwrt.org>2008-07-15 17:12:30 +0000
commitaf8c1e826916c9f91a9cfe0e097e1b035f079501 (patch)
tree1622af31c6045b2fcbd02119525404c902e6eb75 /package/ubsec_ssb/Makefile
parentabb0f6763ecd1d0b7633c14b4ed3a83793472a70 (diff)
downloadupstream-af8c1e826916c9f91a9cfe0e097e1b035f079501.tar.gz
upstream-af8c1e826916c9f91a9cfe0e097e1b035f079501.tar.bz2
upstream-af8c1e826916c9f91a9cfe0e097e1b035f079501.zip
Add ubsec ssb from Daniel Mueller <daniel@danm.de> (#2417)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11841 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ubsec_ssb/Makefile')
-rw-r--r--package/ubsec_ssb/Makefile47
1 files changed, 47 insertions, 0 deletions
diff --git a/package/ubsec_ssb/Makefile b/package/ubsec_ssb/Makefile
new file mode 100644
index 0000000000..8c2c98423b
--- /dev/null
+++ b/package/ubsec_ssb/Makefile
@@ -0,0 +1,47 @@
+#
+# Copyright (C) 2008 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+# $Id: $
+
+include $(TOPDIR)/rules.mk
+include $(INCLUDE_DIR)/kernel.mk
+
+PKG_NAME:=ubsec-ssb
+
+CRYPTO_MENU:=OCF Configuration
+
+include $(INCLUDE_DIR)/package.mk
+
+define KernelPackage/ocf-ubsec-ssb
+ SUBMENU:=$(CRYPTO_MENU)
+ DEPENDS:=@LINUX_2_6
+ TITLE:=BCM5365P IPSec Core driver
+ FILES:=$(PKG_BUILD_DIR)/src/ubsec_ssb.$(LINUX_KMOD_SUFFIX)
+ AUTOLOAD:=$(call AutoLoad,09,ubsec_ssb)
+endef
+
+define KernelPackage/ocf-ubsec-ssb/description
+ This package contains the OCF driver for the BCM5365p IPSec Core
+endef
+
+define Build/Prepare
+ mkdir -p $(PKG_BUILD_DIR)
+ $(CP) -r ./src $(PKG_BUILD_DIR)/
+endef
+
+LINUX_PATCHLEVEL:=$(shell echo "$(LINUX_VERSION)" | cut -d. -f2)
+
+define Build/Compile
+ $(MAKE) -C $(LINUX_DIR) \
+ ARCH="$(LINUX_KARCH)" \
+ CROSS_COMPILE="$(TARGET_CROSS)" \
+ PATCHLEVEL="$(LINUX_PATCHLEVEL)" \
+ KERNDIR="$(LINUX_DIR)" \
+ SUBDIRS="$(PKG_BUILD_DIR)/src" \
+ modules
+endef
+
+$(eval $(call KernelPackage,ocf-ubsec-ssb))