Patchwork [2/2] linux-yocto: add bc-native dependency, and move to linux-yocto.inc

login
register
mail settings
Submitter Bruce Ashfield
Date Aug. 26, 2013, 10 p.m.
Message ID <03c92c2afe5f84ce0fc46c08834437993c93e216.1377554229.git.bruce.ashfield@windriver.com>
Download mbox | patch
Permalink /patch/56667/
State Accepted
Commit c888857b060f04b8689f393ec2d77a950da40f5a
Headers show

Comments

Bruce Ashfield - Aug. 26, 2013, 10 p.m.
As reported by Martin Jansa <martin.jansa@gmail.com>, the following error happens
when building in a minimal environment:

   |   BC      kernel/timeconst.h
   | /bin/sh: bc: command not found
   | make[3]: *** [kernel/timeconst.h] Error 127
   | make[2]: *** [kernel] Error 2
   | make[2]: *** Waiting for unfinished jobs....

kernel commit 70730bca [kernel: Replace timeconst.pl with a bc script] added
a kernel dependency on bc. To support the build of linux-yocto recipes in
these configurations, we add bc-native to the common dependencies.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
---
 meta/recipes-kernel/linux/linux-yocto-tiny_3.10.bb |    3 ---
 meta/recipes-kernel/linux/linux-yocto.inc          |    2 ++
 2 files changed, 2 insertions(+), 3 deletions(-)

Patch

diff --git a/meta/recipes-kernel/linux/linux-yocto-tiny_3.10.bb b/meta/recipes-kernel/linux/linux-yocto-tiny_3.10.bb
index 1c2ad37..2a30b82 100644
--- a/meta/recipes-kernel/linux/linux-yocto-tiny_3.10.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-tiny_3.10.bb
@@ -1,8 +1,5 @@ 
 require recipes-kernel/linux/linux-yocto.inc
 
-# We need lzma (as CONFIG_KERNEL_LZMA=y)
-DEPENDS += "xz-native"
-
 KBRANCH_DEFAULT = "standard/tiny/base"
 KBRANCH = "${KBRANCH_DEFAULT}"
 LINUX_KERNEL_TYPE = "tiny"
diff --git a/meta/recipes-kernel/linux/linux-yocto.inc b/meta/recipes-kernel/linux/linux-yocto.inc
index 973970d..2bee042 100644
--- a/meta/recipes-kernel/linux/linux-yocto.inc
+++ b/meta/recipes-kernel/linux/linux-yocto.inc
@@ -6,6 +6,8 @@  LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
 
 INC_PR = "r4"
 
+DEPENDS += "xz-native bc-native"
+
 # A KMACHINE is the mapping of a yocto $MACHINE to what is built
 # by the kernel. This is typically the branch that should be built,
 # and it can be specific to the machine or shared