summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-support/beecrypt/beecrypt/add-option-dev-dsp.patch34
-rw-r--r--meta/recipes-support/beecrypt/beecrypt_4.2.1.bb1
2 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-support/beecrypt/beecrypt/add-option-dev-dsp.patch b/meta/recipes-support/beecrypt/beecrypt/add-option-dev-dsp.patch
new file mode 100644
index 0000000000..b3298ce2db
--- /dev/null
+++ b/meta/recipes-support/beecrypt/beecrypt/add-option-dev-dsp.patch
@@ -0,0 +1,34 @@
1Add config option --with-dev-dsp.
2
3Upstream-Status: Pending
4
5Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com>
6---
7--- a/configure.ac
8+++ b/configure.ac
9@@ -106,6 +106,16 @@ AC_ARG_WITH(python,[ --with-python[[=AR
10 fi
11 ])
12
13+AC_ARG_WITH(dev-dsp,[ --with-dev-dsp enables dev/dsp for entropy producing. auto for auto-detecting dev/dep on host. [[default=no]]],[
14+ if test "$withval" = yes; then
15+ AC_DEFINE([HAVE_DEV_DSP], 1)
16+ else
17+ if test "$withval" = auto; then
18+ ac_detect_dev_dsp=yes
19+ fi
20+ fi
21+ ],[ac_detect_dev_dsp=no])
22+
23 # Check for expert mode
24 if test "$ac_enable_expert_mode" = yes; then
25 BEE_EXPERT_MODE
26@@ -464,7 +474,7 @@ linux*)
27 ac_cv_have_dev_dsp=no
28 fi
29 ])
30- if test "$ac_cv_have_dev_dsp" = yes; then
31+ if test "$ac_cv_have_dev_dsp" = yes && test "$ac_detect_dev_dsp" = yes; then
32 AC_DEFINE([HAVE_DEV_DSP], 1)
33 fi
34 ;;
diff --git a/meta/recipes-support/beecrypt/beecrypt_4.2.1.bb b/meta/recipes-support/beecrypt/beecrypt_4.2.1.bb
index 209b92e653..1e626f154c 100644
--- a/meta/recipes-support/beecrypt/beecrypt_4.2.1.bb
+++ b/meta/recipes-support/beecrypt/beecrypt_4.2.1.bb
@@ -11,6 +11,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/beecrypt/beecrypt-${PV}.tar.gz \
11 file://fix-for-gcc-4.7.patch \ 11 file://fix-for-gcc-4.7.patch \
12 file://run-ptest \ 12 file://run-ptest \
13 file://beecrypt-enable-ptest-support.patch \ 13 file://beecrypt-enable-ptest-support.patch \
14 file://add-option-dev-dsp.patch \
14 " 15 "
15 16
16SRC_URI[md5sum] = "8441c014170823f2dff97e33df55af1e" 17SRC_URI[md5sum] = "8441c014170823f2dff97e33df55af1e"