]> code.ossystems Code Review - openembedded-core.git/commitdiff
linux-yocto: error if meta data not present
authorBruce Ashfield <bruce.ashfield@windriver.com>
Sat, 7 May 2011 04:08:30 +0000 (00:08 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 10 May 2011 08:51:55 +0000 (09:51 +0100)
There are valid reasons to build repositories without meta
data present and there are times when this is an error. This
change adds sanity tests to the build process to detect missing
meta data and throw an informative error message.

Sanity checking is only triggered from recipes (linux-yocto)
that always require meta data to be present. Other recipes
are not impacted and can auto-generate meta data as required.

Without this change the build process suceeds, but incorrect
meta data will be used (with no user knowledge), which is not
the desired behaviour.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
meta/classes/kernel-yocto.bbclass
meta/recipes-kernel/kern-tools/kern-tools-native_git.bb
meta/recipes-kernel/linux/linux-yocto_git.bb

index ffc0b4c6ee7e0ab297a813d68ee485f183b277d5..818a07e21923d31652f4cc20a99eb51c084d1e15 100644 (file)
@@ -13,7 +13,10 @@ do_patch() {
        fi
 
        # simply ensures that a branch of the right name has been created
-       createme ${ARCH} ${kbranch} ${defconfig}
+       if [ -n "${YOCTO_KERNEL_META_DATA}" ]; then
+               createme_flags="--disable-meta-gen"
+       fi
+       createme ${createme_flags} ${ARCH} ${kbranch} ${defconfig}
        if [ $? -ne 0 ]; then
                echo "ERROR. Could not create ${kbranch}"
                exit 1
index 820765e8a2e4caa6a2a22e43f8cab3404b2ef0f9..c808e175f01d51c86a1a559d4fa066813255a7db 100644 (file)
@@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://git/tools/kgit;beginline=5;endline=9;md5=e2bf4415f3d8
 
 DEPENDS = "git-native guilt-native"
 
-SRCREV = "c5896a60acc61f8966cfee3bb241ff564610cea4"
+SRCREV = "ab49d8e48b7e66d1b4f924385d65d062d25e44f7"
 PR = r10
 PV = "0.1+git${SRCPV}"
 
index d4f2ecee63fd1c00f69a3e7b9d2753b5d9ddd7ff..f54033d57f12c50dbbc5945de1fd156a23cedf8a 100644 (file)
@@ -22,7 +22,7 @@ SRCREV_machine_qemux86-64 = "b906f358fd404a1e74a961f25079274e0d933ee1"
 SRCREV_machine = "b906f358fd404a1e74a961f25079274e0d933ee1"
 SRCREV_meta = "ecab1e2bc12a8b0c4d064a00acc3260f6e8528c5"
 
-PR = "r17"
+PR = "r18"
 PV = "${LINUX_VERSION}+git${SRCPV}"
 SRCREV_FORMAT = "meta_machine"
 
@@ -36,6 +36,8 @@ KERNEL_FEATURES="features/netfilter"
 KERNEL_FEATURES_append_qemux86=" cfg/sound"
 KERNEL_FEATURES_append_qemux86-64=" cfg/sound"
 
+YOCTO_KERNEL_META_DATA=t
+
 # extra tasks
 addtask kernel_link_vmlinux after do_compile before do_install
 addtask validate_branches before do_patch after do_kernel_checkout