diff options
| author | Kai Kang <kai.kang@windriver.com> | 2014-10-29 19:16:07 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-11-12 15:38:30 +0000 |
| commit | 507947a2b075ac12775d5212512755d6c9f239c7 (patch) | |
| tree | 437090128ca2686e349e0c0835f3ce4df1d6e3b1 | |
| parent | c0dafd310156f8765fd06bf3076acddd6f4db270 (diff) | |
| download | poky-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>
| -rw-r--r-- | meta/recipes-support/beecrypt/beecrypt/add-option-dev-dsp.patch | 34 | ||||
| -rw-r--r-- | meta/recipes-support/beecrypt/beecrypt_4.2.1.bb | 1 |
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 @@ | |||
| 1 | Add config option --with-dev-dsp. | ||
| 2 | |||
| 3 | Upstream-Status: Pending | ||
| 4 | |||
| 5 | Signed-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 | ||
| 16 | SRC_URI[md5sum] = "8441c014170823f2dff97e33df55af1e" | 17 | SRC_URI[md5sum] = "8441c014170823f2dff97e33df55af1e" |
