]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel-yocto: don't require meta branch for custom repos
authorBruce Ashfield <bruce.ashfield@windriver.com>
Wed, 22 Aug 2012 04:42:05 +0000 (00:42 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 25 Aug 2012 13:44:01 +0000 (14:44 +0100)
The commit a9f11849 [linux-yocto: explicitly export KMETA to scripts]
allows the meta branch name to be changed by exporting it to all
phases of the build.

But if a custom kernel without a meta branch is built, we end up
passing an empty string to the creation scripts, which breaks the
build since input is expected.

Inhibiting the export of KMETA to the creation scripts when empty
fixes the problem.

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

index 43280937784dcde66831c33be42762139c813b2b..3dcc8b52dda7596f6ac420642d597bcb3020d5cf 100644 (file)
@@ -61,9 +61,10 @@ do_patch() {
        # if we have a defined/set meta branch we should not be generating
        # any meta data. The passed branch has what we need.
        if [ -n "${KMETA}" ]; then
-               createme_flags="--disable-meta-gen"
+               createme_flags="--disable-meta-gen --meta ${KMETA}"
        fi
-       createme ${createme_flags} --meta ${KMETA} ${ARCH} ${kbranch}
+
+       createme ${createme_flags} ${ARCH} ${kbranch}
        if [ $? -ne 0 ]; then
                echo "ERROR. Could not create ${kbranch}"
                exit 1