]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel-yocto: make SRC_URI defconfig removal more specific
authorBruce Ashfield <bruce.ashfield@windriver.com>
Tue, 23 Jan 2018 19:44:45 +0000 (14:44 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 27 Jan 2018 13:21:58 +0000 (13:21 +0000)
commit 7e98c295c1bb511e [kernel-yocto: ensure that only a single
defconfig is processed] has an overly broad replacement strategy
for 'defconfig' and hence will chop up any fragment name that
happens to contain that string.

If we change the processing to split on whitespace and drop
any full work 'defconfig' fragments, we'll get the behaviour
we want (no duplicate defconfigs, but fragments with defconfig
in their name are fine).

[YOCTO #12487]

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
meta/classes/kernel-yocto.bbclass

index 60979a218f12abf6efda3b9803c4737fc4b5d4d0..663c6557d9b550d3fc2947f637c2339d7b08dfd3 100644 (file)
@@ -128,7 +128,7 @@ do_kernel_metadata() {
        # the KBUILD_DEFCONFIG processing above ?
        if [ -n "$sccs" ]; then
            # we did have a defconfig from above. remove any that might be in the src_uri
-           sccs_from_src_uri=$(echo $sccs_from_src_uri | sed 's/defconfig//g')
+           sccs_from_src_uri=$(echo $sccs_from_src_uri | awk '{ if ($0!="defconfig") { print $0 } }' RS=' ')
        fi
        sccs="$sccs $sccs_from_src_uri"