Re: [yocto] yocto-custom-kernel issue
On 15-02-03 07:40 AM, Raghavendra Kakarla wrote: Hi, I want to add BSP layer for my mechine and I should take the our own customized kernel source(our kernel source). For that I add the BSP layer and wrote the recipe for that. My recipe is as follows: *** # This file was derived from the linux-yocto-custom.bb recipe in # oe-core. # # linux-yocto-custom.bb: # # A yocto-bsp-generated kernel recipe that uses the linux-yocto and # oe-core kernel classes to apply a subset of yocto kernel # management to git managed kernel repositories. # # Warning: # # Building this kernel without providing a defconfig or BSP # configuration will result in build or boot errors. This is not a # bug. # # Notes: # # patches: patches can be merged into to the source git tree itself, #added via the SRC_URI, or controlled via a BSP #configuration. # # example configuration addition: #SRC_URI += "file://smp.cfg" # example patch addition: #SRC_URI += "file://0/home/testuser/yocto.git/android-linux-mti-unif-3.10.14/arch/mips/configs001-linux-version-tweak.patch # example feature addition: #SRC_URI += "file://feature.scc" # inherit kernel require recipes-kernel/linux/linux-yocto.inc SRC_URI = "git://192.168.42.75/vineethchowdhary/incdhad1-kernel-3-10.git;protocol=http;bareclone=1" SRC_URI += "file://defconfig" SRC_URI += "file://mydhanush.scc \ file://mydhanush.cfg \ file://mydhanush-user-config.cfg \ file://mydhanush-user-patches.scc \ " LINUX_VERSION ?= "3.10.14" LINUX_VERSION_EXTENSION ?= "-custom" #SRCREV="12bbf6468e2ef179800aaab46c724f523b5002e3" SRCREV="f91e563c45d457aa441f687eda294ad899e2b25f" PR = "r0" PV = "${LINUX_VERSION}+git${SRCPV}" #COMPATIBLE_MACHINE_mydhanush = "mydhanush" COMPATIBLE_MACHINE_mydhanush = "mydhanush" *** but I got error as follows: Log data follows: | DEBUG: Executing shell function do_kernel_checkout | ERROR: S is not set to the linux source directory. Check | ERROR: the recipe and set S to the proper extracted subdirectory | WARNING: exit code 1 from a shell command. | ERROR: Function failed: do_kernel_checkout (log file is located at /home/testuser/poky/build/tmp/work/mydhanush-poky-linux/linux-yocto-custom/3.10.14+gitAUTOINC+f91e563c45-r0/temp/log.do_kernel_checkout.11798) could you please help for resolving this issue. And if dump the bitbake environment for your kernel build, what is S set to ? And when you go to that same directory on your build machine, what do you see ? The checkout code is telling you that it doesn't see a Makefile in the source directory, so where ever it is pointing isn't valid. Cheers, Bruce Thanks and Regards, Raghavendra. -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] yocto-custom-kernel issue
Hi Raghavendra, Am 03.02.2015 um 13:40 schrieb Raghavendra Kakarla: > Hi, > I want to add BSP layer for my mechine and I should take the our own > customized kernel source(our kernel source). > > For that I add the BSP layer and wrote the recipe for that. > > My recipe is as follows: > > *** > > # This file was derived from the linux-yocto-custom.bb recipe in > # oe-core. > # > # linux-yocto-custom.bb: > # > # A yocto-bsp-generated kernel recipe that uses the linux-yocto and > # oe-core kernel classes to apply a subset of yocto kernel > # management to git managed kernel repositories. > # > # Warning: > # > # Building this kernel without providing a defconfig or BSP > # configuration will result in build or boot errors. This is not a > # bug. > # > # Notes: > # > # patches: patches can be merged into to the source git tree itself, > #added via the SRC_URI, or controlled via a BSP > #configuration. > # > # example configuration addition: > #SRC_URI += "file://smp.cfg" > # example patch addition: > #SRC_URI += > "file://0/home/testuser/yocto.git/android-linux-mti-unif-3.10.14/arch/mips/configs001-linux-version-tweak.patch > # example feature addition: > #SRC_URI += "file://feature.scc" > # > inherit kernel > require recipes-kernel/linux/linux-yocto.inc > > SRC_URI = > "git://192.168.42.75/vineethchowdhary/incdhad1-kernel-3-10.git;protocol=http;bareclone=1" Why are you doing a bareclone?? Shouldn't it do a checkout to have a working copy that it can compile? > > SRC_URI += "file://defconfig" > > SRC_URI += "file://mydhanush.scc \ > file://mydhanush.cfg \ > file://mydhanush-user-config.cfg \ > file://mydhanush-user-patches.scc \ >" > > > LINUX_VERSION ?= "3.10.14" > LINUX_VERSION_EXTENSION ?= "-custom" > > #SRCREV="12bbf6468e2ef179800aaab46c724f523b5002e3" > SRCREV="f91e563c45d457aa441f687eda294ad899e2b25f" > PR = "r0" > PV = "${LINUX_VERSION}+git${SRCPV}" > > #COMPATIBLE_MACHINE_mydhanush = "mydhanush" > COMPATIBLE_MACHINE_mydhanush = "mydhanush" > > *** > > > but I got error as follows: > > Log data follows: > | DEBUG: Executing shell function do_kernel_checkout > | ERROR: S is not set to the linux source directory. Check > | ERROR: the recipe and set S to the proper extracted subdirectory This states, that it doesn't find the source directory where it is expected. If "bareclone=1" has the effect I think it has, this is normal as there will probably only be a bare git repository insted of it's working copy. > | WARNING: exit code 1 from a shell command. > | ERROR: Function failed: do_kernel_checkout (log file is located at > /home/testuser/poky/build/tmp/work/mydhanush-poky-linux/linux-yocto-custom/3.10.14+gitAUTOINC+f91e563c45-r0/temp/log.do_kernel_checkout.11798) > > could you please help for resolving this issue. > > Thanks and Regards, > > Raghavendra. > Cheers, Sven -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] yocto-custom-kernel issue
Hi, I want to add BSP layer for my mechine and I should take the our own customized kernel source(our kernel source). For that I add the BSP layer and wrote the recipe for that. My recipe is as follows: *** # This file was derived from the linux-yocto-custom.bb recipe in # oe-core. # # linux-yocto-custom.bb: # # A yocto-bsp-generated kernel recipe that uses the linux-yocto and # oe-core kernel classes to apply a subset of yocto kernel # management to git managed kernel repositories. # # Warning: # # Building this kernel without providing a defconfig or BSP # configuration will result in build or boot errors. This is not a # bug. # # Notes: # # patches: patches can be merged into to the source git tree itself, #added via the SRC_URI, or controlled via a BSP #configuration. # # example configuration addition: #SRC_URI += "file://smp.cfg" # example patch addition: #SRC_URI += "file://0/home/testuser/yocto.git/android-linux-mti-unif-3.10.14/arch/mips/configs001-linux-version-tweak.patch # example feature addition: #SRC_URI += "file://feature.scc" # inherit kernel require recipes-kernel/linux/linux-yocto.inc SRC_URI = "git://192.168.42.75/vineethchowdhary/incdhad1-kernel-3-10.git;protocol=http;bareclone=1" SRC_URI += "file://defconfig" SRC_URI += "file://mydhanush.scc \ file://mydhanush.cfg \ file://mydhanush-user-config.cfg \ file://mydhanush-user-patches.scc \ " LINUX_VERSION ?= "3.10.14" LINUX_VERSION_EXTENSION ?= "-custom" #SRCREV="12bbf6468e2ef179800aaab46c724f523b5002e3" SRCREV="f91e563c45d457aa441f687eda294ad899e2b25f" PR = "r0" PV = "${LINUX_VERSION}+git${SRCPV}" #COMPATIBLE_MACHINE_mydhanush = "mydhanush" COMPATIBLE_MACHINE_mydhanush = "mydhanush" *** but I got error as follows: Log data follows: | DEBUG: Executing shell function do_kernel_checkout | ERROR: S is not set to the linux source directory. Check | ERROR: the recipe and set S to the proper extracted subdirectory | WARNING: exit code 1 from a shell command. | ERROR: Function failed: do_kernel_checkout (log file is located at /home/testuser/poky/build/tmp/work/mydhanush-poky-linux/linux-yocto-custom/3.10.14+gitAUTOINC+f91e563c45-r0/temp/log.do_kernel_checkout.11798) could you please help for resolving this issue. Thanks and Regards, Raghavendra. -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto