Hi, all I fix some bugs according to Lianhao, ke and dongxiao's input. This is the new patch which includes below modifications:
1) add downloading file chksum 2) Use fakeroot to tar the installer tarball to make sure the files owners are root. 3) use cp instead of mv so that re-do bitbake will not cause error. Thanks a lot! Regards, criping > -----Original Message----- > From: Ke, Liping > Sent: Monday, December 20, 2010 10:47 AM > To: Ke, Liping; Zhang, Jessica; Lu, Lianhao; Lock, Joshua > Cc: yocto@yoctoproject.org > Subject: RE: Help to review installer bb class file > > Hi, all > > Apart from Ke's suggestion that I need to add chksum for download file, > any other feedbacks? > > Thanks& Regards, > criping > > > -----Original Message----- > > From: yocto-boun...@yoctoproject.org [mailto:yocto- > > boun...@yoctoproject.org] On Behalf Of Ke, Liping > > Sent: Friday, December 17, 2010 11:39 AM > > To: Zhang, Jessica; Lu, Lianhao; Lock, Joshua > > Cc: yocto@yoctoproject.org > > Subject: [yocto] Help to review installer bb class file > > > > Hi, Jessica and Josh > > > > This is a simple bb class file for generating installer tarball. And > > thanks for Lianhao/ke/Dexuan...'s help which saves me lots of > efforts... > > > > It contains below steps: > > > > 1. fetch opkg source tarball to download location and copy other > six > > files (opkg conf, scripts, user conf) to workdir (do_fetch) 2. > > unpacking opkg source tarball to workdir (do_unpack). {So > accordingly, > > in installer script, I will remove the untar step} 3. when do_install, > > tar the the opkg source file directory as well as other six files and > > copy it to sdk output directory (tmp/deploy/sdk) > > > > After bitbaking, adt-installer.tar.bz2 will be in > > ${build}/tmp/deploy/sdk and untar it. User can untar the tarball and > > running yocto_install installation script. > > > > I only attach bb file in the attachment. For installer, after RP's > > review, I will merge it into the final patch together with this bb > file. > > If you're interest about the current installer implementation, please > > fetch it @ http://llu-piketon.sh.intel.com/installer.tar > > > > > > Any comments are highly appreciated. Actually I am not very sure > about > > many options in bb file. > > > > > > Thanks & Regards, > > criping
installerbb.patch
Description: installerbb.patch
_______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto