diff mbox

[1/5] kernel: Dont overwrite all postfuncs. append.

Message ID e39fe472ad011295374c2d733f368224dd11f1e3.1388738733.git.christian.braunersorensen@prevas.dk
State Accepted
Delegated to: Esben Haabendal
Headers show

Commit Message

christian.braunersorensen@prevas.dk Jan. 3, 2014, 8:46 a.m. UTC
From: Christian Sørensen <christian.braunersorensen@prevas.dk>

---
 classes/kernel.oeclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Esben Haabendal Jan. 3, 2014, 10:27 a.m. UTC | #1
<christian.braunersorensen@prevas.dk> writes:

> From: Christian Sørensen <christian.braunersorensen@prevas.dk>
>
> ---
>  classes/kernel.oeclass | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/classes/kernel.oeclass b/classes/kernel.oeclass
> index 9ab7756..5c45599 100644
> --- a/classes/kernel.oeclass
> +++ b/classes/kernel.oeclass
> @@ -146,7 +146,7 @@ do_compile_kernel () {
>  	fi
>  }
>  
> -do_compile[postfuncs] = "${KERNEL_COMPILE_POSTFUNCS}"
> +do_compile[postfuncs] =+ "${KERNEL_COMPILE_POSTFUNCS}"

As discussed, I will commit with this prepend operator '=+' to an append
operator '+=', as there are no specific reason to use prepend vs. append
(and we should aim at using the more common operator when possible).

>  KERNEL_COMPILE_POSTFUNCS = ""
>  do_compile () {
>  	do_compile_kernel

Merging to master with the above modification.

/Esben
diff mbox

Patch

diff --git a/classes/kernel.oeclass b/classes/kernel.oeclass
index 9ab7756..5c45599 100644
--- a/classes/kernel.oeclass
+++ b/classes/kernel.oeclass
@@ -146,7 +146,7 @@  do_compile_kernel () {
 	fi
 }
 
-do_compile[postfuncs] = "${KERNEL_COMPILE_POSTFUNCS}"
+do_compile[postfuncs] =+ "${KERNEL_COMPILE_POSTFUNCS}"
 KERNEL_COMPILE_POSTFUNCS = ""
 do_compile () {
 	do_compile_kernel