Missing host dependency for 3.10 kernel?
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 ------------------------------------------------------------
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.
Cheers,
Erik
Quoted 30 lines · Gary Thomas
I just tried to build the 3.10+ kernel for my SabreLite board
and got this error:
LZOarch/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....
CCarch/arm/boot/compressed/misc.o
make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2
make: *** [uImage] Error 2
ERROR:oe_runmakefailed
WARNING:/home/local/imx6_2014-04-02/tmp/work/nitrogen6x-amltd-linux-gnueabi/linux-boundary/3.10.17-r0/temp/run.do_compile.17300:1exit 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
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
@@ -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
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.
Thanks Erik,
I just sent a patch for this, though I wonder if other 3.10 kernels will be similarly affected.
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
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 ------------------------------------------------------------