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 <tom.zanussi@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Tom Zanussi
2012-12-12 22:56:35 -06:00
committed by Richard Purdie
parent 205872b7b8
commit 125eb6f390
3 changed files with 17 additions and 4 deletions

View File

@@ -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) }}