Skip to contentSkip to conversation

Missing host dependency for 3.10 kernel?

meta-fsl-arm New Gary Thomas 3 participants 5 messages Apr 3, 2014

lore
Share & tools
lore
#0 lore raw

I just tried to build the 3.10+ kernel for my SabreLite board
and got this error:
LZO arch/arm/boot/compressed/piggy.lzo
/bin/sh: lzop: command not found
make[2]: *** [arch/arm/boot/compressed/piggy.lzo] Error 1
make[2]: *** Waiting for unfinished jobs....
CC arch/arm/boot/compressed/misc.o
make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2
make: *** [uImage] Error 2
ERROR: oe_runmake failed
WARNING: /home/local/imx6_2014-04-02/tmp/work/nitrogen6x-amltd-linux-gnueabi/linux-boundary/3.10.17-r0/temp/run.do_compile.17300:1 exit 1 from
exit 1
ERROR: Function failed: do_compile (log file is located at /home/local/imx6_2014-04-02/tmp/work/nitrogen6x-amltd-linux-gnueabi/linux-boundary/3.10.17-r0/temp/log.do_compile.17300)

It seems that the 'lzop' program (a new one on me) is not installed on any of my build hosts.

Shouldn't this be handled by the Yocto build system using either a sanity requirement or native package to provide the tool?

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#1 lore raw

Hi,

Looks to me like there's an lzop recipe which "supports" native as well [1], so we could probably add a DEPENDS += "lzop-native" to linux-boundary 3.10 to avoid adding the dependency to the host OS.

[1] - http://cgit.openembedded.org/cgit.cgi/openembedded-core/tree/meta/recipes-support/lzop/lzop_1.03.bb?h=master

Cheers,
Erik

Quoted 30 lines · Gary Thomas

I just tried to build the 3.10+ kernel for my SabreLite board
and got this error:
LZO arch/arm/boot/compressed/piggy.lzo
/bin/sh: lzop: command not found
make[2]: *** [arch/arm/boot/compressed/piggy.lzo] Error 1
make[2]: *** Waiting for unfinished jobs....
CC arch/arm/boot/compressed/misc.o
make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2
make: *** [uImage] Error 2
ERROR: oe_runmake failed
WARNING: /home/local/imx6_2014-04-02/tmp/work/nitrogen6x-amltd-linux-gnueabi/linux-boundary/3.10.17-r0/temp/run.do_compile.17300:1 exit 1 from
exit 1
ERROR: Function failed: do_compile (log file is located at /home/local/imx6_2014-04-02/tmp/work/nitrogen6x-amltd-linux-gnueabi/linux-boundary/3.10.17-r0/temp/log.do_compile.17300)

It seems that the 'lzop' program (a new one on me) is not installed on any of my build hosts.

Shouldn't this be handled by the Yocto build system using either a sanity requirement or native package to provide the tool?

--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

#2 lore raw

PATCH 1/1 linux-boundary: Add DEPENDS on lzop

Kernel version 3.10 requires lzop to build.

Fix suggested by Erik Bot� <[email protected]>

---
 recipes-kernel/linux/linux-boundary_3.10.17.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-kernel/linux/linux-boundary_3.10.17.bb +1 -1
index 1fc7901..d301147 100644
@@ -12,6 +12,6 @@ SRC_URI = "git://github.com/boundarydevices/linux-imx6.git;branch=${SRCBRANCH} \
 LOCALVERSION = "-1.0.0_beta+yocto"
 SRCBRANCH = "boundary-imx_3.10.17_1.0.0_beta"
 SRCREV = "92608435c09eef1b111d6b704d016bcc769c55ca"
-
+DEPENDS += "lzop-native "
 COMPATIBLE_MACHINE = "(mx6)"
 COMPATIBLE_MACHINE = "(nitrogen6x|nitrogen6x-lite)"
Signature · 1 line
1.8.3.2
#3 lore raw
In reply to Erik Botö
Quoted 8 lines · Erik Botö

Hi,

Looks to me like there's an lzop recipe which "supports" native as well [1], so we could probably add a DEPENDS += "lzop-native" to linux-boundary 3.10 to avoid adding the dependency to the host OS.

[1] - http://cgit.openembedded.org/cgit.cgi/openembedded-core/tree/meta/recipes-support/lzop/lzop_1.03.bb?h=master

Thanks Erik,

I just sent a patch for this, though I wonder if other 3.10 kernels will be similarly affected.

#4 lore raw
Quoted 7 lines · Eric Nelson
Quoted 6 lines · Erik Botö

Hi,

Looks to me like there's an lzop recipe which "supports" native as well [1], so we could probably add a DEPENDS += "lzop-native" to linux-boundary 3.10 to avoid adding the dependency to the host OS.

Quoted 7 lines
Quoted 2 lines

[1] - http://cgit.openembedded.org/cgit.cgi/openembedded-core/tree/meta/recipes-support/lzop/lzop_1.03.bb?h=master

Thanks Erik,

I just sent a patch for this, though I wonder if other 3.10 kernels will be similarly affected.

Just tested this on a machine without lzop - works fine. You can add my Tested-By if you'd like.

Thanks for the swift action. I agree that other recent (3.10+) kernel recipes may need this as well, at least ones that boot compressed kernel images (arm, powerpc, mips)

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------