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