Patchwork beecrypt: add config option --with-dev-dsp

login
register
mail settings
Submitter zhangxiao
Date Aug. 26, 2014, 2:07 a.m.
Message ID <1409018848-4649-1-git-send-email-xiao.zhang@windriver.com>
Download mbox | patch
Permalink /patch/78947/
State Not Applicable, archived
Headers show

Comments

zhangxiao - Aug. 26, 2014, 2:07 a.m.
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.

Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com>
---
 .../beecrypt/beecrypt/add-option-dev-dsp.patch     | 34 ++++++++++++++++++++++
 meta/recipes-support/beecrypt/beecrypt_4.2.1.bb    |  1 +
 2 files changed, 35 insertions(+)
 create mode 100644 meta/recipes-support/beecrypt/beecrypt/add-option-dev-dsp.patch
Martin Jansa - Aug. 27, 2014, 10:52 a.m.
On Tue, Aug 26, 2014 at 10:07:28AM +0800, Zhang Xiao wrote:
> 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.

wrong ML.. belongs to oe-core

> 
> Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com>
> ---
>  .../beecrypt/beecrypt/add-option-dev-dsp.patch     | 34 ++++++++++++++++++++++
>  meta/recipes-support/beecrypt/beecrypt_4.2.1.bb    |  1 +
>  2 files changed, 35 insertions(+)
>  create mode 100644 meta/recipes-support/beecrypt/beecrypt/add-option-dev-dsp.patch
> 
> 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 0000000..83b6f7a
> --- /dev/null
> +++ b/meta/recipes-support/beecrypt/beecrypt/add-option-dev-dsp.patch
> @@ -0,0 +1,34 @@
> +Upstream-Status: Pending
> +
> +---
> + configure.ac |   12 +++++++++++-
> + 1 file changed, 11 insertions(+), 1 deletion(-)
> +
> +--- a/configure.ac
> ++++ b/configure.ac
> +@@ -106,6 +106,16 @@ AC_ARG_WITH(python,[  --with-python[[=AR
> +   fi
> +   ])
> + 
> ++AC_ARG_WITH(dev-dsp,[  --with-dev-dsp          enables dev/dsp for entropy producing. auto for auto-detecting dev/dep on host. [[default=no]]],[
> ++  if test "$withval" = yes; then
> ++    AC_DEFINE([HAVE_DEV_DSP], 1)
> ++  else
> ++    if test "$withval" = auto;  then
> ++      ac_detect_dev_dsp=yes
> ++    fi
> ++  fi
> ++  ],[ac_detect_dev_dsp=no])
> ++
> + # Check for expert mode
> + if test "$ac_enable_expert_mode" = yes; then
> +   BEE_EXPERT_MODE
> +@@ -464,7 +474,7 @@ linux*)
> +       ac_cv_have_dev_dsp=no
> +     fi
> +     ])
> +-  if test "$ac_cv_have_dev_dsp" = yes; then
> ++  if test "$ac_cv_have_dev_dsp" = yes && test "$ac_detect_dev_dsp" = yes; then
> +     AC_DEFINE([HAVE_DEV_DSP], 1)
> +   fi
> +   ;;
> diff --git a/meta/recipes-support/beecrypt/beecrypt_4.2.1.bb b/meta/recipes-support/beecrypt/beecrypt_4.2.1.bb
> index 209b92e..1e626f1 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 \
>             file://fix-for-gcc-4.7.patch \
>             file://run-ptest \
>             file://beecrypt-enable-ptest-support.patch \
> +           file://add-option-dev-dsp.patch \
>            "
>  
>  SRC_URI[md5sum] = "8441c014170823f2dff97e33df55af1e"
> -- 
> 1.8.5.2.233.g932f7e4
> 
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Patch

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 0000000..83b6f7a
--- /dev/null
+++ b/meta/recipes-support/beecrypt/beecrypt/add-option-dev-dsp.patch
@@ -0,0 +1,34 @@ 
+Upstream-Status: Pending
+
+---
+ configure.ac |   12 +++++++++++-
+ 1 file changed, 11 insertions(+), 1 deletion(-)
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -106,6 +106,16 @@ AC_ARG_WITH(python,[  --with-python[[=AR
+   fi
+   ])
+ 
++AC_ARG_WITH(dev-dsp,[  --with-dev-dsp          enables dev/dsp for entropy producing. auto for auto-detecting dev/dep on host. [[default=no]]],[
++  if test "$withval" = yes; then
++    AC_DEFINE([HAVE_DEV_DSP], 1)
++  else
++    if test "$withval" = auto;  then
++      ac_detect_dev_dsp=yes
++    fi
++  fi
++  ],[ac_detect_dev_dsp=no])
++
+ # Check for expert mode
+ if test "$ac_enable_expert_mode" = yes; then
+   BEE_EXPERT_MODE
+@@ -464,7 +474,7 @@ linux*)
+       ac_cv_have_dev_dsp=no
+     fi
+     ])
+-  if test "$ac_cv_have_dev_dsp" = yes; then
++  if test "$ac_cv_have_dev_dsp" = yes && test "$ac_detect_dev_dsp" = yes; then
+     AC_DEFINE([HAVE_DEV_DSP], 1)
+   fi
+   ;;
diff --git a/meta/recipes-support/beecrypt/beecrypt_4.2.1.bb b/meta/recipes-support/beecrypt/beecrypt_4.2.1.bb
index 209b92e..1e626f1 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 \
            file://fix-for-gcc-4.7.patch \
            file://run-ptest \
            file://beecrypt-enable-ptest-support.patch \
+           file://add-option-dev-dsp.patch \
           "
 
 SRC_URI[md5sum] = "8441c014170823f2dff97e33df55af1e"