All of lore.kernel.org
 help / color / mirror / Atom feed
* Yocto build is taking too long time in kernel do_package and do_populate_sysroots
@ 2014-07-14 15:20 jags gediya
  2014-07-14 18:27   ` [yocto] " Bruce Ashfield
  0 siblings, 1 reply; 3+ messages in thread
From: jags gediya @ 2014-07-14 15:20 UTC (permalink / raw)
  To: yocto, meta-freescale

I am a newbie to yocto. For the purpose of check in code on svn, I
have deleted all .git, .gitignore and .repo file from yocto before
built. Then i have checked out that code from svn and started the
yocto built.

But my compilation used to stop at below point for more than an hour.

Currently 2 running tasks (1771 of 1777):
    0: linux-imx-3.10.17-r0 do_package (pid 4011)
    1: linux-imx-3.10.17-r0 do_populate_sysroot (pid 19696)
I am building the core-image-minimal for imx6sl evk.

Some modification i have done for the kernel and u-boot. I am not
taking kernel and u-boot from the git. Instead i have changed the
SRC_URI, and i have given there the path for kernel and u-boot to take
it from local system.

Things i have modified as per below.
originally linux-imx.inc was having,

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"

inherit kernel

# Put a local version until we have a true SRCREV to point to
LOCALVERSION ?= "+yocto"
SCMVERSION ?= "y"

SRC_URI = "git://git.freescale.com/imx/linux-2.6-imx.git;branch=${SRCBRANCH} \
           file://defconfig \
"

S = "${WORKDIR}/git"

I have changed it to,

#LICENSE = "GPLv2"
#LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
LICENSE = "CLOSED"

inherit kernel

SRC_URI = "file://${BSPDIR}/kernel \
           file://defconfig \
"
S = "${BSPDIR}/kernel"

Can anyone point me if i have done any wrong configuration.
PS: Before chevk in on svn, Kernel compilation was taking that much
long time while building images.

Thanks,
Jags


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Yocto build is taking too long time in kernel do_package and do_populate_sysroots
  2014-07-14 15:20 Yocto build is taking too long time in kernel do_package and do_populate_sysroots jags gediya
@ 2014-07-14 18:27   ` Bruce Ashfield
  0 siblings, 0 replies; 3+ messages in thread
From: Bruce Ashfield @ 2014-07-14 18:27 UTC (permalink / raw)
  To: jags gediya, yocto, meta-freescale

On 14-07-14 11:20 AM, jags gediya wrote:
> I am a newbie to yocto. For the purpose of check in code on svn, I
> have deleted all .git, .gitignore and .repo file from yocto before
> built. Then i have checked out that code from svn and started the
> yocto built.
>
> But my compilation used to stop at below point for more than an hour.

Depending on the speed of your machine, the disk, memory, etc .. yes,
those tasks can take a long time.

We've been working on improving kernel build and packaging time for
several releases now, and are still continuing in the upcoming
1.7 release.

The sheer amount of files, i/o and packaging required for the kernel
build, sysroot, kernel modules and packages simply takes time.

For incremental development, and testing workflow. Look into only
running the single task you need (i.e. just compile), or look at using
"externalsrc" support. Both those options will significant speed up
your iterative development time.

Bruce

>
> Currently 2 running tasks (1771 of 1777):
>      0: linux-imx-3.10.17-r0 do_package (pid 4011)
>      1: linux-imx-3.10.17-r0 do_populate_sysroot (pid 19696)
> I am building the core-image-minimal for imx6sl evk.
>
> Some modification i have done for the kernel and u-boot. I am not
> taking kernel and u-boot from the git. Instead i have changed the
> SRC_URI, and i have given there the path for kernel and u-boot to take
> it from local system.
>
> Things i have modified as per below.
> originally linux-imx.inc was having,
>
> LICENSE = "GPLv2"
> LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
>
> inherit kernel
>
> # Put a local version until we have a true SRCREV to point to
> LOCALVERSION ?= "+yocto"
> SCMVERSION ?= "y"
>
> SRC_URI = "git://git.freescale.com/imx/linux-2.6-imx.git;branch=${SRCBRANCH} \
>             file://defconfig \
> "
>
> S = "${WORKDIR}/git"
>
> I have changed it to,
>
> #LICENSE = "GPLv2"
> #LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
> LICENSE = "CLOSED"
>
> inherit kernel
>
> SRC_URI = "file://${BSPDIR}/kernel \
>             file://defconfig \
> "
> S = "${BSPDIR}/kernel"
>
> Can anyone point me if i have done any wrong configuration.
> PS: Before chevk in on svn, Kernel compilation was taking that much
> long time while building images.
>
> Thanks,
> Jags
>



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [yocto] Yocto build is taking too long time in kernel do_package and do_populate_sysroots
@ 2014-07-14 18:27   ` Bruce Ashfield
  0 siblings, 0 replies; 3+ messages in thread
From: Bruce Ashfield @ 2014-07-14 18:27 UTC (permalink / raw)
  To: jags gediya, yocto, meta-freescale

On 14-07-14 11:20 AM, jags gediya wrote:
> I am a newbie to yocto. For the purpose of check in code on svn, I
> have deleted all .git, .gitignore and .repo file from yocto before
> built. Then i have checked out that code from svn and started the
> yocto built.
>
> But my compilation used to stop at below point for more than an hour.

Depending on the speed of your machine, the disk, memory, etc .. yes,
those tasks can take a long time.

We've been working on improving kernel build and packaging time for
several releases now, and are still continuing in the upcoming
1.7 release.

The sheer amount of files, i/o and packaging required for the kernel
build, sysroot, kernel modules and packages simply takes time.

For incremental development, and testing workflow. Look into only
running the single task you need (i.e. just compile), or look at using
"externalsrc" support. Both those options will significant speed up
your iterative development time.

Bruce

>
> Currently 2 running tasks (1771 of 1777):
>      0: linux-imx-3.10.17-r0 do_package (pid 4011)
>      1: linux-imx-3.10.17-r0 do_populate_sysroot (pid 19696)
> I am building the core-image-minimal for imx6sl evk.
>
> Some modification i have done for the kernel and u-boot. I am not
> taking kernel and u-boot from the git. Instead i have changed the
> SRC_URI, and i have given there the path for kernel and u-boot to take
> it from local system.
>
> Things i have modified as per below.
> originally linux-imx.inc was having,
>
> LICENSE = "GPLv2"
> LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
>
> inherit kernel
>
> # Put a local version until we have a true SRCREV to point to
> LOCALVERSION ?= "+yocto"
> SCMVERSION ?= "y"
>
> SRC_URI = "git://git.freescale.com/imx/linux-2.6-imx.git;branch=${SRCBRANCH} \
>             file://defconfig \
> "
>
> S = "${WORKDIR}/git"
>
> I have changed it to,
>
> #LICENSE = "GPLv2"
> #LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
> LICENSE = "CLOSED"
>
> inherit kernel
>
> SRC_URI = "file://${BSPDIR}/kernel \
>             file://defconfig \
> "
> S = "${BSPDIR}/kernel"
>
> Can anyone point me if i have done any wrong configuration.
> PS: Before chevk in on svn, Kernel compilation was taking that much
> long time while building images.
>
> Thanks,
> Jags
>



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-07-14 18:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-14 15:20 Yocto build is taking too long time in kernel do_package and do_populate_sysroots jags gediya
2014-07-14 18:27 ` Bruce Ashfield
2014-07-14 18:27   ` [yocto] " Bruce Ashfield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.