From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com ([192.55.52.93]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1RlEUX-0007gQ-8j for openembedded-core@lists.openembedded.org; Thu, 12 Jan 2012 07:50:29 +0100 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 11 Jan 2012 22:42:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.71,315,1320652800"; d="scan'208";a="106272639" Received: from unknown (HELO [10.255.13.168]) ([10.255.13.168]) by fmsmga001.fm.intel.com with ESMTP; 11 Jan 2012 22:42:51 -0800 Message-ID: <4F0E80EB.8060503@linux.intel.com> Date: Wed, 11 Jan 2012 22:42:51 -0800 From: Saul Wold User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111115 Thunderbird/8.0 MIME-Version: 1.0 To: Patches and discussions about the oe-core layer References: In-Reply-To: Subject: Re: [PATCH 0/2 ] V3 Incremental rpm image generation X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jan 2012 06:50:29 -0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 01/10/2012 02:38 AM, Robert Yang wrote: > Changes of V3: > * Change the name from INC_RPM_IMAGE_GEN to INC_RPM_IMAGE_GEN as Richard > suggested, and it will only work for rpm based rootfs, the deb and ipk > will be done in M3. > > * Update rootfs_rpm.bbclass since other developer has modified it since > V2. > > Changes of V2: > * Move the config sample from meta-yocto/conf/local.conf.sample to > meta-yocto/conf/local.conf.sample.extended as Saul suggested. > > Testing: > 1) Add INC_RPM_IMAGE_GEN = "1" to conf/local.conf > 2) $ bitbake core-image-sato > > * Test when remove some pkgs > a) Save the modify time of file which is in > tmp/work/qemux86_64-poky-linux/core-image-sato-1.0-r0/rootfs/dev/. > b) Edit meta/recipes-sato/images/core-image-sato.bb, remove > ${SATO_IMAGE_FEATURES} from IMAGE_FEATURES. > c) bitbake core-image-sato > > Result: The project built well, check the modify time of the file > which is in > tmp/work/qemux86_64-poky-linux/core-image-sato-1.0-r0/rootfs/dev/, > They should be the same to step a)'s, which means that these files > were note newly created. > > * Testh when add some pkgs > a) Save the modify time of file which is in > tmp/work/qemux86_64-poky-linux/core-image-sato-1.0-r0/rootfs/dev/. > b) Edit meta/recipes-sato/images/core-image-sato.bb, add the > ${SATO_IMAGE_FEATURES} back to IMAGE_FEATURES. > c) bitbake core-image-sato > > Result: The project built well, check the modify time of the file > which is in > tmp/work/qemux86_64-poky-linux/core-image-sato-1.0-r0/rootfs/dev/, > They should be the same to step a)'s, which means that these files > were note newly created. > > * Test when edit a pkg > a) bitbake bzip2 -cclean > b) rm -f rm -f sstate-cache/sstate-bzip2-* > c) Edit meta/recipes-extended/bzip2/bzip2_1.0.6.bb > d) bitbake core-image-sato > Result: The project built well, and check: > tmp/work/qemux86-poky-linux/core-image-sato-1.0-r0/temp/log.do_rootfs > Only the bzip2 has been re-installed > > > > The following changes since commit 468998cddbe1a803096c9b357e1b5daa3b7e8c2e: > > command.py: add parseConfigurationFiles API (2012-01-06 16:01:44 +0000) > > are available in the git repository at: > git://git.pokylinux.org/poky-contrib robert/inc_image_gen > http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/inc_image_gen > > Robert Yang (2): > Incremental rpm image generation > Incremental rpm image generation(Add config sample) > > meta-yocto/conf/local.conf.sample.extended | 7 +++ > meta/classes/image.bbclass | 11 ++++- > meta/classes/package_rpm.bbclass | 73 ++++++++++++++++++++++++---- > meta/classes/rootfs_rpm.bbclass | 6 ++- > 4 files changed, 84 insertions(+), 13 deletions(-) > Merged into OE-Core ' Thanks Sau!