diff mbox series

[isar-cip-core] linux-cip-common: Add files directory to FILESEXTRAPATHS

Message ID 20210113212505.15175-1-Vijaikumar_Kanagarajan@mentor.com (mailing list archive)
State Accepted
Delegated to: Nobuhiro Iwamatsu
Headers show
Series [isar-cip-core] linux-cip-common: Add files directory to FILESEXTRAPATHS | expand

Commit Message

Vijai Kumar K Jan. 13, 2021, 9:25 p.m. UTC
Add recipes-kernel/linux/files directory to searchpath.

Files like preempt-rt.cfg are not accesible when you use
the linux-cip-rt-common.inc file in linux recipes defined
in other layers.
This makes the linux-cip-rt-common.inc file unusable in
other layers.

Fix that by adding recipes-kernel/linux/files to
FILESEXTRAPATHS.

Signed-off-by: Vijai Kumar K <Vijaikumar_Kanagarajan@mentor.com>
---
 recipes-kernel/linux/linux-cip-common.inc | 2 ++
 1 file changed, 2 insertions(+)

Comments

Jan Kiszka Jan. 14, 2021, 6:06 a.m. UTC | #1
On 13.01.21 22:25, Kanagarajan, Vijaikumar wrote:
> Add recipes-kernel/linux/files directory to searchpath.
> 
> Files like preempt-rt.cfg are not accesible when you use
> the linux-cip-rt-common.inc file in linux recipes defined
> in other layers.
> This makes the linux-cip-rt-common.inc file unusable in
> other layers.
> 
> Fix that by adding recipes-kernel/linux/files to
> FILESEXTRAPATHS.
> 
> Signed-off-by: Vijai Kumar K <Vijaikumar_Kanagarajan@mentor.com>
> ---
>  recipes-kernel/linux/linux-cip-common.inc | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/recipes-kernel/linux/linux-cip-common.inc b/recipes-kernel/linux/linux-cip-common.inc
> index 6db1d1d..f35168f 100644
> --- a/recipes-kernel/linux/linux-cip-common.inc
> +++ b/recipes-kernel/linux/linux-cip-common.inc
> @@ -9,6 +9,8 @@
>  # SPDX-License-Identifier: MIT
>  #
>  
> +FILESEXTRAPATHS_prepend := "${FILE_DIRNAME}/files:"
> +
>  KERNEL_DEFCONFIG ?= "${MACHINE}_defconfig"
>  
>  def conditional(variable, checkvalue, truevalue, falsevalue, d):
> 
> 
> 

Thanks, applied.

Jan
diff mbox series

Patch

diff --git a/recipes-kernel/linux/linux-cip-common.inc b/recipes-kernel/linux/linux-cip-common.inc
index 6db1d1d..f35168f 100644
--- a/recipes-kernel/linux/linux-cip-common.inc
+++ b/recipes-kernel/linux/linux-cip-common.inc
@@ -9,6 +9,8 @@ 
 # SPDX-License-Identifier: MIT
 #
 
+FILESEXTRAPATHS_prepend := "${FILE_DIRNAME}/files:"
+
 KERNEL_DEFCONFIG ?= "${MACHINE}_defconfig"
 
 def conditional(variable, checkvalue, truevalue, falsevalue, d):