[poky] kernel do_install copy error
Gerard van den Bosch
gerard at de-haardt.com
Thu Dec 1 01:30:03 PST 2011
Hello,
I have some problems with the do_install of a vendor kernel on the
Edison release. I used the same kernel recipe as in the very old Laverne
release that I last build several months ago.
It gave the following error during the do_install routine of the kernel:
+ cp -fR COPYING CREDITS Documentation Kbuild MAINTAINERS Makefile
Module.symvers README REPORTING-BUGS System.map arch block crypto
defconfig drivers firmware fs headerstash image include init ipc kernel
lib mm modules.order net pseudo samples scripts security sound temp
tools usr virt vmlinux vmlinux.o
/home/gerard/poky-edison-6.0/build/tmp/work/tao3530-poky-linux-gnueabi/tao-psp-2.6.32-r1/image/kernel
cp: cannot copy a directory, `image', into itself,
`/home/gerard/poky-edison-6.0/build/tmp/work/tao3530-poky-linux-gnueabi/tao-psp-2.6.32-r1/image/kernel/image'
Looked in the kernel.bbclass where this happened and the error seemed
originating from this command:
151 cp -fR * $kerneldir
Found this was changed in this commit:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/meta/classes/kernel.bbclass?id=3b49416fc7a7ee9bfe722f2e6089aa18df41dc58
First try I have reverted from "#Take care of arch specific headers" to
"#Clean and remove files....".
But then the oe_runmake stuff after that gave errors:
make[3]: *** [silentoldconfig] Error 1
make[2]: *** [silentoldconfig] Error 2
CLEAN arch/arm/kernel
scripts/Makefile.clean:17:
/home/gerard/poky-edison-6.0/build/tmp/work/tao3530-poky-linux-gnueabi/tao-psp-2.6.32-r1/image/kernel/block/Makefile:
No such file or directory
make[1]: *** No rule to make target
`/home/gerard/poky-edison-6.0/build/tmp/work/tao3530-poky-linux-gnueabi/tao-psp-2.6.32-r1/image/kernel/block/Makefile'.
Stop.
make: *** [_clean_block] Error 2
make: Leaving directory `/hom
arch/arm/Kconfig:192: can't open file "init/Kconfig"
make[3]: *** [silentoldconfig] Error 1
make[2]: *** [silentoldconfig] Error 2
CLEAN arch/arm/kernel
scripts/Makefile.clean:17:
/home/gerard/poky-edison-6.0/build/tmp/work/tao3530-poky-linux-gnueabi/tao-psp-2.6.32-r1/image/kernel/block/Makefile:
No such file or directory
make[1]: *** No rule to make target
`/home/gerard/poky-edison-6.0/build/tmp/work/tao3530-poky-linux-gnueabi/tao-psp-2.6.32-r1/image/kernel/block/Makefile'.
Stop.
make: *** [_clean_block] Error 2
e/gerard/poky-edison-6.0/build/tmp/work/tao3530-poky-linux-gnueabi/tao-psp-2.6.32-r1/image/kernel'
+ die 'oe_runmake failed'
+ bbfatal 'oe_runmake failed'
+ echo 'ERROR: oe_runmake failed'
ERROR: oe_runmake failed
+ exit 1
make: Leaving directory
`/home/gerard/poky-edison-6.0/build/tmp/work/tao3530-poky-linux-gnueabi/tao-psp-2.6.32-r1/image/kernel'
+ die 'oe_runmake failed'
+ bbfatal 'oe_runmake failed'
+ echo 'ERROR: oe_runmake failed'
ERROR: oe_runmake failed
+ exit 1
When I commented the 4 lines from oe_runmake the do_install succeeded.
I have made a pastebin of my kernel recipe here:
http://pastebin.com/vh3C0jzb
Are there problems with my recipe or are there other things going wrong?
Regards,
Gerard
More information about the poky
mailing list