diff options
author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2011-05-07 00:08:30 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-10 09:56:21 +0100 |
commit | 5aa69f20f20de072e6ed51d7642cb6096c2c03d4 (patch) | |
tree | d813934ebade0ae0ea957e5c834fae05fd53969c | |
parent | b4dcf0d1382762260883885682b57c96ca805f45 (diff) | |
download | poky-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>
-rw-r--r-- | meta/classes/kernel-yocto.bbclass | 5 | ||||
-rw-r--r-- | meta/recipes-kernel/kern-tools/kern-tools-native_git.bb | 2 | ||||
-rw-r--r-- | meta/recipes-kernel/linux/linux-yocto_git.bb | 4 |
3 files changed, 8 insertions, 3 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 |
diff --git a/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb b/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb index 820765e8a2..c808e175f0 100644 --- a/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb +++ b/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb | |||
@@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://git/tools/kgit;beginline=5;endline=9;md5=e2bf4415f3d8 | |||
4 | 4 | ||
5 | DEPENDS = "git-native guilt-native" | 5 | DEPENDS = "git-native guilt-native" |
6 | 6 | ||
7 | SRCREV = "c5896a60acc61f8966cfee3bb241ff564610cea4" | 7 | SRCREV = "ab49d8e48b7e66d1b4f924385d65d062d25e44f7" |
8 | PR = r10 | 8 | PR = r10 |
9 | PV = "0.1+git${SRCPV}" | 9 | PV = "0.1+git${SRCPV}" |
10 | 10 | ||
diff --git a/meta/recipes-kernel/linux/linux-yocto_git.bb b/meta/recipes-kernel/linux/linux-yocto_git.bb index d4f2ecee63..f54033d57f 100644 --- a/meta/recipes-kernel/linux/linux-yocto_git.bb +++ b/meta/recipes-kernel/linux/linux-yocto_git.bb | |||
@@ -22,7 +22,7 @@ SRCREV_machine_qemux86-64 = "b906f358fd404a1e74a961f25079274e0d933ee1" | |||
22 | SRCREV_machine = "b906f358fd404a1e74a961f25079274e0d933ee1" | 22 | SRCREV_machine = "b906f358fd404a1e74a961f25079274e0d933ee1" |
23 | SRCREV_meta = "ecab1e2bc12a8b0c4d064a00acc3260f6e8528c5" | 23 | SRCREV_meta = "ecab1e2bc12a8b0c4d064a00acc3260f6e8528c5" |
24 | 24 | ||
25 | PR = "r17" | 25 | PR = "r18" |
26 | PV = "${LINUX_VERSION}+git${SRCPV}" | 26 | PV = "${LINUX_VERSION}+git${SRCPV}" |
27 | SRCREV_FORMAT = "meta_machine" | 27 | SRCREV_FORMAT = "meta_machine" |
28 | 28 | ||
@@ -36,6 +36,8 @@ KERNEL_FEATURES="features/netfilter" | |||
36 | KERNEL_FEATURES_append_qemux86=" cfg/sound" | 36 | KERNEL_FEATURES_append_qemux86=" cfg/sound" |
37 | KERNEL_FEATURES_append_qemux86-64=" cfg/sound" | 37 | KERNEL_FEATURES_append_qemux86-64=" cfg/sound" |
38 | 38 | ||
39 | YOCTO_KERNEL_META_DATA=t | ||
40 | |||
39 | # extra tasks | 41 | # extra tasks |
40 | addtask kernel_link_vmlinux after do_compile before do_install | 42 | addtask kernel_link_vmlinux after do_compile before do_install |
41 | addtask validate_branches before do_patch after do_kernel_checkout | 43 | addtask validate_branches before do_patch after do_kernel_checkout |