summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel-yocto.bbclass
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2011-05-07 00:08:30 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-10 09:56:21 +0100
commit5aa69f20f20de072e6ed51d7642cb6096c2c03d4 (patch)
treed813934ebade0ae0ea957e5c834fae05fd53969c /meta/classes/kernel-yocto.bbclass
parentb4dcf0d1382762260883885682b57c96ca805f45 (diff)
downloadpoky-5aa69f20f20de072e6ed51d7642cb6096c2c03d4.tar.gz
linux-yocto: error if meta data not present
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. (From OE-Core rev: adf9f92e2f8f6cc3deba72a194ded85e160ad9e3) Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel-yocto.bbclass')
-rw-r--r--meta/classes/kernel-yocto.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass
index ffc0b4c6ee..818a07e219 100644
--- a/meta/classes/kernel-yocto.bbclass
+++ b/meta/classes/kernel-yocto.bbclass
@@ -13,7 +13,10 @@ do_patch() {
13 fi 13 fi
14 14
15 # simply ensures that a branch of the right name has been created 15 # simply ensures that a branch of the right name has been created
16 createme ${ARCH} ${kbranch} ${defconfig} 16 if [ -n "${YOCTO_KERNEL_META_DATA}" ]; then
17 createme_flags="--disable-meta-gen"
18 fi
19 createme ${createme_flags} ${ARCH} ${kbranch} ${defconfig}
17 if [ $? -ne 0 ]; then 20 if [ $? -ne 0 ]; then
18 echo "ERROR. Could not create ${kbranch}" 21 echo "ERROR. Could not create ${kbranch}"
19 exit 1 22 exit 1