From c1343b3278cdf99533b7902744d15969f9d6fdc1 Mon Sep 17 00:00:00 2001 From: Yves-Alexis Perez Date: Wed, 2 Jan 2013 14:18:20 +0100 Subject: Imported Upstream version 5.0.1 --- Android.mk | 57 ++++++++++++++++++++++----------------------------------- 1 file changed, 22 insertions(+), 35 deletions(-) (limited to 'Android.mk') diff --git a/Android.mk b/Android.mk index 59d27775a..663b363cf 100644 --- a/Android.mk +++ b/Android.mk @@ -5,56 +5,43 @@ include $(CLEAR_VARS) # to PRODUCT_PACKAGES in # build/target/product/core.mk # possible executables are -# starter - allows to control and configure the daemons from the command line -# charon - the IKEv2 daemon -# pluto - the IKEv1 daemon +# starter - allows to control and configure the daemon from the command line +# charon - the IKE daemon +# scepclient - SCEP client -# if you enable starter and/or pluto (see above) uncomment the proper lines here +# if you enable starter or scepclient (see above) uncomment the proper +# lines here # strongswan_BUILD_STARTER := true -# strongswan_BUILD_PLUTO := true +# strongswan_BUILD_SCEPCLIENT := true # this is the list of plugins that are built into libstrongswan and charon # also these plugins are loaded by default (if not changed in strongswan.conf) -strongswan_CHARON_PLUGINS := openssl fips-prf random pubkey pkcs1 \ - pem xcbc hmac kernel-netlink socket-default android \ - stroke eap-identity eap-mschapv2 eap-md5 +strongswan_CHARON_PLUGINS := android-log openssl fips-prf random nonce pubkey \ + pkcs1 pkcs8 pem xcbc hmac kernel-netlink socket-default android \ + stroke eap-identity eap-mschapv2 eap-md5 eap-gtc -ifneq ($(strongswan_BUILD_PLUTO),) -# if both daemons are enabled we use raw sockets in charon -strongswan_CHARON_PLUGINS := $(subst socket-default,socket-raw, \ - $(strongswan_CHARON_PLUGINS)) -# plugins loaded by pluto -strongswan_PLUTO_PLUGINS := openssl fips-prf random pubkey pkcs1 \ - pem xcbc hmac kernel-netlink xauth +ifneq ($(strongswan_BUILD_SCEPCLIENT),) +# plugins loaded by scepclient +strongswan_SCEPCLIENT_PLUGINS := openssl curl fips-prf random pkcs1 pem endif strongswan_STARTER_PLUGINS := kernel-netlink # list of all plugins - used to enable them with the function below strongswan_PLUGINS := $(sort $(strongswan_CHARON_PLUGINS) \ - $(strongswan_PLUTO_PLUGINS) \ - $(strongswan_STARTER_PLUGINS)) + $(strongswan_STARTER_PLUGINS) \ + $(strongswan_SCEPCLIENT_PLUGINS)) -# helper macros to only add source files for plugins included in the list above -# source files are relative to the android.mk that called the macro -plugin_enabled = $(findstring $(1), $(strongswan_PLUGINS)) -add_plugin = $(if $(call plugin_enabled,$(1)), \ - $(patsubst $(LOCAL_PATH)/%,%, \ - $(wildcard \ - $(subst %,$(subst -,_,$(strip $(1))), \ - $(LOCAL_PATH)/plugins/%/%*.c \ - ) \ - ) \ - ) \ - ) +include $(LOCAL_PATH)/Android.common.mk # includes strongswan_PATH := $(LOCAL_PATH) libvstr_PATH := external/strongswan-support/vstr/include +libcurl_PATH := external/strongswan-support/libcurl/include libgmp_PATH := external/strongswan-support/gmp +openssl_PATH := external/openssl/include # some definitions -strongswan_VERSION := "4.6.4" strongswan_DIR := "/system/bin" strongswan_SBINDIR := "/system/bin" strongswan_PIDDIR := "/data/misc/vpn" @@ -84,9 +71,12 @@ strongswan_CFLAGS := \ -DOPENSSL_NO_ECDSA \ -DOPENSSL_NO_ECDH \ -DOPENSSL_NO_ENGINE \ + -DCONFIG_H_INCLUDED \ -DCAPABILITIES \ -DCAPABILITIES_NATIVE \ -DMONOLITHIC \ + -DUSE_IKEV1 \ + -DUSE_IKEV2 \ -DUSE_VSTR \ -DDEBUG \ -DROUTING_TABLE=0 \ @@ -114,17 +104,14 @@ strongswan_BUILD := \ ifneq ($(strongswan_BUILD_STARTER),) strongswan_BUILD += \ - libfreeswan \ starter \ stroke \ ipsec endif -ifneq ($(strongswan_BUILD_PLUTO),) +ifneq ($(strongswan_BUILD_SCEPCLIENT),) strongswan_BUILD += \ - libfreeswan \ - pluto \ - whack + scepclient endif include $(addprefix $(LOCAL_PATH)/src/,$(addsuffix /Android.mk, \ -- cgit v1.2.3