From 125eb6f390b4882778f1a5179dca5f78675e19e5 Mon Sep 17 00:00:00 2001 From: Tom Zanussi Date: Wed, 12 Dec 2012 22:56:35 -0600 Subject: yocto-bsp: add replace_file() Add a function that can be used to replace a template file by a user-specified file. The initial use of this capability is to allow users-specified defconfigs. (From meta-yocto rev: b52a22d40d4701a9515490bdd31c8d0341fb12bc) Signed-off-by: Tom Zanussi Signed-off-by: Richard Purdie --- .../{{ if kernel_choice == \"custom\": }} linux-yocto-custom/defconfig" | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts/lib/bsp/substrate') diff --git "a/scripts/lib/bsp/substrate/target/arch/common/recipes-kernel/linux/{{ if kernel_choice == \"custom\": }} linux-yocto-custom/defconfig" "b/scripts/lib/bsp/substrate/target/arch/common/recipes-kernel/linux/{{ if kernel_choice == \"custom\": }} linux-yocto-custom/defconfig" index c2745c5e1e..e544a0a4a5 100644 --- "a/scripts/lib/bsp/substrate/target/arch/common/recipes-kernel/linux/{{ if kernel_choice == \"custom\": }} linux-yocto-custom/defconfig" +++ "b/scripts/lib/bsp/substrate/target/arch/common/recipes-kernel/linux/{{ if kernel_choice == \"custom\": }} linux-yocto-custom/defconfig" @@ -2,3 +2,4 @@ # Placeholder for custom default kernel configuration. yocto-bsp will # replace this file with a user-specified defconfig. # +{{ if custom_kernel_defconfig: replace_file(current_file, custom_kernel_defconfig) }} -- cgit v1.2.3-54-g00ecf