[yocto] [OE-core] fix '[[: not found' error message using dash

Bruce Ashfield bruce.ashfield at windriver.com
Mon Jan 12 06:11:59 PST 2015


Not bad for a first patch submission! Just two little things to change.

#1, this should go to the oe-core mailing list 
(openembedded-core at lists.openembedded.org),
and not the yocto one. It definitely is not always obvious at the
beginning which list to use for what!

On 15-01-12 08:42 AM, Vincent Génieux wrote:
> This is a fix for https://bugzilla.yoctoproject.org/show_bug.cgi?id=7112

You can replace the bug reference with:

[YOCTO: #7112]

Bruce

> bash specific syntax '[[ test ]]' replaced with '[ test ]'.
>
> Signed-off-by: Vincent Génieux <vincent2014 at startigen.fr>
> ---
>   meta/classes/kernel.bbclass |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> index 70ed95b..2a6ec34 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -403,7 +403,7 @@ do_strip() {
>   			  gawk '{print $1}'`
>
>   		for str in ${KERNEL_IMAGE_STRIP_EXTRA_SECTIONS}; do {
> -			if [[ "$headers" != *"$str"* ]]; then
> +			if [ "$headers" != *"$str"* ]; then
>   				bbwarn "Section not found: $str";
>   			fi
>
>




More information about the yocto mailing list