[package] update loop-aes to 3.2h (#6277)
[openwrt/svn-archive/archive.git] / utils / loop-aes / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=loop-aes
12 PKG_VERSION:=3.2h
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=loop-AES-v$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
17 PKG_MD5SUM:=060bec1ae3c5ba98d63c7d64d906faaf
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/loop-AES-v$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define KernelPackage/loop-aes
24 SUBMENU:=Cryptographic API modules
25 DEPENDS:=@!PACKAGE_kmod-loop
26 TITLE:=loopback module with built-in AES
27 FILES:=$(PKG_BUILD_DIR)/loop.$(LINUX_KMOD_SUFFIX)
28 AUTOLOAD:=$(call AutoLoad,30,loop)
29 URL:=http://loop-aes.sourceforge.net
30 endef
31
32 define KernelPackage/loop-aes/description
33 This package provides loadable Linux kernel module (loop.o or loop.ko on 2.6
34 kernels) that has AES cipher built-in. The AES cipher can be used to encrypt
35 local file systems and disk partitions.
36 endef
37
38 define Build/Compile
39 $(MAKE) -C $(PKG_BUILD_DIR) \
40 ARCH="$(LINUX_KARCH)" \
41 CROSS_COMPILE="$(TARGET_CROSS)" \
42 CC="$(TARGET_CC)" \
43 CPP="$(TARGET_CC)" \
44 LD="$(TARGET_CROSS)ld" \
45 LINUX_SOURCE="$(LINUX_DIR)" \
46 KR="$(LINUX_DIR)" \
47 MODINST="n" \
48 all
49 endef
50
51 $(eval $(call KernelPackage,loop-aes))