blob: 881847d04571cd58bb701f7402e908ec1aa84bf2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#
# This include file implements the merging of *.cfg files from the SRC_URI for
# the Kernel.
#
# returns all the elements from the src uri that are .cfg files
def find_config_fragments(d):
sources=src_patches(d, True)
sources_list=[]
for s in sources:
if s.endswith('.cfg'):
sources_list.append(s)
return sources_list
kernel_do_configure_prepend() {
# Find all ".cfg" files and merge them together into a .config
CFG_FILES="${@" ".join(find_config_fragments(d))}"
if [ ! -z "$CFG_FILES" ]; then
${S}/scripts/kconfig/merge_config.sh -m $CFG_FILES
fi
}
|