packages: fix parallel build by adding + for every make command that passes the jobserver
[openwrt/svn-archive/archive.git] / utils / loop-aes / Makefile
1 #
2 # Copyright (C) 2007-2011 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.6e
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:=b8bf83f3d21a6ad1ea49ac30f9ec130d
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/loop-AES-v$(PKG_VERSION)
20 PKG_BUILD_PARALLEL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define KernelPackage/loop-aes
25 SUBMENU:=Cryptographic API modules
26 DEPENDS:=@!PACKAGE_kmod-loop
27 TITLE:=loopback module with built-in AES
28 FILES:=$(PKG_BUILD_DIR)/loop.$(LINUX_KMOD_SUFFIX)
29 AUTOLOAD:=$(call AutoLoad,30,loop)
30 URL:=http://loop-aes.sourceforge.net
31 endef
32
33 define KernelPackage/loop-aes/description
34 This package provides loadable Linux kernel module (loop.o or loop.ko on 2.6
35 kernels) that has AES cipher built-in. The AES cipher can be used to encrypt
36 local file systems and disk partitions.
37 endef
38
39 define Build/Compile
40 +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
41 ARCH="$(LINUX_KARCH)" \
42 CROSS_COMPILE="$(TARGET_CROSS)" \
43 CC="$(TARGET_CC)" \
44 CPP="$(TARGET_CC)" \
45 LD="$(TARGET_CROSS)ld" \
46 LINUX_SOURCE="$(LINUX_DIR)" \
47 KR="$(LINUX_DIR)" \
48 MODINST="n" \
49 all
50 endef
51
52 $(eval $(call KernelPackage,loop-aes))