From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by mail.openembedded.org (Postfix) with ESMTP id 5C0A46D5B0 for ; Fri, 8 Nov 2013 15:41:28 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.14.5/8.14.3) with ESMTP id rA8FfRxg013748 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Fri, 8 Nov 2013 07:41:27 -0800 (PST) Received: from [0.0.0.0] (147.11.178.22) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.2.347.0; Fri, 8 Nov 2013 07:41:26 -0800 Message-ID: <527D0624.3060407@windriver.com> Date: Fri, 8 Nov 2013 10:41:24 -0500 From: Bruce Ashfield User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Richard Purdie , openembedded-core References: <1383923880.2345.4.camel@ted> In-Reply-To: <1383923880.2345.4.camel@ted> Cc: "Hart, Darren" Subject: Re: [PATCH] kernel: Use hardlinks for do_populate_sysroot for speed X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Nov 2013 15:41:28 -0000 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit On 13-11-08 10:18 AM, Richard Purdie wrote: > The kernel tree is large and doesn't need to be copied. Override > the default sysroot handling function to use a hardlink copying > function in python. > > This commit also drops the copying of the /lib directory which > just contains the kernel modules. We never use those in the sysroot > so there is little point in carrying those around. > > For linux-yocto this takes the do_populate_sysroot time 24s -> 14s. Fantastic. One less thing for me to dig into later. I thought this was already in place, so I'm pleasantly surprised that there was a time savings to be found! Bruce > > Signed-off-by: Richard Purdie > --- > diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass > index 0b6360f..e793ccb 100644 > --- a/meta/classes/kernel.bbclass > +++ b/meta/classes/kernel.bbclass > @@ -308,8 +308,8 @@ kernelscripts_sstate_postinst () { > fi > } > > -sysroot_stage_all_append() { > - sysroot_stage_dir ${D}${KERNEL_SRC_PATH} ${SYSROOT_DESTDIR}${KERNEL_SRC_PATH} > +python sysroot_stage_all () { > + oe.path.copyhardlinktree(d.expand("${D}${KERNEL_SRC_PATH}"), d.expand("${SYSROOT_DESTDIR}${KERNEL_SRC_PATH}")) > } > > kernel_do_configure() { > >