linux-yocto: add bc-native and linux-yocto-dependency
cover linux-yocto: add bc-native and linux-yocto-dependency
Richard/Saul,
As reported by Martin Jansa, 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.
I didn't go so far as to add the dependency to the base kernel bbclass, since not all kernels will be of the right version to trigger this dependency, but we can consider doing that in the future.
I'm not packaging/native tool expert, but I think I added bc-native properly, and it worked here. But obviously, correct me if I'm wrong.
Cheers,
Bruce
The following changes since commit dcc23c073ef936eccecdc16f973492f41c44def7:
kern-tools: fix patch series to git tree validation (2013-08-26 13:57:20 -0400)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib zedd/kernel-bc
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=zedd/kernel-bc
Bruce Ashfield (2):
bc: add bc-native
linux-yocto: add bc-native dependency, and move to linux-yocto.inc
meta/recipes-extended/bc/bc_1.06.bb | 2 ++ meta/recipes-kernel/linux/linux-yocto-tiny_3.10.bb | 3 --- meta/recipes-kernel/linux/linux-yocto.inc | 2 ++ 3 files changed, 4 insertions(+), 3 deletions(-)
Signature · 1 line
1.7.10.4
PATCH 1/2 bc: add bc-native
To support the building of recent kernels in minimal environments, we should provide bc-native.
--- meta/recipes-extended/bc/bc_1.06.bb | 2 ++ 1 file changed, 2 insertions(+)
meta/recipes-extended/bc/bc_1.06.bb +2 -0
@@ -23,3 +23,5 @@ inherit autotools update-alternatives ALTERNATIVE_${PN} = "dc" ALTERNATIVE_PRIORITY = "100" + +BBCLASSEXTEND = "native"
Signature · 1 line
1.7.10.4
PATCH 2/2 linux-yocto: add bc-native dependency, and move to linux-yocto.inc
In reply to Bruce AshfieldAs reported by Martin Jansa <[email protected]>, 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.
--- 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(-)
meta/recipes-kernel/linux/linux-yocto-tiny_3.10.bb +0 -3
@@ -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"
meta/recipes-kernel/linux/linux-yocto.inc +2 -0
@@ -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
Signature · 1 line
1.7.10.4
Quoted 15 lines · Bruce Ashfield
Richard/Saul,
As reported by Martin Jansa, 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.
Quoted 6 lines
I didn't go so far as to add the dependency to the base kernel bbclass, since not all kernels will be of the right version to trigger this dependency, but we can consider doing that in the future.
I'm not packaging/native tool expert, but I think I added bc-native properly, and it worked here. But obviously, correct me if I'm wrong.
I've used the same change for bc yesterday to build it, so:
Quoted 27 lines
Cheers,
Bruce
The following changes since commit
dcc23c073ef936eccecdc16f973492f41c44def7:kern-tools: fix patch series to git tree validation (2013-08-26 13:57:20 -0400)
are available in the git repository at:
git://git.pokylinux.org/poky-contribzedd/kernel-bc
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=zedd/kernel-bcBruce Ashfield (2):
bc: add bc-native
linux-yocto: add bc-native dependency, and move to linux-yocto.incmeta/recipes-extended/bc/bc_1.06.bb | 2 ++ meta/recipes-kernel/linux/linux-yocto-tiny_3.10.bb | 3 --- meta/recipes-kernel/linux/linux-yocto.inc | 2 ++ 3 files changed, 4 insertions(+), 3 deletions(-)Signature · 1 line
1.7.10.4
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]