BASH: Adding features that can not be automatically detected while cross-compiling
PATCH 1/1 BASH: Adding features that can not be automatically detected while cross-compiling
From: Arkady Gilinsky <[email protected]>
Date: Sat, 14 Jan 2012 11:27:11 +0200
Subject: [PATCH] BASH: Adding features that can not be automatically detected
while cross-compiling
There are some bash features that can not be detected automatically during configure stage while cross-compiling. This commit add ability to force support of such a features.
--- package/bash/Config.in | 33 +++++++++++++++++++++++++++++++++ package/bash/bash.mk | 6 +++++- 2 files changed, 38 insertions(+), 1 deletions(-)
package/bash/Config.in +33 -0
@@ -5,3 +5,36 @@ config BR2_PACKAGE_BASH The standard GNU Bourne again shell. http://tiswww.case.edu/php/chet/bash/bashtop.html + +menu "BASH cross compile features selection" + depends on BR2_PACKAGE_BASH + +config BR2_PACKAGE_BASH_JOB_CONTROL + bool "job_control" + depends on BR2_PACKAGE_BASH + help + The job control feature (Ctrl-Z and etc.) + Configure variable - bash_cv_job_control_missing + +config BR2_PACKAGE_BASH_NAMED_PIPES + bool "named_pipes" + depends on BR2_PACKAGE_BASH + help + Named pipe presence + Configure variable - bash_cv_sys_named_pipes + +config BR2_PACKAGE_BASH_SIG_SET_JUMP + bool "sigsetjmp" + depends on BR2_PACKAGE_BASH + help + POSIX-style sigsetjmp/siglongjmp + Configure variable - bash_cv_func_sigsetjmp + +config BR2_PACKAGE_BASH_PRINTF_A_FORMAT + bool "printf_a_format" + depends on BR2_PACKAGE_BASH + help + Printf floating point output in hex notation + Configure variable - bash_cv_printf_a_format + +endmenu
package/bash/bash.mk +3 -1
@@ -7,7 +7,11 @@ BASH_VERSION = 4.2 BASH_SITE = $(BR2_GNU_MIRROR)/bash BASH_DEPENDENCIES = ncurses -BASH_CONF_ENV = bash_cv_job_control_missing=no +BASH_CONF_ENV += \ + bash_cv_job_control_missing=$(if
$(BR2_PACKAGE_BASH_JOB_CONTROL),present,no) \
+ $(if $(BR2_PACKAGE_BASH_NAMED_PIPES),
bash_cv_sys_named_pipes=present,) \
+ $(if $(BR2_PACKAGE_BASH_SIG_SET_JUMP),
bash_cv_func_sigsetjmp=present,) \
+ $(if $(BR2_PACKAGE_BASH_PRINTF_A_FORMAT), bash_cv_printf_a_format=yes,)
# Make sure we build after busybox so that /bin/sh links to bash ifeq ($(BR2_PACKAGE_BUSYBOX),y)
Signature · 10 lines
1.7.7 -- Best regards Arkady Gilinsky -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120115/bd3d6787/attachment.html>
PATCH 1/1 BASH: Adding features that can not be automatically detected while cross-compiling
Quoted 6 lines · Arkady Gilinsky
From: Arkady Gilinsky <[email protected]>
Date: Sat, 14 Jan 2012 11:27:11 +0200
Subject: [PATCH] BASH: Adding features that can not be automatically detected
while cross-compiling
A note on your post -
When you write the post in HTML and then rely on your e-mail client to create a plain-text version, the usual result is garbage-text, unusable by the patch program.
Please author your post as plain text to begin with.
This mailing list prefers a plain-text file (makes it easier to review, both now and in the archives).
If using an e-mail client that you can't control enough to ensure a plain-text post, at least attach the plain-text file.
Mike
Quoted 77 lines
There are some bash features that can not be detected automatically during configure stage while cross-compiling. This commit add ability to force support of such a features.
Signed-off-by Arkady Gilinsky <[email protected]>--- package/bash/Config.in | 33 +++++++++++++++++++++++++++++++++ package/bash/bash.mk | 6 +++++- 2 files changed, 38 insertions(+), 1 deletions(-)package/bash/Config.in +33
-0@@ -5,3 +5,36 @@ config BR2_PACKAGE_BASH The standard GNU Bourne again shell. http://tiswww.case.edu/php/chet/bash/bashtop.html + +menu "BASH cross compile features selection" + depends on BR2_PACKAGE_BASH + +config BR2_PACKAGE_BASH_JOB_CONTROL + bool "job_control" + depends on BR2_PACKAGE_BASH + help + The job control feature (Ctrl-Z and etc.) + Configure variable - bash_cv_job_control_missing + +config BR2_PACKAGE_BASH_NAMED_PIPES + bool "named_pipes" + depends on BR2_PACKAGE_BASH + help + Named pipe presence + Configure variable - bash_cv_sys_named_pipes + +config BR2_PACKAGE_BASH_SIG_SET_JUMP + bool "sigsetjmp" + depends on BR2_PACKAGE_BASH + help + POSIX-style sigsetjmp/siglongjmp + Configure variable - bash_cv_func_sigsetjmp + +config BR2_PACKAGE_BASH_PRINTF_A_FORMAT + bool "printf_a_format" + depends on BR2_PACKAGE_BASH + help + Printf floating point output in hex notation + Configure variable - bash_cv_printf_a_format + +endmenupackage/bash/bash.mk +6
-1@@ -7,7 +7,11 @@ BASH_VERSION = 4.2 BASH_SITE = $(BR2_GNU_MIRROR)/bash BASH_DEPENDENCIES = ncurses -BASH_CONF_ENV = bash_cv_job_control_missing=no +BASH_CONF_ENV += \ + bash_cv_job_control_missing=$(if $(BR2_PACKAGE_BASH_JOB_CONTROL),present,no) \ + $(if $(BR2_PACKAGE_BASH_NAMED_PIPES), bash_cv_sys_named_pipes=present,) \ + $(if $(BR2_PACKAGE_BASH_SIG_SET_JUMP), bash_cv_func_sigsetjmp=present,) \ + $(if $(BR2_PACKAGE_BASH_PRINTF_A_FORMAT), bash_cv_printf_a_format=yes,) # Make sure we build after busybox so that /bin/sh links to bash ifeq ($(BR2_PACKAGE_BUSYBOX),y)Signature · 1 line
1.7.7