547c239874eb60bb19d3c1a3115b82c5e9e47d1c
[AGL/meta-agl.git] / meta-agl-core / recipes-kernel / linux / linux-agl.inc
1 # Include file intended for kernel.bbclass based recipes that do not
2 # have their own config fragment merging scheme.
3
4 DEPENDS += "kern-tools-native"
5
6 include linux-agl-config.inc
7
8 # returns all the elements from the src uri that are .cfg files
9 def find_cfgs(d):
10     sources=src_patches(d, True)
11     sources_list=[]
12     for s in sources:
13         if s.endswith('.cfg'):
14             sources_list.append(s)
15
16     return sources_list
17
18 do_configure_append () {
19     if [ -n "${AGL_KCONFIG_FRAGMENTS}" ]; then
20         [ ! -f .config ] && cp -a ${WORKDIR}/defconfig .config
21         merge_config.sh -m .config ${@" ".join(find_cfgs(d))}
22         yes '' | make oldconfig
23     fi
24 }