* [PATCH 0/2] linux-yocto: add bc-native and linux-yocto-dependency
@ 2013-08-26 22:00 Bruce Ashfield
2013-08-26 22:00 ` [PATCH 1/2] bc: add bc-native Bruce Ashfield
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Bruce Ashfield @ 2013-08-26 22:00 UTC (permalink / raw)
To: richard.purdie; +Cc: openembedded-core
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(-)
--
1.7.10.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] bc: add bc-native
2013-08-26 22:00 [PATCH 0/2] linux-yocto: add bc-native and linux-yocto-dependency Bruce Ashfield
@ 2013-08-26 22:00 ` Bruce Ashfield
2013-08-26 22:00 ` [PATCH 2/2] linux-yocto: add bc-native dependency, and move to linux-yocto.inc Bruce Ashfield
2013-08-27 7:56 ` [PATCH 0/2] linux-yocto: add bc-native and linux-yocto-dependency Martin Jansa
2 siblings, 0 replies; 4+ messages in thread
From: Bruce Ashfield @ 2013-08-26 22:00 UTC (permalink / raw)
To: richard.purdie; +Cc: openembedded-core
To support the building of recent kernels in minimal environments, we should
provide bc-native.
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
---
meta/recipes-extended/bc/bc_1.06.bb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta/recipes-extended/bc/bc_1.06.bb b/meta/recipes-extended/bc/bc_1.06.bb
index 4b28fad..7c33f75 100644
--- a/meta/recipes-extended/bc/bc_1.06.bb
+++ b/meta/recipes-extended/bc/bc_1.06.bb
@@ -23,3 +23,5 @@ inherit autotools update-alternatives
ALTERNATIVE_${PN} = "dc"
ALTERNATIVE_PRIORITY = "100"
+
+BBCLASSEXTEND = "native"
--
1.7.10.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] linux-yocto: add bc-native dependency, and move to linux-yocto.inc
2013-08-26 22:00 [PATCH 0/2] linux-yocto: add bc-native and linux-yocto-dependency Bruce Ashfield
2013-08-26 22:00 ` [PATCH 1/2] bc: add bc-native Bruce Ashfield
@ 2013-08-26 22:00 ` Bruce Ashfield
2013-08-27 7:56 ` [PATCH 0/2] linux-yocto: add bc-native and linux-yocto-dependency Martin Jansa
2 siblings, 0 replies; 4+ messages in thread
From: Bruce Ashfield @ 2013-08-26 22:00 UTC (permalink / raw)
To: richard.purdie; +Cc: openembedded-core
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(-)
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
--
1.7.10.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] linux-yocto: add bc-native and linux-yocto-dependency
2013-08-26 22:00 [PATCH 0/2] linux-yocto: add bc-native and linux-yocto-dependency Bruce Ashfield
2013-08-26 22:00 ` [PATCH 1/2] bc: add bc-native Bruce Ashfield
2013-08-26 22:00 ` [PATCH 2/2] linux-yocto: add bc-native dependency, and move to linux-yocto.inc Bruce Ashfield
@ 2013-08-27 7:56 ` Martin Jansa
2 siblings, 0 replies; 4+ messages in thread
From: Martin Jansa @ 2013-08-27 7:56 UTC (permalink / raw)
To: Bruce Ashfield; +Cc: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 1969 bytes --]
On Mon, Aug 26, 2013 at 06:00:11PM -0400, Bruce Ashfield wrote:
> 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.
I've used the same change for bc yesterday to build it, so:
Acked-by: Martin Jansa <Martin.Jansa@gmail.com>
>
> 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(-)
>
> --
> 1.7.10.4
>
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-08-27 7:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-26 22:00 [PATCH 0/2] linux-yocto: add bc-native and linux-yocto-dependency Bruce Ashfield
2013-08-26 22:00 ` [PATCH 1/2] bc: add bc-native Bruce Ashfield
2013-08-26 22:00 ` [PATCH 2/2] linux-yocto: add bc-native dependency, and move to linux-yocto.inc Bruce Ashfield
2013-08-27 7:56 ` [PATCH 0/2] linux-yocto: add bc-native and linux-yocto-dependency Martin Jansa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox