summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/beecrypt/beecrypt
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2014-10-29 19:16:07 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-11-12 15:38:30 +0000
commit507947a2b075ac12775d5212512755d6c9f239c7 (patch)
tree437090128ca2686e349e0c0835f3ce4df1d6e3b1 /meta/recipes-support/beecrypt/beecrypt
parentc0dafd310156f8765fd06bf3076acddd6f4db270 (diff)
downloadpoky-507947a2b075ac12775d5212512755d6c9f239c7.tar.gz
beecrypt: add option --with-dev-dsp
Add this configure option for developer to control if the /dev/dsp should be used on target. Instead of judging it based on the very device file of build server. (From OE-Core rev: 5960262802c394cb6a54ede30e4994929621ca06) Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com> Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/beecrypt/beecrypt')
-rw-r--r--meta/recipes-support/beecrypt/beecrypt/add-option-dev-dsp.patch34
1 files changed, 34 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 ;;