All of lore.kernel.org
 help / color / mirror / Atom feed
From: <kai.kang@windriver.com>
To: <openembedded-devel@lists.openembedded.org>
Subject: [meta-oe][PATCH 03/10] hostapd: disable configs depends on des if openssl not support
Date: Wed, 5 Jul 2017 16:11:26 +0800	[thread overview]
Message-ID: <20170705081133.6496-4-kai.kang@windriver.com> (raw)
In-Reply-To: <20170705081133.6496-1-kai.kang@windriver.com>

From: Kai Kang <kai.kang@windriver.com>

Distro feature 'openssl-no-weak-ciphers' is introduced to disable
openssl weak ciphers support which include des. Check the distro feature
to disable hostapd configs which depend on des.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
 meta-oe/recipes-connectivity/hostapd/hostapd_2.6.bb | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/meta-oe/recipes-connectivity/hostapd/hostapd_2.6.bb b/meta-oe/recipes-connectivity/hostapd/hostapd_2.6.bb
index 3b74f48..4a7275d 100644
--- a/meta-oe/recipes-connectivity/hostapd/hostapd_2.6.bb
+++ b/meta-oe/recipes-connectivity/hostapd/hostapd_2.6.bb
@@ -26,6 +26,22 @@ do_configure() {
 }
 
 do_compile() {
+    COMMENT="# Disable configs depend on DES"
+    if ${@bb.utils.contains('DISTRO_FEATURES', 'openssl-no-weak-ciphers', 'true', 'false', d)} \
+        && ! grep -q "$COMMENT" ${B}/.config; then
+        echo >> ${B}/.config
+        echo "$COMMENT" >> ${B}/.config
+        for config in CONFIG_EAP_MSCHAPV2 CONFIG_EAP_PEAP CONFIG_EAP_IKEV2 \
+                    CONFIG_EAP_TLS CONFIG_EAP_UNAUTH_TLS CONFIG_EAP_TTLS \
+                    CONFIG_EAP_FAST CONFIG_INTERNAL_LIBTOMMATH; do
+            sed -i -e "s/^$config=.*/#&/" ${B}/.config
+            echo "$config=n" >>${B}/.config
+        done
+
+        sed -i 's/^CONFIG_TLS=.*/#&/' ${B}/.config
+        echo 'CONFIG_TLS=internal' >>${B}/.config
+    fi
+
     export CFLAGS="-MMD -O2 -Wall -g -I${STAGING_INCDIR}/libnl3"
     make
 }
-- 
2.10.1



  parent reply	other threads:[~2017-07-05  8:19 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-05  8:11 [PATCH 00/10] Fix compile errors if distro feature openssl-no-weak-ciphers exists kai.kang
2017-07-05  8:11 ` [PATCH 01/10] Set packages conflict with distro feature openssl-no-weak-ciphers kai.kang
2017-07-05  8:11 ` [meta-networking][PATCH 02/10] net-snmp: disable des for openssl-no-weak-ciphers kai.kang
2017-07-05  8:11 ` kai.kang [this message]
2017-07-05  8:11 ` [meta-oe][PATCH 04/10] krb5: toggle configure option pkinit kai.kang
2017-07-05  8:11 ` [meta-oe][PATCH 05/10] libp11: fix compile error if OPENSSL_NO_EC defined kai.kang
2017-07-05  8:11 ` [meta-oe][PATCH 06/10] opensc: add PACKAGECONFIG openssl kai.kang
2017-07-05 16:59   ` Peter Kjellerstedt
2017-07-06  0:50     ` Kang Kai
2017-07-05  8:11 ` [meta-networking][PATCH 07/10] uftp: set NO_EC if openssl not support ec kai.kang
2017-07-05  8:11 ` [meta-networking][PATCH 08/10] stunnel: fix compile error when openssl disable des support kai.kang
2017-07-05  8:11 ` [meta-oe][PATCH 09/10] poco: disable package configs NetSSL and Crypto kai.kang
2017-07-05  8:11 ` [meta-oe][PATCH 10/10] postgresql: configure without openssl if openssl disable weak ciphers kai.kang
2017-07-06 15:30 ` [PATCH 00/10] Fix compile errors if distro feature openssl-no-weak-ciphers exists Burton, Ross
2017-07-07  0:48   ` Kang Kai
2017-07-07  1:40     ` Andre McCurdy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170705081133.6496-4-kai.kang@windriver.com \
    --to=kai.kang@windriver.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.