[yocto] getting error in "make-mod-scripts-1.0-r0" while building meta-altera kernel as local source

Bruce Ashfield bruce.ashfield at gmail.com
Wed Jul 17 06:05:31 PDT 2019


On Wed, Jul 17, 2019 at 7:43 AM praveen vattipalli
<praveen.vatt at gmail.com> wrote:
>
> Hi All,
> we are upgrading Yocto from Krogath to Sumo version.
> while using meta-altera kernel source as local source,
>
> if i use  EXTERNALSRC_BUILD variable
> EXTERNALSRC = "${TOPDIR}/../meta-altera/recipes-kernel/linux/files/kernel-source"
> EXTERNALSRC_BUILD = "${TOPDIR}/../meta-altera/recipes-kernel/linux/files/kernel-source"

Have you tried making these different directories ? The error you are
seeing is telling you that you
are trying to build in an already configured/dirty source directory.
Not having a split source and
build is one easy way to get into the state that you are seeing.

> getting make-mod-scripts-1.0-r0 error.
>
> if i comment EXTERNALSRC_BUILD = "${TOPDIR}/../meta-altera/recipes-kernel/linux/files/kernel-source" i could able to build the image.

See my above comment. By default the externalsrc class does a split
source and build directory,
which is why it works.

Bruce

>
> any suggestion, if i miss anything.
> Thanks in advance
>
> logs:
> ERROR: make-mod-scripts-1.0-r0 do_configure: oe_runmake failed
>
>  Using /home/pkumar/tp4100_sumo/sumo/yocto_platform/platform/meta-altera/recipes-kernel/linux/files/kernel-source as source for kernel
> |   /home/pkumar/tp4100_sumo/sumo/yocto_platform/platform/meta-altera/recipes-kernel/linux/files/kernel-source is not clean, please run 'make mrproper'
> |   in the '/home/pkumar/tp4100_sumo/sumo/yocto_platform/platform/meta-altera/recipes-kernel/linux/files/kernel-source' directory.
> | /home/pkumar/tp4100_sumo/sumo/yocto_platform/platform/meta-altera/recipes-kernel/linux/files/kernel-source/Makefile:1064: recipe for target 'prepare3' failed
> | make[1]: *** [prepare3] Error 1
> | make[1]: Leaving directory '/home/pkumar/tp4100_sumo/sumo/yocto_platform/platform/build/tmp/work-shared/cyclone5/kernel-build-artifacts'
> | Makefile:146: recipe for target 'sub-make' failed
> | make: *** [sub-make] Error 2
>
> Thanks,
> Praveen
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II


More information about the yocto mailing list