Skip to content
Snippets Groups Projects
Commit f7d3356e authored by Ken Zhu's avatar Ken Zhu
Browse files

openswan: compile kmod-openwan when kmod-crypto-ocf present


if kmod-crypto-ocf is not available, disable klips either.

Change-Id: Ib8830b8db1c1dd93fde60e2adc81615cd21427f1
Signed-off-by: default avatarKen Zhu <guigenz@codeaurora.org>
parent 5104f041
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ $(call Package/openswan/Default)
SECTION:=net
CATEGORY:=Network
TITLE+= (daemon)
DEPENDS+= +libgmp +kmod-openswan
DEPENDS+= +libgmp +PACKAGE_kmod-crypto-ocf:kmod-openswan
endef
define Package/openswan/description
......@@ -47,7 +47,7 @@ define KernelPackage/openswan
$(call Package/openswan/Default)
SUBMENU:=Network Support
TITLE+= (kernel module)
DEPENDS:=+kmod-crypto-ocf
DEPENDS:=+PACKAGE_kmod-crypto-ocf:kmod-crypto-ocf
FILES:=$(PKG_BUILD_DIR)/modobj*/ipsec.$(LINUX_KMOD_SUFFIX)
endef
......@@ -74,7 +74,9 @@ OPENSWAN_MAKEFLAGS:= \
define Build/Compile
+$(MAKE) $(PKG_JOBS) $(OPENSWAN_MAKEFLAGS) programs
ifeq ($(CONFIG_PACKAGE_kmod-crypto-ocf),y)
+$(MAKE) $(PKG_JOBS) $(OPENSWAN_MAKEFLAGS) module
endif
endef
define Build/Install
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment